+ Reply to Thread
Results 1 to 3 of 3

Opposite of match function

  1. #1
    Registered User
    Join Date
    04-03-2012
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2007
    Posts
    5

    Opposite of match function

    Hi,

    I need a formula that returns the header of the column that does NOT contain a certain text.

    This is what I managed =INDEX(E1:G1, MATCH("n/a",E2:G2,0)).

    Which basically gives me me the opposite of what I need.

    Note. There is only one cell that does not contain the text "n/a".

    Thank You in advance.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697

    Re: Opposite of match function

    You can use an "array formula"

    =INDEX(E1:G1,MATCH(TRUE,E2:G2<>"N/A",0))

    confirmed with CTRL+SHIFT+ENTER

    ...or add an INDEX function and you can enter normally

    =INDEX(E1:G1,MATCH(TRUE,INDEX(E2:G2<>"N/A",0),0))
    Audere est facere

  3. #3
    Registered User
    Join Date
    04-03-2012
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Opposite of match function

    That works perfectly, really appreciate it.

    However, I'm hoping I could trouble you again by helping me understand how that works. Im not familiar with the <> sign, or the need of the CTRL + **** = ENTER for the first formula.

    Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1