Results 1 to 7 of 7

Thread: Excel Numbering of identical cells

  1. #1
    Join Date
    May 2008
    Posts
    18

    Excel Numbering of identical cells

    I can not fill out a form as the function I seek. (Probably because I do not know what I had to search for

    But I have a column of text, some of which are identical. Eg. in the range from A1-A9
    The text can be distributed so that A1-A3 is called "Test", A4-A5 = "Test 2" and A6-A9 = "Test 3"
    I would now like to excel can autonumber identical boxes for me in a new column. Eg. Column C
    This will look something like this out. A1-A3, in column C will be number 1, 2, 3 A4-A5 = 1, 2 and A6-A9 are assigned numbers 1, 2, 3

    Hope the above makes sense and that one of you can give me an idea of how to get this (probably simple) problem

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Excel Numbering of identical cells

    =COUNTIF(A$1:A$9;A1)-COUNTIF(A1:A$9;A1)+1

    It puts you into the C1 and drag down to C9. So C9 ends with this:

    =COUNTIF(A$1:A$9;A9)-COUNTIF(A9:A$9;A9)+1

    That it does is to count all occurrences of a value throughout the column and pull the remaining bodies from.

  3. #3
    Join Date
    May 2008
    Posts
    18

    Re: Excel Numbering of identical cells

    Super. It was just as it should be. Thank you.

    Can your form also be rewritten to instead of numbered each one, count the number of identical columns, giving a number next to the last cell?

    Eg. according to the example in #1 would then A1-A3 give the result 3 in cell C3, 2 of the C5 and 4 of the C9

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: Excel Numbering of identical cells

    =if(countif(a1:a$9;a1)=1;countif(a$1:a$9;a1)
    ;"")

    EDIT: delete "" if you want a zero instead of nothing.

  5. #5
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Excel Numbering of identical cells

    Nice trick with the only view it once.

    Low a pivot table, where does the column in both the left and right side. Well into the rows and values (data). So you have to format your data to show count.

  6. #6
    Join Date
    May 2008
    Posts
    18

    Re: Excel Numbering of identical cells

    Quote Originally Posted by Zecho View Post
    =if(countif(a1:a$9;a1)=1;countif(a$1:a$9;a1)
    ;"")

    EDIT: delete "" if you want a zero instead of nothing.
    Again spot on. Once again many thanks

  7. #7
    Join Date
    May 2008
    Posts
    18

    Re: Excel Numbering of identical cells

    Quote Originally Posted by Praetor View Post
    Low a pivot table, where does the column in both the left and right side. Well into the rows and values (data). So you have to format your data to show count.
    It was 49,000 lines imported as a CSV file, and one of my colleagues was about to go through them manually zzz ... As expected there was one here who had a quicker solution, as was the case

Similar Threads

  1. Format cells in Excel 2010
    By Morag T in forum MS Office Support
    Replies: 2
    Last Post: 17-03-2012, 11:17 AM
  2. How to add similar characters in Excel Cells
    By $horizon$ in forum MS Office Support
    Replies: 4
    Last Post: 08-02-2012, 04:10 PM
  3. How to renumber cells in Microsoft Excel
    By Weslee in forum MS Office Support
    Replies: 2
    Last Post: 24-01-2012, 05:25 PM
  4. Delete all Even cells in Excel
    By CAILYN in forum Windows Software
    Replies: 4
    Last Post: 24-06-2009, 11:26 PM
  5. Can't insert cells in Excel
    By Xavier1234 in forum Windows Software
    Replies: 3
    Last Post: 06-06-2009, 07:46 PM

Tags for this Thread

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
  •  
Page generated in 1,713,567,172.28607 seconds with 17 queries