I am using this formula, but if the referenced cell is blank, it keeps putting a 0 in the cell. I want the cell to be blank if the referenced cell is blank.
=IFERROR(INDIRECT($E$1&"!$C4"),MATCH(INDIRECT($E$1&"!$C4"),""))
Thanks
I am using this formula, but if the referenced cell is blank, it keeps putting a 0 in the cell. I want the cell to be blank if the referenced cell is blank.
=IFERROR(INDIRECT($E$1&"!$C4"),MATCH(INDIRECT($E$1&"!$C4"),""))
Thanks
That will only pick up errors, a blank cell is not (necessarily) an error. Try this...
=if(INDIRECT($E$1&"!$C4"),MATCH(INDIRECT($E$1&"!$C4")=0,"",IFERROR(INDIRECT($E$1&"!$C4"),MATCH(INDIRECT($E$1&"!$C4"),"")))
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Perhaps
Formula:=IF(INDIRECT($E$1&"!$C4")=0,"",IFERROR(INDIRECT($E$1&"!$C4"),MATCH(INDIRECT($E$1&"!$C4"),"")))
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
What type of data does the formula normally return? Is it text? Numeric? Could be both? Something else?
EDIT: Hmmm...
Not sure I follow the logic of your formula:
What is the 1st instance of INDIRECT($E$1&"!$C4") supposed to be doing? I assume E1 is a sheet name so it'll return the value of SheetName!C4. If that generates an error then the formula will execute the MATCH function.=IFERROR(INDIRECT($E$1&"!$C4"),MATCH(INDIRECT($E$1&"!$C4"),""))
What is the MATCH function supposed to be doing?
Last edited by Tony Valko; 03-13-2014 at 09:22 PM.
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Good deal. Thanks for the feedback!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks