Counting values in a table

L

Legacy 93538

Guest
I have a tbale similar to below and i need get results which show how many non blank values in col2 for each unqiue value in col 1

col 1Col2
1
1
2a
2b
2c
3
3
4a

<tbody>
</tbody>



The results i would like are:
10
23
30
41

<tbody>
</tbody>

Does anyone have any idea of how to do this? I have tried using a countifs formula (COUNTIFS(Sheet1!$b:$b,"<>"&"",Sheet1!$a:$a,A2)) however i didn't work.

Any help would be appricated. :)
 
Last edited by a moderator:

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hello,

Make your life simple ...

Insert a Pivot Table ... you will get your results in less than 5 seconds ...

Hope this will help
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,358
Messages
6,124,487
Members
449,165
Latest member
ChipDude83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top