Closed Thread
Results 1 to 14 of 14

Index/Match to return a blank cell

  1. #1
    Registered User
    Join Date
    11-16-2008
    Location
    Dubai
    Posts
    73

    Index/Match to return a blank cell

    Please can someone make an adjustment to my Formula so that if the Index match locates a cell that is blank it returns a blank cell rather than a 0. I know we need to add in =IF(iserror( but i am aving trouble..

    Please Login or Register  to view this content.
    Thanks
    Last edited by Nick_in_Dubai; 02-26-2009 at 01:49 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Index/Match to return a blank cell

    Nick, rather than double evaluating the formula you may find that using a Custom Format on the cell containing the formula itself will suffice... (?)

    [=0]"";General

    (change General to be whatever you would use normally)

    If 0 comes back via the INDEX formula the above custom format will format the cell such that it "appears" blank
    (0 value persists in cell)

    Else as I say you need to double evaluate the formula which pending volume of calculations may be best avoided...

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Index/Match to return a blank cell

    Try,

    =IF(INDEX(Information!$A$1:$BF$87,2,(MATCH(Summary!$A$23,Information!$A$1:$BF$1,0)))="","",INDEX(Information!$A$1:$BF$87,2,(MATCH(Summary!$A$23,Information!$A$1:$BF$1,0))))

  4. #4
    Registered User
    Join Date
    11-16-2008
    Location
    Dubai
    Posts
    73

    Re: Index/Match to return a blank cell

    Sorry chaps, i love the custom format option never though of that, in this case their is other formula looking at the cell which is why i am after it to be blank fully so the format doesnt help.

    The second formula i am getting an open file dialog box???

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Index/Match to return a blank cell

    You can of course alter your "other" formulae so that instead of testing to see if value in cell = "" you test to see if = 0.

    If you really are determined to double evaluate...

    The board software inserted a space into Sweep's formula when listing "information" and I think his sheet references are missing the trailing space
    (ie Information! as opposed to 'Information '!) ... if you alter references accordingly it should work ok.

    A (very) slight alternative to sweeps

    Please Login or Register  to view this content.
    In the above given you're returning a fixed row (2) you can simply set that row as your reference range -- no need to reference other rows.

    I would still advise you update your other formulae and use formatting given you're not adding any additional tests to slow your other formulae down you are merely altering the conditional test from "" to 0.

    Your choice though obviously and you should do whichever you think makes most sense in your situation.

    Cheers
    Last edited by DonkeyOte; 02-25-2009 at 09:29 AM.

  6. #6
    Registered User
    Join Date
    11-16-2008
    Location
    Dubai
    Posts
    73

    Re: Index/Match to return a blank cell

    The formula works great thanks....

  7. #7
    Registered User
    Join Date
    07-14-2011
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Index/Match to return a blank cell

    Dear friends, i would like to request your help once more. I have a similar problem as Nick stated above, need to have a match/index formula to show blank when the source cell is blank as well. I have tried the solution given but unfortunately it does not work. Can you please tell me what error i am making?

    =IF(INDEX(SHEET1!$C$3:$C$400;MATCH(A19;SHEET1!$A$3:$A$400;0))="";"";INDEX(SHEET1!$C$3:$C$400;MATCH(A19;SHEET1!$A$3:$A$400;0)))


    *I have the 2007 Excel Version
    Last edited by Maria_ML; 01-26-2012 at 03:40 AM.

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Index/Match to return a blank cell

    Good morning Maria.

    ..This is a 3 years Old Thread.!! How did you found it??

    There is a space in your formula after second MATCH...Maybe is this...

    =IF(INDEX(SHEET1!$C$3:$C$400;MATCH(A19;SHEET1!$A$3:$A$400;0))="";"";INDEX(SHEET1!$C$3:$C$400;MATCH(A 19;SHEET1!$A$3:$A$400;0)))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  9. #9
    Registered User
    Join Date
    07-14-2011
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Index/Match to return a blank cell

    Dear Fotis, thank for your immediate reply. I found this thread from search, in order to apply the solutions given and not create a new thread if this something that has been answered already. I am afraid though that the space isnt the problem since i only typed it here by mistake. Any other suggestions please? Ευχαριστώ!

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Index/Match to return a blank cell

    Maria, would you like to upload a sample workbook??

    I am sure we'll find the solution.

    (Χαίρομαι πολύ όταν συναντώ Έλληνες στο φόρουμ!!)

  11. #11
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Index/Match to return a blank cell

    If the return values are text rather than numbers, you can simply append ""

    =INDEX(SHEET1!$C$3:$C$400;MATCH(A19;SHEET1!$A$3:$A$400;0))&""
    Good luck.

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Index/Match to return a blank cell

    Ηι

    Another way is using, this formula, in Sheet!2 C13, for example..

    =IF(ISERROR(C13);"";(INDEX(Sheet1!$C$3:$C$400;MATCH(A19;Sheet1!$A$3:$A$400;0))))

    This formula, will gives you a cycle referance. To avoid this, do this.

    Tools>>Options>>Calculation>Maximum Iteration, must be 1! Not 100

    Then each time that a #NA, will appears, you just click the save Button, or type something enywhere in the Sheet.

    Hope to helps you.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    07-14-2011
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Index/Match to return a blank cell

    Thank you both, i will check it out and get back to you.

  14. #14
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Index/Match to return a blank cell

    For future reference, it helps if you can be more specific than "it does not work". We like to know whether you get an error (and if so, which one), or incorrect results, or...

Closed 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