Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Formula multiple dates

Status
Not open for further replies.

BigLar49

Instructor
Apr 16, 2001
5
US
I need 4 dates compared in a formula.

1. date of surgery
2. if surgery had to be redone time in years between surgery and redo
3. if patient died date of surgery to date of death
4. Today's date.

If date of redo is blank use date of death if date of death is blank use today. Return in years (##.#)
Can anyone help. I can't seem to get my mind around it.
 
Hi,
Is this what you are looking for...
Code:
=IF(ISBLANK(Death),IF(ISBLANK(Redo),TODAY()-Sgry,Redo-Sgry),Death-Sgry)/365.25
format the receiving cells as Numeric,2
Hope it helps :)
Skip,
metzgsk@voughtaircraft.com
 
Like a charm! Thanks for the help.

Biglar.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top