Consulting

Results 1 to 5 of 5

Thread: Excel formula help match

  1. #1
    Banned VBAX Contributor
    Joined
    Aug 2017
    Posts
    144
    Location

    Excel formula help match

    Hi Team,


    I am using below excel formula, (range $A$2:$A$6 and Range $B$2:$B$6) Contains list of Unique names.
    after applying a formula , I get result true or false, and I am deleting false after applying autofilter.

    Formula:-
    =OR(ISNUMBER(MATCH(A2,Criteria!$A$2:$A$6,0)),ISNUMBER(MATCH(Data!B2,Criteri a!$B$2:$B$6,0)))


    I want formula should give True for blank cells as , which are highlighted in column D in Blue color.
    Because I want to delete false.


    Plz suggest excel formula or should I need add anything in Criteria to cover Blank cells as well.




    Thanks
    mg
    Attached Files Attached Files
    Last edited by malleshg24; 01-02-2020 at 11:31 PM.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try

    =OR(A2="",B2="",ISNUMBER(MATCH(A2,Criteria!$A$2:$A$6,0)),ISNUMBER(MATCH(Dat a!B2,Criteria!$B$2:$B$6,0)))
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Banned VBAX Contributor
    Joined
    Aug 2017
    Posts
    144
    Location
    Hi xld,

    Thanks for your help, this code is working as expected !


    Regards,
    Mg

  4. #4
    Banned VBAX Contributor
    Joined
    Aug 2017
    Posts
    144
    Location
    Hi xld,

    I need slight change in below formula,
    Below formula gives me correct result, Needs to add one more Criteria in this, If both the cells blank, I want result True.


    if range(a4) and range(b4) is blank , I want result true in C4.


    =OR(ISNUMBER(MATCH(A4,Criteria!$A$2:$A$6,0)),ISNUMBER(MATCH(Data!B4,Criteri a!$B$2:$B$6,0)))


    Thanks
    mg

  5. #5
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,875
    =OR(ISNUMBER(MATCH(A2,Criteria!$A$2:$A$6,0)),ISNUMBER(MATCH(Data!B2,Criteri a!$B$2:$B$6,0)),COUNTBLANK(A2:B2)=1)
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •