+ Reply to Thread
Results 1 to 10 of 10

Due Date: Automatic Input using formula or function

  1. #1
    Registered User
    Join Date
    05-10-2013
    Location
    Manchester, CT
    MS-Off Ver
    Excel 2010
    Posts
    5

    Due Date: Automatic Input using formula or function

    Making a spreadsheet; in column c are lab dates in column d are dates 90 days from lab date (due dates). I used a formula: =c4+90 which works except if there's no date in column c then 03/31/1904(default date) appears in column d's cells. I need the formula to work only IF there's a date typed into column c, otherwise I need column d's cells to remain blank. Please advise! Thanks
    Last edited by DianaEve; 05-10-2013 at 07:24 PM. Reason: typos

  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,946

    Re: Due Date: Automatic Input using formula or function

    Hi and welcome to the forum

    Try this...
    =if(C4="","",c4+90)
    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
    05-10-2013
    Location
    Manchester, CT
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Due Date: Automatic Input using formula or function

    Sorry, maybe it's late and my eyes are blurry but what is that after =if(C4= ?,?, c4+90)? (self taught excel user :-( )

  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,946

    Re: Due Date: Automatic Input using formula or function

    Self-taught too

    Instead of just =c4+90 in D4, use this instead...
    =if(C4="","",c4+90) there is nothing after it, just enter it like that

    It says...if C4 is blank, leave D4 blank, else add 90 to the value in C4

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Due Date: Automatic Input using formula or function

    2 double quotes.

    Replace each of your ? question marks with 2 double quotes.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    05-10-2013
    Location
    Manchester, CT
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Due Date: Automatic Input using formula or function

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

    Try this...
    =if(C4="","",c4+90)
    Thanks, that worked well. Now how can I format the due dates that were figured by this formula to be red & bold if the date is today or anytime earlier? (this to show that it's past due)

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Due Date: Automatic Input using formula or function

    You can do that using conditional formatting.

    Let's assume you want to apply this to cell A1.

    Select cell A1

    Goto the Home tab>Styles>Conditional Formatting>
    Manage rules>New rule>Use a formula to determine
    which cells to format

    Enter this formula in the box below:

    =A1<=TODAY()

    Click the Format button
    Select the desired style(s)
    OK out

  8. #8
    Registered User
    Join Date
    05-10-2013
    Location
    Manchester, CT
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Due Date: Automatic Input using formula or function

    Why thank you! Now I need to change the font color if the date in C5(the due date) is within 30 days(before) of today. Can you help?

  9. #9
    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,946

    Re: Due Date: Automatic Input using formula or function

    Use Tony's method, create a new rule and adjust the formula references...
    =C5<=today()-30

  10. #10
    Registered User
    Join Date
    05-10-2013
    Location
    Manchester, CT
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Due Date: Automatic Input using formula or function

    Quote Originally Posted by FDibbins View Post
    Use Tony's method, create a new rule and adjust the formula references...
    =C5<=today()-30
    That only works for today minus 30 days which is April 15th. I need it to format 30 days from the due date and all other days up to the due date. So if the due date was May 15th then the font would be formatted from April 15th to May 14th with a color that represents: it's time to do labwork. Thanks.

+ 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