+ Reply to Thread
Results 1 to 8 of 8

Convert Date range to specific Date

  1. #1
    Registered User
    Join Date
    01-27-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    54

    Convert Date range to specific Date

    Week Day Date
    #1 (10/23-10/29) Thursday ?
    #2 (10/30-11/05) Thursday ?


    Each week comes with a range and a Specific day, but the specific date have been adding manually



    Thanks any help is appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Convert Date range to specific Date

    It's not clear from your description what day you are trying to produce
    Try

    =TEXT(MID(A2,5,5)+0,"dddd")
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    01-27-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Convert Date range to specific Date

    The date range is a week that is pulled from the DB. The Day is predetermined. I'm looking to identify the specific date with in the range.
    Example #1 (10/23-10/29) being the range and Thursday is predetermined for our process. In this case the Specific date for Thursday within the range of the week should be Oct 25th.
    I'm looking to set up a formula to do this.

    I attached the sample with what my attempt, however if you see in D3 there isn't 32 days in a month..
    Let me know if that clarifies
    Attached Files Attached Files
    Last edited by k2hunter; 10-16-2018 at 10:43 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,731

    Re: Convert Date range to specific Date

    Maybe this?

    =DATEVALUE(MID(A2,FIND("(",A2)+1,5))+7-WEEKDAY(DATEVALUE(MID(A2,FIND("(",A2)+1,5)),15)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,430

    Re: Convert Date range to specific Date

    C2 (to extract 1st day of the date range):
    =DATE(2018,LEFT(MID(A2,FIND("(",A2)+1,5),2),RIGHT(MID(A2,FIND("(",A2)+1,5),2))

    D2 to convert desired day name to number:
    =MATCH(B2,{"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"},0)

    E2 to return the corresponding date:
    =C2-WEEKDAY(C2,1)+IF(WEEKDAY(C2,1)>D2,7+D2,D2)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Convert Date range to specific Date

    Please try at C2

    =--MID(A2,FIND("(",A2)+1,5)-WEEKDAY(--MID(A2,FIND("(",A2)+1,5),2)+MATCH(B2,{"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"},0)

  7. #7
    Registered User
    Join Date
    01-27-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Convert Date range to specific Date

    thank you this works!

    I do appreciate all other responses.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,430

    Re: Convert Date range to specific Date

    No idea who you were talkig to, but....

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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: 4
    Last Post: 03-21-2018, 09:25 AM
  2. Season to date sales - sum of specific cell within a daily date range
    By Amr Hicham in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-06-2016, 08:51 AM
  3. [SOLVED] Date range creates date-specific outputs into separate cells
    By cbjfan2009 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-17-2015, 01:59 PM
  4. Does a task start or finish date fall within 3 month range of a specific date
    By jamesmcgallan in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-19-2015, 07:46 AM
  5. [SOLVED] Formula to assign specific numbers if a date falls within a certain date range
    By headley4ever in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2014, 04:16 PM
  6. Convert date range to week ending date
    By minkus in forum Excel General
    Replies: 5
    Last Post: 11-29-2010, 04:30 PM
  7. Replies: 1
    Last Post: 04-20-2006, 05:10 PM

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