Counting and summing based on 2 columns

inquisitor

New Member
Joined
Jan 15, 2012
Messages
15
Variations of this have been asked before, possibly the exact same thing but I'm still struggling to get this to work right -- please do feel free to point me to another post if this has been answered.

Given a spreadsheet with two (non-adjacent, though I don't think it matters) columns. Column A has names, or may be blank. Column B has an "X" in it, or may be blank.

I'd like a single number that counts the number of X marks for the UNIQUE set of names in Column A. Preferably without using a helper column because I'd like to drag the formula across another 11 columns of Xes.

Given this table:
A B
One X
Two X
Three
Four X
Two X
Three
One X
Four


The value I'd like at the bottom of the B column should be 3 (representing that One, Two, and Four have Xes).

Thanks for any help you can provide!
 
Outstanding. I ran into a bit of trouble because my cells actually have 0 values instead of being empty but was able to identify that as the root cause and update the formulas accordingly. Thank you again so much for your patience help -- invaluable.

You are welcome.

Let's hope I don't need to add new services, though I have a disconcerting feeling that I will...

I was afraid you would say that.
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
It's like I'm a soothsayer. Now I've got A, B, and C. Fortunately, not all combinatorics are relevant today. I have five categories: A, B, C, A+B, A+B+C. Possible to extend this model, or is it fruitless and I should seek another solution?
 
Upvote 0

Forum statistics

Threads
1,223,992
Messages
6,175,829
Members
452,673
Latest member
LaMiaAvy

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