Count days between text dates
Shorter formula:
=DATEVALUE(SUBSTITUTE(SUBSTITUTE(B1,"/"," ",1),"/",", "))
-DATEVALUE(SUBSTITUTE(SUBSTITUTE(A1,"/"," ",1),"/",", "))
--
Best Regards,
Luke M
*Remember to click "yes" if this post helped you!*
"Luke M" wrote:
Assuming you always have 4 digits for the year, how about this (all in one
line):
=DATEVALUE(MID(B1,FIND("/",B1)+1,FIND("/",B1,FIND("/",B1)+1)-FIND("/",B1)-1)&" "&LEFT(B1,FIND("/",B1)-1)&" "&RIGHT(B1,4))
-DATEVALUE(MID(A1,FIND("/",A1)+1,FIND("/",A1,FIND("/",A1)+1)-FIND("/",A1)-1)&" "&LEFT(A1,FIND("/",A1)-1)&" "&RIGHT(A1,4))
There are numerous ways of manipulating date_text into the proper format
needed to numerically compare it.
--
Best Regards,
Luke M
*Remember to click "yes" if this post helped you!*
"Benny" wrote:
Hello, I need to count the number of days between dates also the months are
in spelled out. I can't change them to numbers. So, is there a way to count
days if cell A1 is Sep/5/2008 and cell B1 is Oct/25/2009?
|