+ Reply to Thread
Results 1 to 2 of 2

Counting Column and inserting number

  1. #1
    Registered User
    Join Date
    12-01-2004
    Posts
    70

    Counting Column and inserting number

    Hello,

    I have a particular column which has values like
    123
    123
    124
    125
    125
    125
    125 etc, what I want to do is I want to count these and in the next column I want to put it like these, how do I do this?

    123 1
    123 2
    124 1
    125 1
    125 2
    125 3
    125 4

    Thanks for any tips

  2. #2
    Forum Contributor
    Join Date
    09-05-2004
    Location
    Melbourne
    Posts
    193
    This formula should do the trick. Assuming your values start in cell A1, place 1 in cell B1 (it wil always be 1) and put this in cell B2 and copy it down.

    =IF(A2=A1,1+B1,1)

    Cheers!

+ 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