Countifs Formula that counts if 1 of 2 columns has a Y in it

hofst038

New Member
Joined
Mar 11, 2016
Messages
17
Need a little help. I need help with my formula that needs to count every instance, during a specific time period, when either 1 of 2 columns has a text (in this case a Y) in it.

Heres what I have so far:

=COUNTIFS(Date,">"&'Weekly Report'!F2,Date,"<"&'Weekly Report'!G2,'Checkout List'!$AF:$AF,"Y")+COUNTIFS(Date,">"&'Weekly Report'!F2,Date,"<"&'Weekly Report'!G2,'Checkout List'!$AG:$AG,"Y")

This is doing its job and counting the Y's; however, if both columns have a Y in them it is counting both and returning 2 because it is counting both Y's in each column. What I want is for it to return a count of 1, not 2. Does this make sense?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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,167,940
Messages
5,856,420
Members
431,812
Latest member
Elastomers

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