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

Jase AlexanderCompliance ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

=COUNTIF(L:L, "<="&R3)
Jase AlexanderCompliance ManagerAuthor 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?

Martin LissOlder than dirtCommented:
I placed Norie's formula in Q5 and the result was 17.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Martin LissOlder than dirtCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jase AlexanderCompliance ManagerAuthor Commented:
Thank you Martin it appears I may have made this mistake
Martin LissOlder than dirtCommented:
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)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.