+ Reply to Thread
Results 1 to 10 of 10

IFERROR won't display a blank cell

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Arkansas
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    252

    IFERROR won't display a blank cell

    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

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,955

    Re: IFERROR won't display a blank cell

    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

  3. #3
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Arkansas
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    252

    Re: IFERROR won't display a blank cell

    Quote Originally Posted by FDibbins View Post
    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"),"")))
    That brought back FALSE.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: IFERROR won't display a blank cell

    Perhaps

    Formula: copy to clipboard
    =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.

  5. #5
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Arkansas
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    252

    Re: IFERROR won't display a blank cell

    Quote Originally Posted by Richard Buttrey View Post
    Perhaps

    Formula: copy to clipboard
    =IF(INDIRECT($E$1&"!$C4")=0,"",IFERROR(INDIRECT($E$1&"!$C4"),MATCH(INDIRECT($E$1&"!$C4"),"")))
    Thank You Sir, that works perfectly.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IFERROR won't display a blank cell

    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:

    =IFERROR(INDIRECT($E$1&"!$C4"),MATCH(INDIRECT($E$1&"!$C4"),""))
    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.

    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.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: IFERROR won't display a blank cell

    Quote Originally Posted by Tony Valko View Post
    EDIT: Hmmm...

    Not sure I follow the logic of your formula:

    What is the MATCH function supposed to be doing?
    @Tony,

    I wondered that too.

    I assume the OP knows what they want .

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IFERROR won't display a blank cell

    Quote Originally Posted by Richard Buttrey View Post
    @Tony,

    I wondered that too.

    I assume the OP knows what they want .
    Yeah, sometimes it's hard to decipher a formula when no explanation is included!

  9. #9
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Arkansas
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    252

    Re: IFERROR won't display a blank cell

    Quote Originally Posted by Tony Valko View 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.

    What is the MATCH function supposed to be doing?


    You are both correct, thank you for pointing that out. I didn't need MATCH at all.

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IFERROR won't display a blank cell

    Good deal. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Use IFERROR function to display a blank cell instead of a error value
    By susiesc in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-30-2013, 02:03 PM
  2. Use IFERROR function to display a blank cell instead of a error value
    By susiesc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-30-2013, 01:14 PM
  3. Replies: 4
    Last Post: 08-30-2012, 11:37 AM
  4. [SOLVED] Re: Conditional display - IF cell is blank, display next used row!
    By Patti in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2006, 05:35 PM
  5. [SOLVED] how to get excel to display blank if reference cell blank
    By silent1(not) in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-02-2005, 10:55 AM

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