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!

Date Differences - multiple dates, with blank values

Status
Not open for further replies.

smmedeiros

Technical User
Feb 21, 2008
74
US
Looing for help. Not good with nested statements.
i have 3 date values
active
decom
today()

need formula to calculate date difference
if active populate and decom blank, date value is today()-active
if active populated and decom populated, date value is decom-active
if active = blank and decom populated, value needs to display as "NA"

active, decom are independate date values on same row, different columns

Thanks in advance for any guidance available
 
Breaking it up a bit with linefeeds for clarity:
IF(ISBLANK(active),
IF(ISBLANK(decom), "awaiting data", NA()),
IF(ISBLANK(decom), TODAY()-active, decom-active)
)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top