+ Reply to Thread
Results 1 to 5 of 5

INDEX MATCH error

  1. #1
    Forum Contributor
    Join Date
    11-02-2007
    Posts
    109

    INDEX MATCH error

    Hi,

    I have a formula I have been using whereby it checks a column on a reference tab, and if that cell contains a text value, it returns that text value. What I want to have happen however is that if there is no text value in the reference column, it returns a blank (""). The problem is that instead of returning a blank, it is returning '0' for cells with no text entry in the reference column. I have tried to alter the formula below so that instead of '0' in the index match, I use "") but get the #VALUE! error. On cells that actually do have a text entry in the reference cell, using this formula with "" instead of '0' returns a blank! I have done all the usual, text to column on all reference columns etc. Appreciate any help!


    =IFERROR(INDEX(Categorisation!F:F,MATCH(Data!Y61,Categorisation!G:G,0)),"")

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: INDEX MATCH error

    maybe you can adopt the if(isna
    or if statement alone.

    =if(isna(index...match)),"",index(..match))

    or

    if(index(...match))="","",index(..match)) - adjust if needed for the if statement
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Contributor
    Join Date
    11-02-2007
    Posts
    109

    Re: INDEX MATCH error

    Thanks, tried and could not get the ISNA to work, so tried the IF on its own. Works fine for cells that are meant to be blank i.e. now pprovides a blank instead of '0', however is also blanking out cells that are meant to contain a text value as it was before

  4. #4
    Forum Contributor
    Join Date
    11-02-2007
    Posts
    109

    Re: INDEX MATCH error

    Think I may have just got it to work thanks, by using the =0 in the end of the first index match, and it then provides a blank!

    =IF(INDEX(Categorisation!F:F,MATCH(Data!Y4,Categorisation!G:G,0))=0,"",(INDEX(Categorisation!F:F,MATCH(Data!Y4,Categorisation!G:G,0))))

    Much appreciated!

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: INDEX MATCH error

    Yes.

    Welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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