Countifs / Sumifs query

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
774
Office Version
  1. 365
Platform
  1. Windows
Good Afternoon,

I am trying to do a sumif or countif based on a date range.
I can get the countif section to work with no issues when I remove the red txt section.
I am trying to get column E to add together anything with "E" + "DF" togther based on the date in column B, Active in Column D and so on

=COUNTIFS($B$15:$B$3000,"="&TODAY(),$D$15:$D$3000,"Active",$E$15:$E$3000,"E",$E$15:$E$3000,"DF",$F$15:$F$3000,"Yes",$G$15:$G$3000,"Yes")

All help appreciated
Thanks
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Countifs is an AND criteria...

It's only going to count rows where both of those criteria are TRUE..

So for example, Assuming all other criteria are true,
Row 15 will only be counted if the value in E15 = "E" AND the value in E15 = "DF"
This of coarse is not possible.

I believe what you want to say is
Row 15 will be counted if the value in E15 = "E" OR the value in E15 = "DF"

Try
=SUM(COUNTIFS($B$15:$B$3000,"="&TODAY(),$D$15:$D$3000,"Active",$E$15:$E$3000,{"E","DF"},$F$15:$F$3000,"Yes",$G$15:$G$3000,"Yes"))
 
Last edited:
Upvote 0
Many thanks that was exactly what I was looking for



Countifs is an AND criteria...

It's only going to count rows where both of those criteria are TRUE..

So for example, Assuming all other criteria are true,
Row 15 will only be counted if the value in E15 = "E" AND the value in E15 = "DF"
This of coarse is not possible.

I believe what you want to say is
Row 15 will be counted if the value in E15 = "E" OR the value in E15 = "DF"

Try
=SUM(COUNTIFS($B$15:$B$3000,"="&TODAY(),$D$15:$D$3000,"Active",$E$15:$E$3000,{"E","DF"},$F$15:$F$3000,"Yes",$G$15:$G$3000,"Yes"))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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