+ Reply to Thread
Results 1 to 4 of 4

Auto number items that are pasted into spreadsheet

  1. #1
    Registered User
    Join Date
    09-10-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Auto number items that are pasted into spreadsheet

    Hello,

    I need help please with auto numbering.
    Perhaps there is a built in feature that does this.

    I need a formula that can be pasted into a cell which looks to see which number precedes it in the same column.
    There will be empty cells between these numbers.
    It should add 1 to the previous number in the column to determine its own number.
    Should there not be a preceding number it will call itself 1.

    Thank you!
    B
    Last edited by bkg73123; 10-13-2014 at 01:31 PM.

  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: Auto number items that are pasted into spreadsheet

    Assuming the formula will be pasted into A2 (data starting in row2), then copied down:

    =IF(B2<>"", MAX(N(A1), MAX($A$1:$A1))+1, "")

    This will only put numbers in column A if there is a value showing in Column B, and it will increment as it goes down.
    _________________
    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!)

  3. #3
    Registered User
    Join Date
    01-23-2013
    Location
    Chennai, Tamil Nadu
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Auto number items that are pasted into spreadsheet

    Hi B,

    Check out this.

    =MAX($A$1:A1)+1

    initially copy and paste the formula in the cell A2 and later you can copy the the cell and paste any where in the column A.

  4. #4
    Registered User
    Join Date
    09-10-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Auto number items that are pasted into spreadsheet

    Thanks everyone.
    Sati's solution looks like it will work perfectly.
    Thank you!
    B

+ 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. How to achieve autofit in auto pasted links
    By eekie1 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-27-2014, 10:41 AM
  2. Replies: 1
    Last Post: 09-10-2012, 05:47 PM
  3. Replies: 1
    Last Post: 05-08-2012, 09:31 PM
  4. Auto Assign the next available number to a record in a spreadsheet.
    By tommytiger1972 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2011, 01:44 AM
  5. Replies: 0
    Last Post: 05-23-2005, 10:06 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