5
1
I want to count a number of rows for each value appearing in a column. Is there an easy way to do this in excel?
Let's say I have the following table:
A B C
1 Cat A
3 Cat A
3 Cat B
4 Dog A
5 Cat B
I want to get the following result:
B Row_Count
Cat 4
Dog 1
Also, it would be nice to be able to SUM
B SUM_Col_A
Cat 12
Dog 4
But I cannot specify strings "Cat" and "Dog" explicitly because my columns contain >1000 distinct values.
You can use the Consolidate option (Data->Data Tools->Consolidate). First select the A&B columns and use Consolidate with COUNT and then with SUM. – User552853 – 2018-02-22T06:21:06.600
@User194076,, check I've posted a solution, if you can handle VBA code then for the faster process I can suggest you bunch of codes since you have written that you have more that 1000 Rows. – Rajesh S – 2018-02-22T11:55:48.753