#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default #num fix

I have a formula to calculate longevitity years: In column u some new
service dates are in the year 2009 (school mothers based on hours to get a
service date)
= DATEDIF(U20,$V$3,"Y")
the formula takes the date in u20(new service date) and subtracts from v3
(11/30/2008) and brings the "Y" ( which is total # of years). The ones with
2009 for the year in column u, give me a #num answer. Is there a way to have
the formula fixed so these #num will bring a blank or 0 instead of #num?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default #num fix

Try it this way:

=IF(ISERROR(DATEDIF(U20,$V$3,"Y")),0,DATEDIF(U20,$ V$3,"Y"))

you can replace the 0 in the middle with "" if you prefer to see a
blank cell.

Hope this helps.

Pete

On Nov 25, 2:20*pm, Pammy wrote:
I have a formula to calculate longevitity years: *In column u some new
service dates are in the year 2009 (school mothers based on hours to get a
service date)
= DATEDIF(U20,$V$3,"Y") *
the formula takes the date in u20(new service date) and subtracts from v3
(11/30/2008) and brings the "Y" ( which is total # of years). *The ones with *
2009 for the year in column u, give me a #num answer. *Is there a way to have
the formula fixed so these #num will bring a blank or 0 instead of #num?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"