+ Reply to Thread
Results 1 to 9 of 9

Ignoring blank cells

  1. #1
    Registered User
    Join Date
    12-05-2013
    Location
    Nashville
    MS-Off Ver
    Excel 2010
    Posts
    32

    Ignoring blank cells

    I am working on a project using the below IF statement but need it to not calculate if the cell is blank.

    =IF(C4<=375,"100%",IF(C4<=405,"90%",IF(C4<=450,"80%",IF(C4<=475,"70%",IF(C4<=600,"50%",IF(C4>=601,"0%",0))))))

    How do I make that happen??/

    Thanks
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Ignoring blank cells

    Hi and welcome to the forum

    try this...
    =IF(C4="","",IF(C4<=375,"100%",IF(C4<=405,"90%",IF(C4<=450,"80%",IF(C4<=475,"70%",IF(C4<=600,"50%",IF(C4>=601,"0%",0)))))))

    But then you also need to adjust the formula in column F, but thai is protected, so it is not visible

    Also, in your formula...
    =IF(C4="","",IF(C4<=375,"100%",IF(C4<=405,"90%",IF(C4<=450,"80%",IF(C4<=475,"70%",IF(C4<=600,"50%",IF(C4>=601,"0%",0)))))))
    is 405 correct? it seems to not be in the same sequence as the other values, maybe it should be 400?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-05-2013
    Location
    Nashville
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Ignoring blank cells

    Quote Originally Posted by FDibbins View Post
    Hi and welcome to the forum

    try this...
    =IF(C4="","",IF(C4<=375,"100%",IF(C4<=405,"90%",IF(C4<=450,"80%",IF(C4<=475,"70%",IF(C4<=600,"50%",IF(C4>=601,"0%",0)))))))

    But then you also need to adjust the formula in column F, but thai is protected, so it is not visible

    Also, in your formula...
    =IF(C4="","",IF(C4<=375,"100%",IF(C4<=405,"90%",IF(C4<=450,"80%",IF(C4<=475,"70%",IF(C4<=600,"50%",IF(C4>=601,"0%",0)))))))
    is 405 correct? it seems to not be in the same sequence as the other values, maybe it should be 400?
    Why do I need to adjust the formula, =(D4*0.5)+(E4*0.5), in Column F?
    Last edited by FDibbins; 12-05-2013 at 07:00 PM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Ignoring blank cells

    Because it gives errors (actually ###### is what shows, but maybe the column wasnt wide enough?)

  5. #5
    Registered User
    Join Date
    12-05-2013
    Location
    Nashville
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Ignoring blank cells

    Ok..yea it was just the information that was in cells D4 and E4 were not completed. I am just working on making sure it is not calculating blank cells as a zero right now. Your suggestion above worked perfectly for the AHT% formula. I am assuming I can apply that same principal to almost any formula?

  6. #6
    Registered User
    Join Date
    12-05-2013
    Location
    Nashville
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Ignoring blank cells

    Using the below forumla how do I keep it from looking at blank cells as a Zero.

    =HOUR('December Team RollUp'!C4)*3600+MINUTE('December Team RollUp'!C4)*60+SECOND('December Team RollUp'!C4)

    Thanks

    Yonex

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Ignoring blank cells

    =if('December Team RollUp'!C4="","",MOD('December Team RollUp'!C4,1)*86400)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  8. #8
    Registered User
    Join Date
    12-05-2013
    Location
    Nashville
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Ignoring blank cells

    Thank you, that worked perfectly!!!!!!

  9. #9
    Registered User
    Join Date
    12-05-2013
    Location
    Nashville
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Ignoring blank cells

    I must say I hate all these cells that are blank till later in the month.

    I am pulling information from another page using ='December Team RollUp'!F4 but I don't need it to pull anything until an average is put in that field. It is now pulling as zero which is messing with other calculations

    How do I accomplish this one?

+ 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. Ignoring blank cells
    By reaney10 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2012, 02:49 PM
  2. Ignoring Blank-Zero Cells
    By Battledeck in forum Excel General
    Replies: 2
    Last Post: 06-13-2012, 03:49 PM
  3. Excel 2007 : Ignoring Blank Cells
    By stellaselectxi in forum Excel General
    Replies: 4
    Last Post: 10-24-2010, 04:22 PM
  4. Help with ignoring blank cells
    By Darren in forum Excel General
    Replies: 1
    Last Post: 11-19-2005, 03:50 PM

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