COUNTIFS WITH DATE RANGES

ShaunF

Board Regular
Joined
Jan 17, 2015
Messages
54
Hi,

Am having a brain fade. Am after a formula which returns the number (ie. count) of dates which are greater than a variable date , and where a unique identifier is met.

For example:

SHEET 1
A B
1
APPLE 10/10/2019
2 PEAR 10/05/2020
3 ORANGE 10/12/2019

SHEET 2
A B
1
APPLE 2/04/2020
2 APPLE 11/12/2019
3 PEAR 18/06/2020
4 PEAR 6/02/2020
5 PEAR 27/11/2019
6 PEAR 11/12/2019
7 ORANGE 1/10/2019
8 ORANGE 31/10/2019
9 ORANGE 9/01/2020
10 ORANGE 10/12/2019


I want to count the number of times a date shows in Sheet 2, which is greater or equal to the date in Sheet 1, where the fruit type matches. In this example, the return would be Apple - 2 ; Pear - 1 ; Orange - 3

In my sheets I have dates formatted as 'dates'.

Any help appreciated.

Thanks,

Shaun.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,216,460
Messages
6,130,771
Members
449,589
Latest member
Hana2911

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