+ Reply to Thread
Results 1 to 9 of 9

Calendar Date convert to 4 weeks only

  1. #1
    Forum Contributor
    Join Date
    04-09-2013
    Location
    Philippines, Manila
    MS-Off Ver
    Excel 2010
    Posts
    141

    Calendar Date convert to 4 weeks only

    Hi Everyone,

    Is there a way to make a calendar date into 4 weeks? I tried using the formula I saw in the internet but it is showing 5 and 6 and sometimes no week 1 for the month.

    Attached here is the template I'm working on.

    Thank you in advance.

    JLV
    Attached Files Attached Files
    Last edited by Jarvin24; 05-24-2021 at 11:41 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,641

    Re: Calendar Date convert to 4 weeks only

    Questions:
    1) Is the week from Mon to Fri?
    2) Are you looking for week# within a month? 1 to 4 (or 5)
    3) What if "1-Jan-2021" is Friday? Is it 1st week, then next Monday, 4-Jan-2021, is week 2 starting? then week 5 is 25-Jan-2021?
    Could you input the manual outcome for Jan?
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    04-09-2013
    Location
    Philippines, Manila
    MS-Off Ver
    Excel 2010
    Posts
    141

    Re: Calendar Date convert to 4 weeks only

    HI Sir Bebo,

    Please see my comments below.

    Questions:
    1) Is the week from Mon to Fri? Yes sir, Monday to Friday only.
    2) Are you looking for week# within a month? 1 to 4 (or 5) - 1 to 4 only
    3) What if "1-Jan-2021" is Friday? Is it 1st week, then next Monday, 4-Jan-2021, is week 2 starting? then week 5 is 25-Jan-2021? - That's my dilemma, everything needs to restart to 1st week every month.
    Could you input the manual outcome for Jan? - I'll manually put the outcome.

  4. #4
    Forum Contributor
    Join Date
    04-09-2013
    Location
    Philippines, Manila
    MS-Off Ver
    Excel 2010
    Posts
    141

    Re: Calendar Date convert to 4 weeks only

    Sir Bebo,

    Per supply chain. Sorry.. I need to start with Saturday and End with Friday... Apologies for the confusion
    Last edited by Jarvin24; 05-24-2021 at 11:42 PM.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,641

    Re: Calendar Date convert to 4 weeks only

    Quote Originally Posted by Jarvin24 View Post
    I need to start with Saturday and End with Sunday...
    Do you mean start with Sunday and end with Saturday?

  6. #6
    Forum Contributor
    Join Date
    04-09-2013
    Location
    Philippines, Manila
    MS-Off Ver
    Excel 2010
    Posts
    141

    Re: Calendar Date convert to 4 weeks only

    The week start with Saturday and end with Friday... we have weekend delivery so it must be considered...

  7. #7
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Calendar Date convert to 4 weeks only

    Cell E2=IF(WEEKDAY(B2,2)>5,"",WEEKNUM(B2,2)-IF(AND(WEEKNUM(B2,2)>1,WEEKDAY($B$2,2)<>1),1,0))

  8. #8
    Forum Contributor
    Join Date
    04-09-2013
    Location
    Philippines, Manila
    MS-Off Ver
    Excel 2010
    Posts
    141

    Re: Calendar Date convert to 4 weeks only

    Quote Originally Posted by josephteh View Post
    Cell E2=IF(WEEKDAY(B2,2)>5,"",WEEKNUM(B2,2)-IF(AND(WEEKNUM(B2,2)>1,WEEKDAY($B$2,2)<>1),1,0))
    Hi Joseph,

    Thank you... This formula counts the day per week but does not reset on a monthly basis... Each month, it must count week 1 to week 4 only and reset again next month.

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,641

    Re: Calendar Date convert to 4 weeks only

    What if the last day, 31/8, fell into Sat? 31/8 = week 4, and 24-30/8 = week 3, 1-10/8 = week 1 (10 days)
    ???

+ 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] Extract and convert value (Julian date to Calendar date)
    By Bliznaca in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-16-2020, 09:41 AM
  2. Charting Date Data with Fiscal Weeks instead of Calendar Weeks
    By Humpjs in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-13-2019, 10:44 AM
  3. [SOLVED] Convert 4-digit Julian Date (DDDY) to Calendar Date
    By jbbeard in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2018, 04:52 PM
  4. Year and Week number but I need to convert to the date of that weeks start
    By darrenj1471 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-07-2017, 09:57 AM
  5. convert calendar date ddmmyy to julian date yyyydd
    By imichalopo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-13-2015, 01:47 AM
  6. [SOLVED] Convert Text to Date and Number Weeks
    By wace in forum Excel General
    Replies: 5
    Last Post: 07-24-2013, 09:42 AM
  7. [SOLVED] how to convert julian date to regular calendar date
    By Ron in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-05-2005, 07:06 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