What is wrong with this formula? Please help!

  • Thread starter Thread starter DonaMil
  • Start date Start date
D

DonaMil

I am in Excel 2003. The error comes back with a "#value" entry. The
original formula was okay until I wanted to add the condition that if there
was text reading "Full Duty" in R8 I wanted the cell to show "NA" instead of
the formula result. I've tried several different ways but always come up
with either an error message telling me my formula is wrong or it goes
through and I get an "#value"entry

=IF(ISERROR((YEAR(O8)-YEAR(K8))*12+MONTH(O8)-MONTH(K8))/12,"NA",((YEAR(O8)-YEAR(K8))*12+MONTH(O8)-MONTH(K8))/12),IFText(R8="Full
Duty","NA",((YEAR(O8)-YEAR(K8))*12+MONTH(O8)-MONTH(K8))/12)
 
Is this what you're looking for?
=IF(ISERROR((YEAR(O8)-YEAR(K8))*12+MONTH(O8)-MONTH(K8)/12),"NA",IF(R8="Full
Duty","NA",((YEAR(O8)-YEAR(K8))*12+MONTH(O8)-MONTH(K8))/12))

FYI, there is a IsText( ) function but no IfText( ) function.
 
Back
Top