Forum Discussion

cat36290's avatar
cat36290
Copper Contributor
Feb 06, 2024
Solved

Count Total Values for Each Label

Hi,

 

Column A has duplicate labels and Column B has a value attributing to each label in Column A.

 

Brand

Clicks

redwood

11

yahoo

12

twitty

1

yahoo

8

microsoft

1

 

How do I count the total values attributed to each, unique label in Column A with a formula? (I have over 3,000 labels in my spreadsheet and cannot count each label individually).

 

Thanks,

Catriona

3 Replies

  • Patrick2788's avatar
    Patrick2788
    Silver Contributor

    cat36290 

    With a formula and access to Excel 365 you can use:

    =LET(
        UniqueBrands, SORT(UNIQUE(brand)),
        totals, SUMIF(brand, UniqueBrands, clicks),
        HSTACK(UniqueBrands, totals)
    )

     

    Within a year or so (once GROUPBY is available), it gets simpler:

    =GROUPBY(brand,clicks,SUM)

     

     

Resources