+ Reply to Thread
Results 1 to 6 of 6

Formula to create a sequence of numbers every month

  1. #1
    Registered User
    Join Date
    02-13-2014
    Location
    Newcastle upon Tyne, United Kingdom
    MS-Off Ver
    Excel 365
    Posts
    77

    Formula to create a sequence of numbers every month

    Hi,
    Sure this is really simple, I have a Spreadsheet and i would like one of the columns to take the value of a cell showing a date and generate a slowly increasing number which would reset every time the month changed.
    So there might be 5 rows with dates in covering January and then 6 with February dates in etc etc and it would display a number sequence of 1 to 5 and then 1 to 6 and so on.
    How easy is that to achieve?
    Thanks,
    Peter

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

    Re: Formula to create a sequence of numbers every month

    I am not quite able t visualise this... but it will be easy. Show us what you want...

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-13-2014
    Location
    Newcastle upon Tyne, United Kingdom
    MS-Off Ver
    Excel 365
    Posts
    77

    Re: Formula to create a sequence of numbers every month

    My computer seems completely against the idea of attaching either a spreadsheet or an image of it but essentially i have the righthand column and want excel to create the numbering in the left hand one.

    No. Generated Referral Date
    1 02/01/2020
    2 02/01/2020
    3 15/01/2020
    4 22/01/2020
    5 26/01/2020
    1 01/02/2020
    2 10/02/2020
    3 11/02/2020
    4 23/02/2020
    5 24/02/2020
    6 28/02/2020
    1 03/03/2020
    2 05/03/2020
    3 16/03/2020
    1 15/04/2020
    2 16/04/2020
    3 25/04/2020
    4 26/04/2020
    1 06/05/2020
    2 07/05/2020

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

    Re: Formula to create a sequence of numbers every month

    That is NOT what I had even sort-of visualised!!

    =IF(B2="","",IFERROR(IF(MONTH(B2)<>MONTH(B1),1,A1+1),1))
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-13-2014
    Location
    Newcastle upon Tyne, United Kingdom
    MS-Off Ver
    Excel 365
    Posts
    77

    Re: Formula to create a sequence of numbers every month

    That is fantastic - Thank you.

    Might need a slight adjustment - there will end up being several years worth of data on here, what will happen when we come to the next year, will it still reset?

    The data will all be in order so its not like there will be dates from one year mixed in with another.

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

    Re: Formula to create a sequence of numbers every month

    Nope. But this will:

    =IF(B2="","",IFERROR(IF(TEXT(B2,"mmyyyy")<>TEXT(B1,"mmyyyy"),1,A1+1),1))

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

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

+ 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] Separate sequence of numbers with sequence of letters
    By dell001 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 07-02-2020, 07:09 AM
  2. [SOLVED] Code to create numbers in sequence
    By GKT in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-16-2014, 07:24 AM
  3. [SOLVED] Formula to re-sequence sequential numbers in a column
    By fearonc in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-29-2013, 07:50 PM
  4. [SOLVED] Create 19rows Add numbers in sequence excel/access2007
    By accessobsess in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-10-2013, 12:26 PM
  5. [SOLVED] Macro to create new sheets with numbers in sequence
    By canyflyer in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-21-2013, 07:11 PM
  6. Formula to determine a sequence of 6 numbers in a text
    By drajanm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2013, 03:09 AM
  7. Replies: 6
    Last Post: 08-02-2006, 11:40 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