+ Reply to Thread
Results 1 to 12 of 12

How to change month format to a specific date range?

  1. #1
    Registered User
    Join Date
    03-06-2020
    Location
    London
    MS-Off Ver
    version 16.34
    Posts
    8

    How to change month format to a specific date range?

    Please look at revised sheet.

    Thanks again for all your ideas. However, I'm still having no luck with the suggestions.

    I've since tried IF function, but not able to think of a formula that looks at whole pay date range.
    I've attached doc which further explains this.


    ExcelQuestion.xlsx















    I am looking to set the months up within the period of my pay days, so to properly reflect my spending within that period.
    I get paid on 26th of each a month, so I would like to set it so that each month starts from 26th.

    e.g.

    July 2022. - Pay Period: 26.07.22 - 25.08.22

    Aug 2022 - Pay Period: 26.08.22 - 25.09.22

    Sep 2022 - Pay Period: 26.09.22 - 25.10.22

    so on and so forth...

    However, in the months which the 26th falls on a weekend, the pay date changes to the nearest preceding week-day.
    So following from the example above the next pay period would be:

    Oct 2022 - Pay Period: 26.10.22 - 24.11.22. not... 26.10.22 - 25.11.22
    ...as Nov 26th 2022 falls on a weekend, so therefore pay date is the nearest preceding week-day, which is 25.11.22.

    So the Pay period after that would be .... Nov 2022 - Pay Period: 25.11.22 - 25.12.22


    Hope this make sense. If not please ask for clarification.


    Question:
    How can I set this up in excel?

    I've used M01 etc but would ideally like B:B to return a Month text (i.e., September) based on whether A:A falls between the specific start and end dates (columns K & L).


    Excelforumhelp.xlsx

    I am relatively new to excel so my know-how is very limited. All solutions welcome.


    Thanks in advance
    Last edited by shinexcel20; 10-23-2022 at 09:55 AM. Reason: revision (additional question)

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,723

    Re: How to change month format to a specific date range?

    There are instructions at the top of the page explaining how to attach your sample workbook. Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: How to change month format to a specific date range?

    Try

    in B2

    =TEXT(A2,"mmmm")

    in K2

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 10-10-2022 at 05:56 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: How to change month format to a specific date range?

    Hi,
    I think that version 16.34 is for MAC and I don't know and I don't know which Excel functions are available for this version.
    So, I tried with what I have.
    In B2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In J2
    The same formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In K2(for start date of period):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In L2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In B13:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In C16
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In F18:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: How to change month format to a specific date range?

    Are you using a Romanian version of Excel?

    May be you should try, because month = lună:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    OR

    If you want English month names in a Romanian version of Excel, please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The letter l looks like a digit 1. The formula uses letters l (not digits 1).
    Last edited by HansDouwe; 10-10-2022 at 07:12 AM.

  6. #6
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,723

    Re: How to change month format to a specific date range?

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. As you are new here, I shall do it for you this time: https://www.mrexcel.com/board/thread...range.1218803/)

  7. #7
    Registered User
    Join Date
    03-06-2020
    Location
    London
    MS-Off Ver
    version 16.34
    Posts
    8

    Re: How to change month format to a specific date range?

    Thanks for taking time out to compile this...

  8. #8
    Registered User
    Join Date
    03-06-2020
    Location
    London
    MS-Off Ver
    version 16.34
    Posts
    8

    Re: How to change month format to a specific date range?

    Tanasedn

    Thanks for taking time out to compile this...

    I tried it...

    This worked on the pay dates periods (very good formula).
    Also worked for the returning the text month (though alongside the "M0#" - e.g. M09 Sep...M10 Oct) and the referencing of pay periods...

    The only thing is that B6 it is still returning month of October despite the date in A6 falling within the September pay period? I could possible include some of the formula in B13 to rectify this?

  9. #9
    Registered User
    Join Date
    03-06-2020
    Location
    London
    MS-Off Ver
    version 16.34
    Posts
    8

    Re: How to change month format to a specific date range?

    Thanks.

    Still not completely solved as B6 it is still returning month of October despite the date in A6 falling within the September pay period?

  10. #10
    Registered User
    Join Date
    03-06-2020
    Location
    London
    MS-Off Ver
    version 16.34
    Posts
    8

    Re: How to change month format to a specific date range?

    No not using Romanian version of excel.

  11. #11
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: How to change month format to a specific date range?

    You want in Column B to get the Month of pay period?

  12. #12
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: How to change month format to a specific date range?

    In B2 insert a formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] Change date month format
    By kimudao in forum Excel General
    Replies: 8
    Last Post: 11-16-2021, 12:38 AM
  2. [SOLVED] Change date month format
    By kimudao in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-22-2021, 06:23 AM
  3. [SOLVED] Formula to change a month to a specific date within that month
    By stephenp12 in forum Excel General
    Replies: 6
    Last Post: 07-07-2021, 07:38 PM
  4. Replies: 9
    Last Post: 10-08-2015, 01:50 PM
  5. 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
  6. Replies: 10
    Last Post: 08-01-2013, 11:40 AM
  7. Replies: 2
    Last Post: 07-13-2005, 12:05 PM

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