I have a formula below that looks in cells E5 and H5
The problem is that when text is entred into one of the cells the formula shows as #VALUE!.=IF(E5="",YEAR(H5),YEAR(E5))
Is there a way of stopping this?
Regards,
Last edited by snoopy1461; 12-22-2011 at 11:00 AM. Reason: Solved
Hi Snoopy,
Use the following formula:-
Regards,=IF(OR(E5="",ISTEXT(E5)),YEAR(H5),YEAR(E5))
DILIPandey
<click on below 'star' if this helps>
DILIPandey
+919810929744
dilipandey@gmail.com
Hi snoopy
You mean that sometimes you need to type in this cells, or that the user makes wrong type?
In these cells(E5 & H5) you need to have only DAte data??
Regards
Fotis.
I am proud that i am Greek.
Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?
Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Please,mark your thread [SOLVED] if you received your answer.
My Avadar picture, is from Athens Acropolis.
http://www.theacropolismuseum.gr
http://www.visitgreece.gr/
Thanks dilipandey, this is just want i needed,
Fotis1991, what i was looking for was to not only type in a date and for the formula to read it, but have text to be able to write in the cell and for the formula to ignore it. Dilipandey has solved this problem with his formula. Thanks for replying to my post though.
Thanks again for your help
You are welcome Snoopy....
Cheers
Regards,
DILIPandey
<click on below 'star' if this helps>
DILIPandey
+919810929744
dilipandey@gmail.com
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks