+ Reply to Thread
Results 1 to 6 of 6

Date Range

  1. #1
    Registered User
    Join Date
    05-30-2013
    Location
    Elberta, Al
    MS-Off Ver
    Excel 2007
    Posts
    91

    Date Range

    Is there a way to do a date range so when you click on today date, you can have another cell in same worksheet automatically show the date of the month before.

    example. today date is 4/22/2015. I want another cell in the same worksheet to automatically show 3/22/2015 .So that every time I click or type in a date in one cell I want the other cell to show the date of one month before. can excel do something like this?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,217

    Re: Date Range

    Assuming the date is in A2, use this where you want the other date to show,,,
    =if(A2="","",EDATE(A2,-1))
    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
    11-17-2013
    Location
    Elberta alabama
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Date Range

    FDibbins, Hey that worked. how can you do this going back one week or one day

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,217

    Re: Date Range

    That would be something like...
    =if(A2="","",A2,-7)
    where -7 is the days you want to go back - change it to how ever many days you want

  5. #5
    Registered User
    Join Date
    05-30-2013
    Location
    Elberta, Al
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Date Range

    Thank you are taking the time to help me out. both of your answers worked great and save me so much time in my worksheet.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,217

    Re: Date Range

    Im really happy they were what you needed, and thanks for the great feedback

+ 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. Highlight a date range if today's date falls within that range
    By sdarnell in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2014, 10:03 AM
  2. VBA to enter date range based on date range in above cell
    By Pierce Quality in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-19-2013, 08:45 AM
  3. Search date range +/- 7 days and return date that falls within range
    By tlafferty in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-13-2013, 03:26 PM
  4. [SOLVED] Calculate how many days in one date range fall into a second date range
    By globalpontoon in forum Excel General
    Replies: 2
    Last Post: 05-08-2012, 03:02 PM
  5. Replies: 4
    Last Post: 03-18-2011, 07:02 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