+ Reply to Thread
Results 1 to 6 of 6

Counting values of one column based on the uniqueness of the values in another column

  1. #1
    Registered User
    Join Date
    11-21-2008
    Location
    Vancouver
    MS-Off Ver
    Office 2013
    Posts
    11

    Question Counting values of one column based on the uniqueness of the values in another column

    Hi there,

    Here is a table

    Col1 Col2 Col3 Col4
    88210 15m 14:44.0 E__uMail
    92663 21m 34:13.0 E__uMail
    92677 165m 23:43.0 E__uMail
    93094 15m 07:24.0 E__uMail
    93094 15m 42:12.0 E__uMail
    93167 10m 41:33.0 E__uMail
    93282 2m 12:43.0 E__uMail
    93411 12m 48:55.0 Voicemail
    93567 5m 35:34.0 E__uMail
    93617 15m 56:09.0 E__uMail
    93713 15m 27:59.0 E__uMail
    93713 45m 52:19.0 E__uMail
    93713 100m 14:19.0 E__uMail
    93713 60m 43:29.0 E__uMail
    93713 5m 50:42.0 E__uMail
    93764 15m 40:38.0 Walk__bIn
    93820 15m 17:09.0 E__uMail
    93906 10m 16:27.0 Ask__bIT
    93906 5m 08:36.0 Ask__bIT
    93920 15m 47:37.0 E__uMail
    93939 10m 32:17.0 E__uMail
    93990 15m 58:48.0 E__uMail
    94016 6m 52:44.0 E__uMail
    94030 8m 01:45.0 Walk__bIn

    Here is some context

    Each one of these rows represents an entry into a ticket in our incident management system. Col4 represents the method by which the incident was reported to us (Email, Voicemail, Walk In, Ask IT). A ticket can be open and closed with a single entry if the issue is easily solved or it can have many entries if the issue is complex and requires more troubleshooting or escalation to a higher tier of support. I need to determine the number of unique tickets submitted by each reporting avenue (Email, Voicemail, Walk In, Ask IT).

    In this table the number of tickets that were:
    submitted via Email is 14
    submitted via Voicemail is 1
    submitted via Walk In is 2
    submitted via Ask IT is 1

    Col1 Col2 Col3 Col4
    88210 15m 14:44.0 E__uMail = 1
    92663 21m 34:13.0 E__uMail = 2
    92677 165m 23:43.0 E__uMail = 3
    93094 15m 07:24.0 E__uMail = 4
    93094 15m 42:12.0 E__uMail = 4
    93167 10m 41:33.0 E__uMail = 5
    93282 2m 12:43.0 E__uMail = 6
    93411 12m 48:55.0 Voicemail = 1
    93567 5m 35:34.0 E__uMail = 7
    93617 15m 56:09.0 E__uMail = 8
    93713 15m 27:59.0 E__uMail = 9
    93713 45m 52:19.0 E__uMail = 9
    93713 100m 14:19.0 E__uMail = 9
    93713 60m 43:29.0 E__uMail = 9
    93713 5m 50:42.0 E__uMail = 9
    93764 15m 40:38.0 Walk__bIn = 1
    93820 15m 17:09.0 E__uMail = 10
    93906 10m 16:27.0 Ask__bIT = 1
    93906 5m 08:36.0 Ask__bIT = 1
    93920 15m 47:37.0 E__uMail = 11
    93939 10m 32:17.0 E__uMail = 12
    93990 15m 58:48.0 E__uMail = 13
    94016 6m 52:44.0 E__uMail = 14
    94030 8m 01:45.0 Walk__bIn = 2

    What I need is a formula that will produce this result.

    Thanks,
    crayadder

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Counting values of one column based on the uniqueness of the values in another column

    Hi,

    A Pivot table is preferable to a COUNTIFS() formula. See attached. There are incidentally 19 emails not 14 as in your post.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-21-2008
    Location
    Vancouver
    MS-Off Ver
    Office 2013
    Posts
    11

    Re: Counting values of one column based on the uniqueness of the values in another column

    Hi Richard,

    Thanks for the link.

    Let me clarify about the emails. In the table there 14 unique tickets that were submitted via email - Col1 shows the ticket number. There are indeed 19 rows with email in them, but some of those rows belong to the same ticket and what I am trying to do is remove all the rows of a ticket except 1 and then I can get an accurate count of how many tickets were submitted via which submission type.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Counting values of one column based on the uniqueness of the values in another column

    Hi,

    See modification attached. I'v added an additional helper column to your data and used that in the pivot table.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-21-2008
    Location
    Vancouver
    MS-Off Ver
    Office 2013
    Posts
    11

    Re: Counting values of one column based on the uniqueness of the values in another column

    Hi Richard,

    Thanks! The formula you used to create the helper column is exactly what I am looking for. All I need to do is do a count on each value and I am done!

    Greatly appreciated.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Counting values of one column based on the uniqueness of the values in another column

    You can try this Array Formula to get the desired count.......

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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 Multiple Values in a column based on critera in seperate column
    By ERoberts in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-11-2013, 01:08 PM
  2. Replies: 3
    Last Post: 06-10-2010, 11:54 AM
  3. Counting based on multiple column values
    By bakara in forum Excel General
    Replies: 4
    Last Post: 04-14-2010, 05:45 PM
  4. How do I total only specific values in a column based on the values in another column
    By Needy McHelpson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-23-2009, 12:17 PM
  5. Counting occurrences based on uniqueness of value in another column
    By wombat323 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-10-2007, 07:42 AM

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