+ Reply to Thread
Results 1 to 2 of 2

How to add ascending numbers after finding last row of data in adjacent column

  1. #1
    Registered User
    Join Date
    02-23-2010
    Location
    Brighton, England
    MS-Off Ver
    Excel 2007
    Posts
    32

    How to add ascending numbers after finding last row of data in adjacent column

    Hello again!!

    Does anyone know how to do the following?

    I want to find the last row in the data field in the adjacent column to my left, then put in ascending/descending (depending on which way you look at it!) in from the bottom up to the top so row 1 would be 1, then 2 would be 2 etc etc

    Or if not i can put in something at the bottom of the rows in that column by doing and offset then maybe you could tell me how to put the numbers in.

    thank you.

    I'm nearly done, hopefully there wont be many more questions!

    Oh and when doing this can someone tell me is there a way to to simply move from my active cell to the column next to me, so i can find the last data cell in a column then jump over to the next column which would be empty then put something in it and copy up.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to add ascending numbers after finding last row of data in adjacent column

    If the numeric sequence starts in row 1, you can put this formula in a column and copy down to get sequential numbers:

    =ROW()

    If the numeric sequence needs to start row5 but start count at 1, put this in row5 as the first formula, then copy down:

    =ROW(A1)

    You can use VBA to enter that formula. Let's say you have a random number of rows of data and you want to put numbers in column A, there is existing data in B:E. Look UP column B to spot the last row and store that number in a variable.

    Please Login or Register  to view this content.

    or:
    Please Login or Register  to view this content.


    Another way using OFFSET to answer your final question:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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