CountIFs number of entries which match two different variables between two dates

Ghtdd

New Member
Joined
Oct 9, 2020
Messages
4
Office Version
  1. 2010
Platform
  1. Windows
Hi all,

I am looking to be able to count the number of entries between two dates which match two different variables.

In the example attached, I want a formula which will count the entry if it contains the relevant product AND Name of sales person.

My code at the moment is =CountIFS($A$2:$A$12,”>”&F$8,$A$2:$A$12,”<“&F$9,$C$2,$C$12,$E2,$B$2:$B$12,$B$15

It Will work fine if I just want to countif between two dates for one of these variables but not both.

Any help would be much appreciated!
 

Attachments

  • 01F76C2B-E85F-4CFD-BA16-1AAE52674FA9.jpeg
    01F76C2B-E85F-4CFD-BA16-1AAE52674FA9.jpeg
    99.1 KB · Views: 18

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
What makes you think it doesn't work?
Also it's better to post sample data to the board using the XL2BB add-in, rather than an image.
 
Upvote 0
What makes you think it doesn't work?
Also it's better to post sample data to the board using the XL2BB add-in, rather than an image.

You are correct, it does work, just a mistake. In future I will be sure to use that format, and ensure there is a genuine error. Apologies!
 
Upvote 0
Glad it's working & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,881
Messages
6,175,161
Members
452,615
Latest member
bogeys2birdies

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