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..
Thanks=INDEX('Information '!$A$1:$BF$87,2,(MATCH(Summary!$A$23,'Information '!$A$1:$BF$1,0)))
Last edited by Nick_in_Dubai; 02-26-2009 at 12:49 AM.
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...
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Try,
=IF(INDEX(Information!$A$1:$BF$87,2,(MATCH(Summary!$A$23,Information!$A$1:$BF$1,0)))="","",INDEX(Inf ormation!$A$1:$BF$87,2,(MATCH(Summary!$A$23,Information!$A$1:$BF$1,0))))
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???
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
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.=IF(INDEX('Information '!$A$2:$BF$2,MATCH(Summary!$A$23,'Information '!$A$1:$BF$1,0))="","",INDEX('Information '!$A$2:$BF$2,MATCH(Summary!$A$23,'Information '!$A$1:$BF$1,0)))
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 08:29 AM.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
The formula works great thanks....
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(A 19;SHEET1!$A$3:$A$400;0)))
*I have the 2007 Excel Version
Last edited by Maria_ML; 01-26-2012 at 02:40 AM.
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.
I am proud that i am Greek.
Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?
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.
Please,mark your thread [SOLVED] if you received your answer.
My Avadar picture, is from Athens Acropolis.
http://www.theacropolismuseum.gr
http://www.visitgreece.gr/
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? Ευχαριστώ!
Maria, would you like to upload a sample workbook??
I am sure we'll find the solution.
(Χαίρομαι πολύ όταν συναντώ Έλληνες στο φόρουμ!!)
Regards
Fotis.
I am proud that i am Greek.
Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?
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.
Please,mark your thread [SOLVED] if you received your answer.
My Avadar picture, is from Athens Acropolis.
http://www.theacropolismuseum.gr
http://www.visitgreece.gr/
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.
Ηι
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.
Regards
Fotis.
I am proud that i am Greek.
Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?
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.
Please,mark your thread [SOLVED] if you received your answer.
My Avadar picture, is from Athens Acropolis.
http://www.theacropolismuseum.gr
http://www.visitgreece.gr/
Thank you both, i will check it out and get back to you.
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...
Good luck.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks