+ Reply to Thread
Results 1 to 6 of 6

Non-sequential row numbering

  1. #1
    Registered User
    Join Date
    01-26-2016
    Location
    Baltimore, MD
    MS-Off Ver
    2013
    Posts
    2

    Non-sequential row numbering

    Sorry if this has been asked and answered before, but my searching for an answering has come up empty. I have a two-column spreadsheet, and I need to identify the order in which data will be entered. So I'll enter a value in column A, and I want column B to be automatically populated with the next number. However, the data in column A will be entered randomly, not sequentially. So I want results that look something like this:

    excel data sample.jpg

    I've tried an IF statement that tests for blank cells and increments the MAX function, but column B gets renumbered sequentially as data is entered in new rows. Any help would be greatly appreciated. Thanks!

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Non-sequential row numbering

    I am not clear what you want.. Can you please clarify again?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Cheers!
    Deep Dave

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Non-sequential row numbering

    If you want excel to ID which entries where entered in what sequence, there is no formula that will do that for you, you will need VBA
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Non-sequential row numbering

    Hi Joelh327,
    Welcome to the forum.

    I'm not able to provide the desired formula. However, here's a possible solution using VBA code.
    HTH!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-26-2016
    Location
    Baltimore, MD
    MS-Off Ver
    2013
    Posts
    2

    Re: Non-sequential row numbering

    Hi jewelsharma,

    Thanks for the welcome, and an even bigger thanks for the VBA code! It's exactly what I was looking for!

    Joel

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Non-sequential row numbering

    Hi Joel!
    Happy to help.

    Please take a moment to go through Forum FAQs and do mark the thread as SOLVED. Here's how:

    Method 1
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    Method 2
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

+ 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] Sequential numbering
    By tpedry in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-08-2014, 01:15 PM
  2. Sequential Numbering
    By izzorac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2014, 10:15 PM
  3. sequential numbering
    By mulanfox in forum Excel General
    Replies: 0
    Last Post: 07-26-2011, 11:18 PM
  4. Sequential numbering
    By taylorackley in forum Excel General
    Replies: 2
    Last Post: 08-26-2010, 02:19 PM
  5. Sequential numbering
    By mojura in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2009, 01:52 PM
  6. [SOLVED] Sequential Numbering
    By Tom in forum Excel General
    Replies: 4
    Last Post: 08-21-2006, 05:25 PM
  7. Sequential Numbering Help
    By BadgerFanToo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-10-2005, 02:05 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