+ Reply to Thread
Results 1 to 6 of 6

Count A Number Of Times A String Appears but display the number sequence

  1. #1
    Registered User
    Join Date
    11-22-2010
    Location
    Bridlington, England
    MS-Off Ver
    Excel 2000
    Posts
    3

    Count A Number Of Times A String Appears but display the number sequence

    Hi, I'm using excel 2000 and I need to get around this problem I'm having any help would be great.

    So for example I have a column of string data

    A
    A
    A
    B
    A
    B
    B

    I need to know the number of occurrences of the letters, I know I can use COUNTIF to get the total but I need the number sequence to be displayed like this

    A 1
    A 2
    A 3
    B 1
    A 4
    B 2
    B 3

    As calculations need to be performed at each instance, any ideas? Anyone??

    Last edited by NBVC; 11-22-2010 at 10:22 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count A Number Of Times A String Appears but display the number sequence

    Assuming you are beginning at A1, try:

    =COUNTIF(A$1:A1,A1) copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-05-2010
    Location
    S.A
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: Count A Number Of Times A String Appears but display the number sequence

    attached a sample
    but the sequence is from maximum to minimum
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-22-2010
    Location
    Bridlington, England
    MS-Off Ver
    Excel 2000
    Posts
    3

    Re: Count A Number Of Times A String Appears but display the number sequence

    ooooooh so close with this one! If I could just get the numbers to run the other way

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count A Number Of Times A String Appears but display the number sequence

    Did you try my formula.. it should produce exactly your results...

  6. #6
    Registered User
    Join Date
    11-22-2010
    Location
    Bridlington, England
    MS-Off Ver
    Excel 2000
    Posts
    3

    Re: Count A Number Of Times A String Appears but display the number sequence

    Perfect!, Thankyou very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1