+ Reply to Thread
Results 1 to 5 of 5

Formula to create a sequential number

  1. #1
    Forum Contributor
    Join Date
    02-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    191

    Formula to create a sequential number

    Hi All,

    Right now in the attached workbook, I use cell B1 for my current week (YY-Week#) and it will update the last cell. However I have to remember to add a column and adjust a specific cell to be -49 (in this example, cell BD1). Since there are only 52 weeks it has to cap at 52 before moving out to 1601, 1701 etc.

    Would really appreciate someones eye's on this. Thanks!
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,735

    Re: Formula to create a sequential number

    This is a more complicated formula but the nice thing about it is that it is exactly the same formula in every cell.

    =MOD((COLUMN()-COLUMN($E$1)),52)+1+100*(15+INT((COLUMN()-COLUMN($E$1))/52))

    Note that $E$1 is the first column that you are using, and 15 is the number of the first year you want to use. So it can be easily updated to change position or year. (It doesn't matter what row you put it in.)
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  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,337

    Re: Formula to create a sequential number

    With E1= 1501

    in F1

    =IF(MOD(E2,100)=52,E2+49,E2+1)

    Drag across

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Formula to create a sequential number

    Or in BW1

    Please Login or Register  to view this content.
    and copy to left


    Kind regards
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,319

    Re: Formula to create a sequential number

    Or maybe this
    My startpoint is 1-1-2015 and not the week of today (Year 2016 and weeknumber 20)
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

+ 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. Sequential Check number formula
    By MTGARCIA in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-10-2012, 05:35 PM
  2. Generate sequential number after pressing button and create a tracking list.
    By Sam Kuiper in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-04-2012, 03:39 AM
  3. Replies: 0
    Last Post: 11-02-2012, 07:57 PM
  4. [SOLVED] Need help with sequential number formula - Excel 2007
    By kaurka in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-24-2012, 05:30 PM
  5. [SOLVED] Create sequential letters (A, B, C) in sequential cells
    By Theale in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-29-2012, 02:47 PM
  6. Excel formula for getting sequential number
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-21-2011, 10:58 AM
  7. Replies: 1
    Last Post: 04-23-2006, 07:50 PM
  8. How can I create an array formula for non-sequential cells
    By Sue in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-21-2005, 01:59 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