Counting cases between dates

L

Lisa

Hi, I am using a waiting list of our clients and i would like to be able to
calculate how many are on the list, from todays date, that have been waiting
less than 6 weeks, 6 - 18 weeks and 18 weeks+. I would be very grateful for
any help with this as it's driving me mad :(
 
J

Jacob Skaria

Hi Lisa

Suppose you have the dates in ColB try the below

'Count of clients waiting for the last 6 weeks
=COUNTIF(B:B,">" & TODAY()-(6*7))

'Count of clients waiting for the last 6 - 18 weeks
=COUNTIF(B:B,">" & TODAY()-(18*7))-COUNTIF(B:B,">" & TODAY()-(6*7))

'Count of clients waiting for 18 weeks and more
=COUNTIF(B:B,"<" & TODAY()-(18*7))
 
D

David Biddulph

=COUNTIF(A1:A20,">"&TODAY()-6*7)
=COUNTIF(A1:A20,">"&TODAY()-18*7)-COUNTIF(A1:A20,">"&TODAY()-6*7)
=COUNTIF(A1:A20,"<="&TODAY()-18*7)

Adjust the range to suit.
 
L

Lisa

Unbelieveable, i think you are a genius!!! I have no idea what any of it
meant but copied into the worksheet and it worked!!!!!!! Will it
automatically update if i wanted to do it tomorrow, next week etc??? Thank
you so much!
 
J

Jacob Skaria

Thanks for the feedback. Yes; it works automatically as the function TODAY()
always returns the current date
 
D

David Biddulph

Yes. That's why it's got TODAY() in the formula.

COUNTIF is a standard Excel function, and you'll find details of its
operation and syntax in the Excel help for the function.
 
L

Lisa

Brilliant, thanks again for your help with this, i'd have never have got
there on my own!!!!
 
L

Lisa

Thank you very much for your help David, excel is not my strong point!!! It
works and i'm happy :)
 
D

David Biddulph

Glad it worked for you.
--
David Biddulph

Lisa said:
Thank you very much for your help David, excel is not my strong point!!!
It
works and i'm happy :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top