+ Reply to Thread
Results 1 to 5 of 5

[HELP] How to leave cells blank if another column is blank in a formula with multiple ifs.

  1. #1
    Registered User
    Join Date
    06-24-2013
    Location
    Edinburgh,UK
    MS-Off Ver
    Excel 2008
    Posts
    2

    [HELP] How to leave cells blank if another column is blank in a formula with multiple ifs.

    So the current formula I have is =IF(F2>=90,100,IF(F2>79,91,IF(F2>69,75,IF(F2>59,58,IF(F2>49,41,IF(F2>39,25,IF(F2>30,8,IF(F2<=30,0)))))))). It works well except that when F2 is blank it gives me 100. What do I have to include in the formula to make it blank.

    Thanks!

  2. #2
    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: [HELP] How to leave cells blank if another column is blank in a formula with multiple

    =if(f2="","",IF(F2>=90,100,IF(F2>79,91,IF(F2>69,75,IF(F2>59,58,IF(F2>49,41,IF(F2>39,25,IF(F2>30,8,IF(F2<=30,0)))))))))
    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.

  3. #3
    Registered User
    Join Date
    06-24-2013
    Location
    Edinburgh,UK
    MS-Off Ver
    Excel 2008
    Posts
    2

    Re: [HELP] How to leave cells blank if another column is blank in a formula with multiple

    That worked. Thanks a lot!!

  4. #4
    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: [HELP] How to leave cells blank if another column is blank in a formula with multiple

    .................................

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: [HELP] How to leave cells blank if another column is blank in a formula with multiple

    Shorter formula instead of multiple IF statements..

    =IF(F2="","",LOOKUP(F2,{0,31,40,50,60,70,80,90},{0,8,25,41,58,75,91,100}))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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