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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,215,779
Messages
6,126,848
Members
449,343
Latest member
DEWS2031

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