+ Reply to Thread
Results 1 to 6 of 6

How to return a blank cell based on if then criteria

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    San Francisco
    MS-Off Ver
    Excel 2010
    Posts
    6

    How to return a blank cell based on if then criteria

    I have the following formula: =IF($G11=$B11,$B$6,IF($G11=$C11,$C$6,IF($G11=$D11,$D$6,IF($G11=$E11,$E$6,IF($G11=$F11,$F$6)))))

    If G11 is blank, then I want it show return an empty cell.
    How do I correct my formula to show that?

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How to return a blank cell based on if then criteria

    Try

    =IF(G11="","",INDEX($B$6:$F$6,MATCH($G11,$B$11:$F$11,0)))

  3. #3
    Registered User
    Join Date
    07-31-2013
    Location
    San Francisco
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: How to return a blank cell based on if then criteria

    it returned #N/A

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How to return a blank cell based on if then criteria

    To avoid the resulting error when the value of G11 is NOT blank AND G11 doesn't equal any of the values in B11 to F11,
    Try

    =IFERROR(IF(G11="","",INDEX($B$6:$F$6,MATCH($G11,$B$11:$F$11,0))),"")

  5. #5
    Registered User
    Join Date
    07-31-2013
    Location
    San Francisco
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: How to return a blank cell based on if then criteria

    OMG! You totally ROCK! That worked! THANK YOOOOOOU!!!

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How to return a blank cell based on if then criteria

    You're welcome, 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. Replies: 5
    Last Post: 07-02-2017, 10:25 AM
  2. Return Cell Value based on Multiple Criteria
    By StuartO in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2013, 06:56 AM
  3. [SOLVED] Return cell value based on criteria of 2 columns
    By Fatnslow in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-03-2012, 04:52 AM
  4. SUM based on a criteria and another cell being blank
    By nitro255 in forum Excel General
    Replies: 5
    Last Post: 04-24-2009, 12:57 AM
  5. return cell references based on criteria
    By blakeyoung in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2008, 09:10 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