Thread: [Solved] #NUM! error
View Single Post
 
Old 02-03-2014, 03:03 AM
jimboba jimboba is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Feb 2014
Posts: 6
jimboba is on a distinguished road
Default

Quote:
Originally Posted by BobBridges View Post
I did that from memory, and you know, even as I wrote it I had a niggling suspicion that I should look it up. But no, I thought to myself, I KNOW this stuff; I don't need no stinkin' manual! He's right, of course, jimboba; it's not ERROR, it's ISERROR.

I still think, though, that it's even simpler to use the last one:
Code:
=IF(J3<J5,"Expired",INT(DATEDIF(J5,J3,"d")/7)&" Weeks  "&MOD(DATEDIF(J5,J3,"d"),7)&" Days")
<Double take> IFERROR? I don't think I ever knew about that one. ...Oh, cool! (I just looked it up.) Ok, jimboba, here's another alternative:
Code:
=IFERROR(INT(DATEDIF(J5,J3,"d")/7)&" Weeks  "&MOD(DATEDIF(J5,J3,"d"),7)&" Days","Expired")
Yeah, probably even better.
Hi Bob
It seems the simplest formula works very well.
Very many thanks for your expert help..Wish I'd thought of it ...lol
Reply With Quote