+ Reply to Thread
Results 1 to 4 of 4

Date Range based on another Date

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    Verona, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    22

    Date Range based on another Date

    Hi,

    I have a column (let's say it's column A) and it has dates, starting from Jan, 1 2014 thru today. I want in column B, to have a Sunday-Saturday date range based on the date in column A. Also, I need the year to be droped.

    For example,

    Column A Column B
    1/1/2014 1/1-1/4
    1/3/2014 1/1-1/3
    1/6/2014 1/5-1/11
    1/8/2014 1/5-1/11
    1/9/2014 1/5-1/11

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Date Range based on another Date

    Try..

    =TEXT(MAX(DATE(2014,1,1),A1-WEEKDAY(A1)+1),"mm/dd")&"-"&TEXT(A1-WEEKDAY(A1)+7,"dd/mm")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    06-12-2012
    Location
    Verona, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Date Range based on another Date

    Hi,

    Thank you but it does not seem to be working. See screen shot.screen shot.PNG

  4. #4
    Registered User
    Join Date
    06-12-2012
    Location
    Verona, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Date Range based on another Date

    I see the problem. The dd/mm needs to be mm/dd.

    TEXT(MAX(DATE(2014,1,1),A16-WEEKDAY(A16)+1),"mm/dd")&"-"&TEXT(A16-WEEKDAY(A16)+7,"mm/dd")

+ 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. Replies: 0
    Last Post: 05-30-2013, 07:50 PM
  2. [SOLVED] find missing date on every group date list based on range and criteria
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2013, 01:26 AM
  3. [SOLVED] Date Filter based on Cell Input - single date or range of dates
    By babaloo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2012, 10:32 AM
  4. Replies: 27
    Last Post: 08-17-2011, 05:25 PM
  5. copy date based on date -refer to date range
    By mindpeace in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-03-2006, 08:35 AM

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