+ Reply to Thread
Results 1 to 11 of 11

can formula return a blank not a zero when the referenced cell is blank

  1. #1
    Registered User
    Join Date
    10-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    37

    can formula return a blank not a zero when the referenced cell is blank

    Hi all, so the formula below works fine apart from when there are any blank cells down Sheet2!$G$3:$G$220 then formula returns a zero. can anyone amend the formula below please so it returns a blank in this instance not a zero please?

    =INDEX(Sheet2!$G$3:$G$220,MATCH(A3,Scores2!$C$3:$C$220,0))

    many thanks

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

    Re: can formula return a blank not a zero when the referenced cell is blank

    What type of data does the formula normally return?

    Is it text? Numbers? Could be both? Something else? If it's numbers, is 0 an otherwise valid result?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    10-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: can formula return a blank not a zero when the referenced cell is blank

    Hi, Thanks for you question, down Sheet2!G:G there is always either a two digit number or a blank. so my formula is returning the the two digit number if present, but a zero if there is a blank. can i get the blank to be replicated also?

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

    Re: can formula return a blank not a zero when the referenced cell is blank

    Try this...

    =IFERROR(1/(1/INDEX(Sheet2!$G$3:$G$220,MATCH(A3,Scores2!$C$3:$C$220,0))),"")

  5. #5
    Registered User
    Join Date
    10-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: can formula return a blank not a zero when the referenced cell is blank

    hi, that works in returning a blank for a blank, but also returns a blank when it should return a number. when i paste the formula it also brings up a save box to 'Upadate Values'?

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: can formula return a blank not a zero when the referenced cell is blank

    Try this

    =IF(INDEX(Sheet2!$G$3:$G$220,MATCH(A3,Scores2!$C$3:$C$220,0))=0,"",INDEX(Sheet2!$G$3:$G$220,MATCH(A3,Scores2!$C$3:$C$220,0)))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  7. #7
    Registered User
    Join Date
    10-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: can formula return a blank not a zero when the referenced cell is blank

    i have it sorry, turns out its a &"" at the end. many thanks for your time and effort, much appreciated.

  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: can formula return a blank not a zero when the referenced cell is blank

    Quote Originally Posted by fruit&veg View Post
    hi, that works in returning a blank for a blank, but also returns a blank when it should return a number.
    Are you sure your numbers are true numeric numbers?

    What result do you get with this formula:

    =COUNT(Sheet2!$G$3:$G$220)

    when i paste the formula it also brings up a save box to 'Upadate Values'?
    That sounds like you're referencing a sheet that does not exist.

    You posted this formula in post #1:

    =INDEX(Sheet2!$G$3:$G$220,MATCH(A3,Scores2!$C$3:$C$220,0))
    I used the same basic formula in my reply:

    =IFERROR(1/(1/INDEX(Sheet2!$G$3:$G$220,MATCH(A3,Scores2!$C$3:$C$220,0))),"")

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

    Re: can formula return a blank not a zero when the referenced cell is blank

    Good deal. Thanks for the feedback!

  10. #10
    Registered User
    Join Date
    10-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: can formula return a blank not a zero when the referenced cell is blank

    Sorry, the save thing was me being an idiot. turns out it was also the reason why your formula wouldn't work for me originally. on the surface i thought the &"" had worked, but turns out it had disastrous effects further along my other sheets/formulas. i have just input your formula, and it does work and also keeps all my other sheets working correctly!...so long story short your clearly a genius! thank you very much, its much appreciated.

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

    Re: can formula return a blank not a zero when the referenced cell is blank

    You're welcome!

+ 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. Index/ Match Formula, How to return blank cell as a blank not 0
    By MDResearcher in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-24-2016, 08:40 PM
  2. [SOLVED] Formula to return #NA if referenced cell is blank/0
    By V.Cell in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-28-2015, 10:54 AM
  3. [SOLVED] When my formula encounters a blank cell it returns a 0, I need it to return a blank
    By stretch99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2014, 07:52 PM
  4. [SOLVED] Adjust this formula to return blank when a cell is blank?
    By nobodyukno in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-01-2013, 10:26 PM
  5. [SOLVED] Cell referenced in formula has no information displayed (shows blank), return blank cell
    By nunayobinezz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2013, 04:51 PM
  6. If formula to return blank if reference cell blank
    By dhooper in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2013, 08:56 PM
  7. [SOLVED] Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP
    By TMB1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2013, 07:16 PM

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