+ Reply to Thread
Results 1 to 8 of 8

formula returns value even when reference cell is blank

  1. #1
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    formula returns value even when reference cell is blank

    Hello again to you all. OK so this time I have run into a real problem. If you open up this workbook and click on the "Vitals Log" tab along the bottom you will see the table that troubles me. In column "G" you will see I am trying to return room numbers associated with the patient name in the corresponding cell of column "F". Starting at line 19 the formula begins to return the corresponding room number to the first blank cell on the "master census sheet", which is 834. It is literally only doing what I told it too however I would like it to not populate anything if the corresponding cell in column F is blank. I believe I need to use "ifblank", but I already have "iferror" on the formula, and I want that error trap to stay. Is there a way to rewrite that formula so that it continues to return accurate room numbers when there is a name in column F, but does nothing when that cell is blank?

    Redwood Census VII desensitized.xlsm

    Thank you in advance for your time and consideration,

    Arlo

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: formula returns value even when reference cell is blank

    Hi there.

    =if(f8="","",yourformula)

    will do it.
    Last edited by Glenn Kennedy; 04-24-2015 at 05:59 AM. Reason: I stoopidly left out the ( at the beginning. Dohh!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: formula returns value even when reference cell is blank

    I am certain that will work as well. I use that in my conditional formatting...not sure why I did not think of it. Here is the problem, though. I do not know where to put that little blurb...I have tried several places, but Excel gets mad at me every time I place it. Can you help me a bit more and tell me where =f8="","" goes in this formula?

    =IFERROR(INDEX('Master Census Sheet'!$A$2:$A$23,MATCH(F8,'Master Census Sheet'!$D$2:D23,0),1)," ")

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: formula returns value even when reference cell is blank

    =if(f8="","",IFERROR(INDEX('Master Census Sheet'!$A$2:$A$23,MATCH(F8,'Master Census Sheet'!$D$2:D23,0),1)," ") )

    Try that.
    Last edited by Glenn Kennedy; 04-24-2015 at 05:59 AM.

  5. #5
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: formula returns value even when reference cell is blank

    I was certain one of these would work...apparently I cannot trust my own certainty.

    =if(f8="",""(IFERROR(INDEX('Master Census Sheet'!$A$2:$A$23,MATCH(F8,'Master Census Sheet'!$D$2:D23,0),1)," ")))
    if($f$8=" "(IFERROR(INDEX('Master Census Sheet'!$A$2:$A$23,MATCH(F8,'Master Census Sheet'!$D$2:D23,0),1)," ")," ")

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: formula returns value even when reference cell is blank

    Here it is in situ in your own sheet.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: formula returns value even when reference cell is blank

    I am still waiting for the Excel gods to bless me with the knowledge you guys have. Thank you so much!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: formula returns value even when reference cell is blank

    LoL. It's just persistence. The difficult thing is NOT making silly mistakes, as I did at Post2. Thanks for the Reputation that you have added. It's much appreciated. If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. need to show reference cell blank if formula returns a $0.00 value
    By AWITCHER in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-21-2014, 10:48 AM
  2. [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
  3. [SOLVED] formula returns a #VALUE! error if no value in reference cell???
    By ciapul12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2014, 05:39 PM
  4. Replies: 11
    Last Post: 02-01-2013, 04:48 PM
  5. Find first cell with formula that returns blank
    By daveIrwin in forum Excel General
    Replies: 1
    Last Post: 02-04-2005, 12:56 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