We help IT Professionals succeed at work.

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
Comment
Watch Question

NorieAnalyst Assistant

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

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

Author

Commented:
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"There is still no cure for the common birthday." ~John Glenn
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
I placed Norie's formula in Q5 and the result was 17.
"There is still no cure for the common birthday." ~John Glenn
Most Valuable Expert 2017
Distinguished Expert 2018
Commented:
Maybe you modified his formula to be =COUNTIF(L:L, ">="&R3) rather than =COUNTIF(L:L, "<="&R3) which is what he posted. The modified version returns 4.
Jase AlexanderCompliance Manager

Author

Commented:
Thank you Martin it appears I may have made this mistake
Martin Liss"There is still no cure for the common birthday." ~John Glenn
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
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)