+ Reply to Thread
Results 1 to 7 of 7

using Count if to sub number

  1. #1
    Registered User
    Join Date
    05-11-2010
    Location
    barnstaple
    MS-Off Ver
    Excel 2007
    Posts
    7

    using Count if to sub number

    hi i have a large problem which hopefully someone can solve
    i have a list of invoice numbers in which lots are duplicated what i want to do is insert a new column next to the invoice numbers and then sub number them so that if an invoice is duplicated it will be numbered in the second column for example

    invoice no. Subno.
    12345 1
    12345 2
    12345 3
    14000 1
    50000 1
    50000 2
    60000 1

    i have over 14000 records so some sort of macro would be good

    thanks for your help

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: using Count if to sub number

    Try

    =COUNTIF(A$2:A2,A2)

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: using Count if to sub number

    Try this in B2
    Please Login or Register  to view this content.
    Drag/Fill Down

    or if you only want to find the duplicates maybe
    Please Login or Register  to view this content.
    This is easier to visually detect.

    Use C/F to highlight any specific count and filter to get the result/info you need'

    Hope this helps.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    05-11-2010
    Location
    barnstaple
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: using Count if to sub number

    tried that does not work as i need it to count the amount of entries and then number them so if there are 15 invoices with the number 11111 then in the sub column it would have 1 by the first entry 2 on the second and so on

  5. #5
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: using Count if to sub number

    Quote Originally Posted by k_babb View Post
    tried that does not work as i need it to count the amount of entries and then number them so if there are 15 invoices with the number 11111 then in the sub column it would have 1 by the first entry 2 on the second and so on
    Which is exactly what our formula (mine and Marcol's first) does.

  6. #6
    Registered User
    Join Date
    05-11-2010
    Location
    barnstaple
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: using Count if to sub number

    Works a treat thank you so much

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: using Count if to sub number

    On behalf of both.

    Happy to have helped ...

+ 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