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: 12

Some videos you may like

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,526
Office Version
  1. 365
Platform
  1. Windows
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.
 

Ghtdd

New Member
Joined
Oct 9, 2020
Messages
4
Office Version
  1. 2010
Platform
  1. Windows
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!
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,526
Office Version
  1. 365
Platform
  1. Windows
Glad it's working & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,530
Messages
5,625,361
Members
416,096
Latest member
forevans

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