+ Reply to Thread
Results 1 to 8 of 8

Date Formula and leaving cell blank when no date is entered

  1. #1
    Registered User
    Join Date
    01-31-2015
    Location
    USA
    MS-Off Ver
    Microsoft Excel
    Posts
    4

    Date Formula and leaving cell blank when no date is entered

    I am needing to create a formula to add 7 days to a certain date entered, but if no date is entered I need the cell to remain blank

    EX.
    A1 blank C1 blank
    A1- 2/1/2015 need C1 2/8/2015
    and so on for the remaining cells that will follow down the sheet

    Any help would be appricated as I am not an excel guru

    Thanks

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Date Formula and leaving cell blank when no date is entered

    Hello
    try this
    =IF(A1="","",A1+7)

    Tell me if it works right….

    Hope it helps
    Do ask for any other query you may have…

    If you are satisfied then mark then PLEASE mark this thread as “SOLVED” (by going to thread tools at the top and clicking on “mark this thread as solved”) and you can just click on ADD REPUTATION below my post to say thanks...

    Regards
    Sourabh Gupta

  3. #3
    Registered User
    Join Date
    01-31-2015
    Location
    USA
    MS-Off Ver
    Microsoft Excel
    Posts
    4

    Re: Date Formula and leaving cell blank when no date is entered

    Tried that is it didnt work

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Date Formula and leaving cell blank when no date is entered

    Maybe this

    =IF(AND(A1="",C1=""),"",A1+7)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Date Formula and leaving cell blank when no date is entered

    I think then you have an issue with the format ...maybe your date is formatted as text or something
    So if you could just upload a sample workbook..

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    http://www.excelforum.com/members/da...ch-a-file.html

  6. #6
    Registered User
    Join Date
    01-31-2015
    Location
    USA
    MS-Off Ver
    Microsoft Excel
    Posts
    4

    Re: Date Formula and leaving cell blank when no date is entered

    Alkey it worked.

    Thanks a bunch.

    Now if I can just figure out how to condition the cell to turn red when the date equals the current date I will be good to go

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Date Formula and leaving cell blank when no date is entered

    You would need to use formula for Conditional Formatting

    =C1=TODAY()
    Last edited by AlKey; 01-31-2015 at 03:00 PM.

  8. #8
    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,939

    Re: Date Formula and leaving cell blank when no date is entered

    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =A1=today()

    adjust A1 to suite
    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

+ 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. [SOLVED] Formula for converting a date to quarter and leaving blank cell for no date values
    By jayc2111 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-10-2019, 12:57 AM
  2. [SOLVED] Leaving cell with formula blank until data is entered.
    By Marley04 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2013, 09:17 PM
  3. Adding years to a date, but leaving blank if no date in the original cell.
    By buddyhackit9 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2011, 01:17 AM
  4. Leaving a cell blank until a value is entered
    By pajc72 in forum Excel General
    Replies: 3
    Last Post: 08-31-2011, 10:41 AM
  5. Cell formula result unexpected when blank date criteria entered
    By TGP in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-06-2010, 07:59 AM

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