+ Reply to Thread
Results 1 to 3 of 3

Count value from B column based on A column content

Hybrid View

  1. #1
    Registered User
    Join Date
    06-22-2008
    Posts
    5

    Count value from B column based on A column content

    Hi,

    I will be greatful if someone could help me in solving this problem

    Here is my query:
    I have two columns with the following values in 1 Sheet:
    ID Name
    TC_A_1 Harry
    TC_A_2 Harry
    TC_A_3 Harry
    TC_A_4 Gus
    TC_B_1 Gus

    I have another sheet with the following four columns:
    ID_Count Tot_Count Harry Gus
    TC_A_* 4 3 1
    TC_B_* 1 0 1

    Is it possibile to get the count of Harry and Gus for TC_A_* and TC_B_* in the second sheet as 3,1 and 0,1 respectively?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    Hello harishg,

    See attached. Note: there are only 2 different formulas. B2 formula can be copied down as far as required, C2 formula can be copied across and down as required
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-22-2008
    Posts
    5

    Count value from B column based on A column content

    Hi,

    That was exactly what I was struggling to get! I learnt one more function in excel sumproduct and how to use it. :-)

    Thanks a lot.

    - Harish

+ 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