+ Reply to Thread
Results 1 to 7 of 7

Ignoring Blank Cells in IF function

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    3

    Ignoring Blank Cells in IF function

    I'm having trouble getting my formula to ignore blank cells.

    If any of the cells A4:A8 are less than 600, I need the formula to return TD. If none are below 600, I need to do a vlookup with the average of A4:A8 to determine the score.

    However, not all the cells A4:A8 need to be filled in. If only 3 are filled in, my formula assumes the blanks are zeros and gives a TD rating. How do I get it to ignore the blank cells?

    Please Login or Register  to view this content.
    Consumer Score.xlsx

    Thanks in advance!
    Last edited by Kayla09; 01-25-2013 at 12:14 PM.

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Ignoring Blank Cells in IF function

    =if(min(a4:a8)<600,"td",lookup(b10,a16:b21))

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Ignoring Blank Cells in IF function

    One "ugly" way

    =IF(OR(AND(A4<600,A5<600,A6<600,A7<600,A8<600),AND(A4<>"",A5<>"",A6<>"",A7<>"",A8<>"")),"TD",VLOOKUP(B10,A16:B21,2))

    This gives 3, as result in your example.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    01-25-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Ignoring Blank Cells in IF function

    Wow. I'm embarrassed at how easy that was. Thanks for the help!

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Ignoring Blank Cells in IF function

    Simplying the formula:
    =IF(MIN(A4:A8)<600,"TD",VLOOKUP(B10,A16:B21,2))
    Quang PT

  6. #6
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Ignoring Blank Cells in IF function

    You're Welcome!

  7. #7
    Valued Forum Contributor Dunc3142's Avatar
    Join Date
    09-05-2007
    Location
    Franklin OH
    MS-Off Ver
    2000 and 2007 and 2010 @ Home & Teach 2010
    Posts
    351

    Re: Ignoring Blank Cells in IF function

    This might work for you...

    =IF(COUNTIFS(A4:A8,">=600")<3,"TD",VLOOKUP(B10,A16:B21,2))
    Yes it will. we just have to figure out how...
    If I have helped you, PLEASE click the * and add to my Rep.
    Also, if the problem is SOLVED please mark it as so.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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