Avatar of Jase Alexander
Jase Alexander
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Excel Counting number of aged orders using date

Hi Experts

Hope you can help

I have a report that is generated from an online portal and gives us details of aged orders that may exists in the system. We monitor any aged orders purely by the number of them still active s a performance indicator

Ive been trying to use the dates in the Order Date column (Column L) against a formula in cell Q5, that basically returns the number of orders equal to and older than the date in cell R3

Ive tried using =SUMPRODUCT(L:L<R3) as well as COUNTIF both of which either return a 0 or incorrect result

WOuld you have any suggestions as to return the correct figure? For the example Ive attached the correct redult should be 19 as they are all older or equal to 3rd December (in R3)

Any help would be greatly appreciated

Thanks
J
EE-Example.csv
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Martin Liss

8/22/2022 - Mon
Norie

Assuming you have valid date values in column L and R3, try this.

=COUNTIF(L:L, "<="&R3)
Jase Alexander

ASKER
Hi Norie

Thank you for the repsonse

When I carry out your suggestion, I get the result of 4 instead of 17 which it should be

Any ideas?

J
Martin Liss

I placed Norie's formula in Q5 and the result was 17.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER CERTIFIED SOLUTION
Martin Liss

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jase Alexander

ASKER
Thank you Martin it appears I may have made this mistake
Martin Liss

You’re welcome and I’m glad I was able to help.

If you expand the “Full Biography” section of my profile you’ll find links to some articles I’ve written that may interest you.

Marty - Microsoft MVP 2009 to 2017
              Experts Exchange Most Valuable Expert (MVE) 2015, 2017
              Experts Exchange Top Expert Visual Basic Classic 2012 to 2017
              Experts Exchange Top Expert VBA (current)