Adding the combined results of two columns

jkchild

Board Regular
Joined
May 24, 2006
Messages
167
Hi

I have two columns Q & V. In column Q the answer will be Y or N, the same for column V.

What I want to do is have a formula in one cell that counts when there is a Yes in both columns. Therefore if there are 20 Y's in column Q and 10 in column V. The result would be 10. As there are 10 Y's in both columns.

I have tried MATCH, various counts, so I am either using the wrong formula, or I am putting my brackets in the wrong place.

Please help.
Thanks
J
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Airfix9

Well-known Member
Joined
Sep 23, 2005
Messages
886
The way that I read it, you want to return the value of the lowest count of "Y"s. In that case, use "=MIN(COUNTIF(Q:Q,"Y"),COUNTIF(V:V,"Y"))"

Otherwise, I have read it incorrectly... :oops:
 

jkchild

Board Regular
Joined
May 24, 2006
Messages
167
I don't think either of them works.

I will try and re-explain.

I want to know how many times there is a match of Y in both columns Q & V.

Col Q Col V Count
N Y 0
Y Y 1
N N 0
Y Y 1
Y N 0
Y Y 1

Therefore the answer is 3. However I want to formulate this in one cell
Thank you :)
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows

ADVERTISEMENT

That's what barry's formula does. How did it not work?
 

jkchild

Board Regular
Joined
May 24, 2006
Messages
167
Ooops, it might help if I linked the formula to the right sheet!!!!!

Thanks Barry works well.

If you don't mind, can you explain why you use the --
Thanks
J
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
The simple explanation is that SUMPRODUCT works with numbers not TRUE/FALSE values. The -- coerces TRUE values to 1 and FALSE values to 0.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,173
Messages
5,857,777
Members
431,897
Latest member
IntelligentCan1517

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
Top