LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default IF LEN formula

Hello,

I would like to know how to set a formula to check two cells for dates and
then calculate a start date by taking one of those cells and adding lead days
from another cell. The hard part is making the formula 1) check the
confirmed cell for a date and if no date there then 2) use tentative date.

My spreadsheet is like follows:

G2 = tentative project start date
I2 = confirmed project start date
D2 = lead time (usually 45, 60 or 90 days)
E2 = PreWork Start Date

So I need the formula to:
1) check I2 for a date, if this cell has a date then in cell E2 I need the
answer to 'I2-D2'
2) if I2 has no date then use date in G2. So in cell E2 I need answer to
'G2-D2'

I've tried this:

=IF(OR(LEN(I22)=0),AND(G22-D22),AND(I22-D22))

but the formula gives me True, I need a date. please help.


--
Thank You!
 
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 05:45 PM.

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

About Us

"It's about Microsoft Excel"