+ Reply to Thread
Results 1 to 2 of 2

Identifying sets of continuous values with a unique ID

  1. #1
    Registered User
    Join Date
    02-19-2014
    Location
    TX
    MS-Off Ver
    Excel 2013
    Posts
    2

    Identifying sets of continuous values with a unique ID

    I have data which consists of one column of 0s and 1s (Value column, below). I would like to uniquely identify each continuous "set" of 1s, with a consecutively numbered value (like the example "ID" column below).

    Any suggestions on how I might accomplish this?

    Value ID
    0 0
    1 1
    1 1
    0 0
    1 2
    1 2
    0 0
    0 0
    1 3
    1 3
    1 3
    0 0
    1 4
    1 4

  2. #2
    Registered User
    Join Date
    02-19-2014
    Location
    TX
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Identifying sets of continuous values with a unique ID

    Solved by someone else:
    for value in cell A2 and unique ID in cell B2:

    =IF(A2=0, 0, IF(A1=1, B1, MAX(B$1:B1) + 1))

+ 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. Finding unique values in 2 sets of data
    By benzine in forum Excel General
    Replies: 6
    Last Post: 12-13-2014, 09:33 PM
  2. [SOLVED] Identifying the MODE using two sets of data
    By R.Baltimore in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-17-2014, 01:57 PM
  3. LISTS! identifying unique values in multiple lists
    By pwall1115 in forum Excel General
    Replies: 3
    Last Post: 04-09-2013, 03:36 AM
  4. [SOLVED] Identifying unique values within a row whilst suming a column array
    By mchauho in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-17-2012, 12:52 PM
  5. Identifying the number of unique values in an array
    By JoshuaSQ in forum Excel General
    Replies: 1
    Last Post: 02-29-2008, 05:26 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