COUNTIFS with dates smaller than a date in other cell

virtuosok

Board Regular
Joined
Sep 2, 2020
Messages
209
Office Version
  1. 365
Platform
  1. Windows
Hi,
Appreciate your help with the following formula which is not working as I would want:
Excel Formula:
=COUNTIFS('Source'!$E$13:$E$15000, C2, 'Source'!$M$13:$M$15000, "<Z2")
Essentially, I would need to count only those dates in column M which are smaller than the date noted in cell Z2
I have the following issues:
1. Z2 is formatted as Date, format 01 Jan 2000. This cell in itself is an INDEX/MATCH output from exported source though. At the same time, column M on Source tab is formatted as Custom, 01-Jan-2020 (and is also an export from another source). Changing that would be problematic as the inputs are dynamic. I need to somehow compare the values even though the format is different, if at all possible.
2. I'll need the formula which can be pulled down across the whole column, i.e. next cell matching Z3 and so on.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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