Problem Couting Dates in Named Range


I've got a dynamic named range called CustomerSince . I used following formula but, as you can see on the picture and on the attached spreadsheet, it doesn't work properly. The formula should add only those cells into the named range that have a value.


Open in new window

Furthermore, I am trying to determine the date when the customer first orderer something from the company. I used following formula:


Open in new window

Where 1 is for January etc. But this formula doesn't work either. Is it because the named range is screwed up?

Thanks for your help

Massimo ScolaAsked:
Who is Participating?
barry houdiniConnect With a Mentor Commented:
You can't use that method for a dynamic named range here because it assumes no blanks. Try this to define the range


which defines the range down to the last number (date)

and the formula still won't work because it doesn't like the blanks either, try changing to this formula in E2 copied down


see attached with those revisons

regards, barry
Massimo ScolaAuthor Commented:
Thanks a lot barry

May I ask you one more question:

why: 10^10 ?

barry houdiniCommented:
For the lookup formula to work you make the lookup value a value bigger than any value found in the range, this is more normal


but with dates 10^10 is big enough to be greater than any date value in Excel, in fact 10^7 would be sufficient

regards, barry
Massimo ScolaAuthor Commented:
Hi Barry
Thanks for the information

I tried the formula and it seems to work with numbers/dates only.
How would I have to change the formula if I want to include words in a dynamic range?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.