+ Reply to Thread
Results 1 to 8 of 8

Need help with counting duplicates in another row

  1. #1
    Registered User
    Join Date
    08-09-2015
    Location
    India
    MS-Off Ver
    2019
    Posts
    10

    Need help with counting duplicates in another row

    Hi,

    I am not sure if this is the right category for my thread as I am a complete newbie with Excel...

    I have a list of my customers in Excel, "Order List".. The problem is I want to know how many times they have ordered.

    I have attached the image

    Screenshot 2.JPG

    And as you can see I have a list like that.. The list is very big around 23,000 records. The Unique records should be around 9500+

    What I need help is

    For example: If "Alex" has ordered 5 times.. I need number "5" next to Alex row... and the rest 4 duplicates should be deleted.

    So I just need one unique row with number of orders in next row..

    Is it possible? or I have to go through manually?

    Please help!
    Attached Images Attached Images
    Last edited by AkbarPasha; 08-09-2015 at 06:47 PM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need help with counting duplicates in another row

    Quote Originally Posted by AkbarPasha View Post
    And as you can see I have a list like that..
    Actually, many of us can't see *.png images.

    If you're going to post an image try it as a *.jpg image.

    However, it might be a better idea to post a SMALL sample file instead. SMALL = about 20 rows worth of data. Make sure you tell us what result you expect.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    08-09-2015
    Location
    India
    MS-Off Ver
    2019
    Posts
    10

    Re: Need help with counting duplicates in another row

    Hi, I just updated the image...

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need help with counting duplicates in another row

    Something like this...

    Data Range
    A
    B
    1
    ------
    ------
    2
    Name 1
    4
    3
    Name 1
    4
    Name 1
    5
    Name 1
    6
    Name 2
    1
    7
    Name 3
    4
    8
    Name 3
    9
    Name 3
    10
    Name 3
    11
    Name 4
    2
    12
    Name 4
    13
    Name 5
    3
    14
    Name 5
    15
    Name 5


    This formula entered in B2 and copied down as needed:

    =IF(A2=A1,"",COUNTIF(A:A,A2))

    Then, convert the formulas to constant values...

    Select the entire range of formulas
    Right click>Copy
    Right click>Paste Special>Values>OK

    Then you can delete the rows without a count value in column B.

    You can probably filter for blanks in column B then delete those rows.

  5. #5
    Registered User
    Join Date
    08-09-2015
    Location
    India
    MS-Off Ver
    2019
    Posts
    10

    Re: Need help with counting duplicates in another row

    Wow that worked great and exactly as I needed.

    Can you please do me a one last help?

    The "1" should be "0", 2 should be 1, 3 should be 2, 4 should be 3 and so on...

    Is there a formula for that as well?

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need help with counting duplicates in another row

    Maybe use this formula instead:

    =IF(A2=A1,"",COUNTIF(A:A,A2)-1)

  7. #7
    Registered User
    Join Date
    08-09-2015
    Location
    India
    MS-Off Ver
    2019
    Posts
    10

    Re: Need help with counting duplicates in another row

    Hi, worked exactly as I needed..

    Thanks a lot for the help Tony. God bless you!

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need help with counting duplicates in another row

    You're welcome. Thanks for the feedback!

+ 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. [SOLVED] Counting Duplicates
    By khemistry1911 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-24-2015, 02:38 PM
  2. [SOLVED] Counting Duplicates as 1
    By Publicpenguin in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-15-2014, 10:48 PM
  3. [SOLVED] Counting Matching values in two separate ranges without counting duplicates
    By Rhall6310 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-01-2014, 03:35 PM
  4. [SOLVED] Counting Duplicates
    By dbaldwin1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-20-2013, 05:56 PM
  5. [SOLVED] counting duplicates only once
    By eddisign in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-30-2012, 12:40 PM
  6. Counting duplicates
    By madd in forum Excel General
    Replies: 7
    Last Post: 04-17-2009, 11:38 AM
  7. counting cells with data without counting duplicates
    By labettis in forum Excel General
    Replies: 2
    Last Post: 11-05-2007, 12:10 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