Results 1 to 8 of 8

add consecutive number for each individual with multiple rows per person

Threaded View

  1. #1
    Registered User
    Join Date
    03-22-2024
    Location
    London, England
    MS-Off Ver
    Microsoft 365
    Posts
    2

    add consecutive number for each individual with multiple rows per person

    Hi

    I have a file that contains multiple rows per individual, each with a different date.

    I'd like to allocate a consecutive incrementing number for each individual, like the 'time' column below. This is just a one-off thing I need to apply to this dataset to allow further analysis - doesn't need to be dynamic.

    I'm unable to attach a file but below is how the data looks (my file has approx 1k records, 200 ID codes). There is unique identifier for each 'person' but a varying number of rows for each person. It's already sorted by ID and date, so the date variable doesn't need to be used. I would like to find a way for excel to add the 'time' column.
    E.g.

    ID. date. time
    ID1 -- 3/apr/15. 1
    ID1 -- 5/june/16. 2
    ID1 -- 2/mar-17. 3
    ID2 -- 1/jan/13. 1
    ID2 -- 5/mar/15. 2

    I feel that there should be a simple way to do this but am struggling to formulate the question. I'd be very grateful for any tips on how to achieve this. Thank you for reading!
    Last edited by phineasgage; 03-22-2024 at 11:50 AM. Reason: mark as solved

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Multiple Rows, Multiple Addresses for Same Person/Name
    By jarrgonn in forum Excel General
    Replies: 3
    Last Post: 07-01-2021, 04:00 PM
  2. Replies: 1
    Last Post: 01-12-2021, 02:22 AM
  3. How do I count the number of consecutive 5 rows with a certain value?
    By xamark_18 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-15-2019, 02:54 AM
  4. Count consecutive dates by person
    By KylerStern in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2015, 04:05 PM
  5. Replies: 4
    Last Post: 05-30-2013, 06:00 PM
  6. Transpose/Pivot multiple rows per person into 1 row per person with fixed columns
    By MaestroEnrique in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2013, 06:35 AM
  7. Consolidating Multiple rows for same person
    By Requiescat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2008, 07:19 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