+ Reply to Thread
Results 1 to 3 of 3

Count unique values with the same prefix (integer) concatenated with different t

  1. #1
    Registered User
    Join Date
    12-09-2019
    Location
    Melbourne
    MS-Off Ver
    Ms Professional 2013
    Posts
    1

    Question Count unique values with the same prefix (integer) concatenated with different t

    Q. How to count unique values with the same prefix (integer) concatenated with different text values, display the unique records, count of unique records and count of records with unique prefix integer but different txt ?

    Example: Below table of system users have unique User ID: 43871Wally, 43871Daniel, 43871Craig - All these users have the same prefix 43871. And There are few duplicate entries with the same prefix 33871.
    Note: There is no space in the original data between Integer and Name combines forms UserID.

    Output Required: A) 43871Wally are unique entries should be populated in a separate column B) unique count of these entries should be calculated = 3 C) total count of entries "43871" should be calculated = 5.

    Refer sample data below of the table.


    43871Wally
    43871Wally
    43871Wally
    43872David
    43873Michael
    43871Daniel
    43871Craig
    43872Paul
    Last edited by AliGW; 12-09-2019 at 07:48 AM. Reason: Irrelevant section of title removed.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Q. How to count unique values with the same prefix (integer) concatenated with differe

    This is simple, using Power Query:

    Distinct Values:
    Please Login or Register  to view this content.
    Distinct Prefixes:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

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

    Re: Q. How to count unique values with the same prefix (integer) concatenated with differe

    I'm not entirely clear about what you are expecting to see and where you expect to see it.


    Please read the yellow banner at the top of the screen. Act on its guidelines and post a SMALL sample sheet.
    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

+ 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] Replace hyphenated prefix of concatenated columns removing to much
    By capson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-14-2015, 05:02 PM
  2. Count unique text from multiple columns concatenated w/ one column
    By lopez235 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-01-2015, 08:54 PM
  3. [SOLVED] Find count of Unique or Duplicate Values based on Concatenated values in 2 columns
    By bdicarlo1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2014, 12:42 AM
  4. [SOLVED] VBA code for adding text prefix to an integer
    By g-unit84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2013, 09:54 AM
  5. vba to Match concatenated values in concatenated columns
    By bjurick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2012, 03:45 PM
  6. Finding Unique Count for a Concatenated Range of Columns.
    By e4excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-12-2012, 06:30 AM
  7. Count the number of occurrences of an integer withing a larger integer
    By nnktran in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2010, 01:04 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