+ Reply to Thread
Results 1 to 8 of 8

COUNTIF non duplicate values that begin with

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    COUNTIF non duplicate values that begin with

    Hi,

    I have a column of 3840 rows that have listed reference numbers that contain characters and numbers and might have duplicates within the column.
    I need to count how many I have unique references that start with C121.
    Please help!!!

    example of references listed in the column: C121-xxx-1x-xxx-x111-11111

    range 'C510'!D19:D3657

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: COUNTIF non duplicate values that begin with

    Hi there. this should do the trick...
    =COUNTIF('C510'!D19:D3657,"C121*")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: COUNTIF non duplicate values that begin with

    It must be "uniques day" !

    So, you want to count the unique entries that start with C121?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: COUNTIF non duplicate values that begin with

    Oh... I misread your post. Disregard my earlier reply.

  5. #5
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: COUNTIF non duplicate values that begin with

    yes, I need to count unique values that start with C121

  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: COUNTIF non duplicate values that begin with

    Try this...

    Data Range
    A
    B
    1
    ------
    ------
    2
    C121-xxx
    3
    3
    C121-xxx
    4
    D000-11
    5
    C122-11
    6
    C012-xx
    7
    C121-aaa
    8
    C121-aaa
    9
    C121-aax
    10
    FFFG-000


    This array formula** entered in B2:

    =SUM(IF(FREQUENCY(IF(LEFT(A2:A10,4)="C121",MATCH(A2:A10,A2:A10,0)),ROW(A2:A10)-ROW(A2)+1),1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

  7. #7
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: COUNTIF non duplicate values that begin with

    Thank you very much Tony!!! That works perfectly and saves me a lot of time

  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: COUNTIF non duplicate values that begin with

    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. COUNTIF non duplicate values that begin with
    By LinaVa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2014, 09:23 AM
  2. Text Filter-begin With... (multiple Begin Withs?)
    By hariexcel1987 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-02-2013, 02:12 PM
  3. Selecting only cells that begin with certain values.
    By garner.ms in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2012, 10:06 AM
  4. How to Subtotal values that begin with a letter?
    By sstendahl in forum Excel General
    Replies: 3
    Last Post: 04-25-2012, 10:31 PM
  5. Text Filter-Begin with... (multiple begin withs?)
    By flyflipper in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-16-2010, 06:29 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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1