+ Reply to Thread
Results 1 to 7 of 7

Formula to perform number from 1 based on numbers in column A

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Formula to perform number from 1 based on numbers in column A

    Looking for formula to look through column A and then number the numbers in column A from lowest to largest (largest is the number in column A).

    Example: If A2=6
    Formula outcome (B2:G2) =1 2 3 4 5 6

    Example: If A3=12
    Formula outcome (B3:M3) =1 2 3 4 5 6 7 8 9 10 11 12

    Example: If A3=18
    Formula outcome (B4:S4) =1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18



    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Formula to perform number from 1 based on numbers in column A

    How about, in B2 copied down & across
    =IF(COLUMNS($B1:B1)>$A2,"",COLUMNS($B1:B1))

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Formula to perform number from 1 based on numbers in column A

    B2=if(columns($b2:b2)<=$a2,columns($b2:b2),"")

    Copy across and down

  4. #4
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Formula to perform number from 1 based on numbers in column A

    Fluff13: Excellent solution. Thanks a lot.

  5. #5
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Formula to perform number from 1 based on numbers in column A

    CARACALLA : Outstanding solution. Thanks a lot.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Formula to perform number from 1 based on numbers in column A

    You're welcome & thanks for the feedback.

  7. #7
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Formula to perform number from 1 based on numbers in column A

    You are welcome

+ 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] Formula to perform calculation with n number of rows based on cell value
    By ironfelix717 in forum Excel General
    Replies: 12
    Last Post: 11-21-2017, 04:58 PM
  2. [SOLVED] Count number of cells that contain numbers based on another column
    By DarrenCl in forum Excel General
    Replies: 11
    Last Post: 09-08-2016, 07:22 AM
  3. [SOLVED] VBA to perform sum of column values if number of rows and columns are not constant
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-17-2015, 09:40 AM
  4. Add numbers to column based on order number change
    By fpmsi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2013, 11:48 AM
  5. [SOLVED] Count the number of unigue numbers based on number in another column.
    By ksmith4809 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-27-2013, 09:11 AM
  6. [SOLVED] Need a column of numbers based on text & number entries
    By prssmzk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-24-2013, 11:10 PM
  7. Adding up numbers based on number in separate column
    By jhelliar in forum Excel General
    Replies: 2
    Last Post: 09-08-2009, 04:53 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