+ Reply to Thread
Results 1 to 5 of 5

Dates with IF statements and blank cell

  1. #1
    Registered User
    Join Date
    03-29-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    3

    Dates with IF statements and blank cell

    Hello. I am trying to create a simple spreadsheet to track a list of tasks that will indicate ahead/behind calcs based upon a Projected Completion Date.

    Let's assume the following: A1 - Today's Date, B1 - Proj Completion Date, and cell C1 is Actual Completion Date. I would like to have only one column, say D1, which would state either of these outcomes depending on the scenario:

    1. Today's Date is less than Projected Completion Date (therefore Actual Completion Date is Blank) = blank
    2. Todays Date is greater than Projected Completion Date (therefore Actual Completion Date is Blank) = "-5" This is simply a ahead/behind formula, same for #3 & #4.
    3. Actual Completion Date is less than Projected Completion Date = "+ 5"
    4. Actual Completion Date is greater than Projected Completion Date = "-5"

    My trouble is when the Actual Date is input, I can't get it to go beyond the Today's date calc. I have tried ISBLANK() but to no avail. So simply put, if there is no Actual Date, then do #1 or #2. If there is an Actual Date, then do #3 or #4. Hopefully this makes sense. Thank you for any help and enjoy the weekend.

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Dates with IF statements and blank cell

    Maybe something like this:
    =IF(C1="",IF(A1<=B1,"","-5"),IF(C1<=B1,"+5","-5")) for text output, or
    =IF(C1="",IF(A1<=B1,"",-5),IF(C1<=B1,5,-5)) for numeric output

    Hope this helps

    Edit-
    Forgot the last ')'
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    03-29-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Dates with IF statements and blank cell

    dredwolf, thank you so much for the quick reply! I will try this out and follow up.

  4. #4
    Registered User
    Join Date
    03-29-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Dates with IF statements and blank cell

    dredwolf, this worked perfectly. I changed the +/- to formulas and it is returning consistent values. Thank you. This thread is closed.

  5. #5
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Dates with IF statements and blank cell

    You are welcome

    Please remember to mark the thread as solved if you are satisfied with your solution :
    To mark thread "Solved", go to the top of the thread,click "Thread Tools",click "Mark as Solved"

+ 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