Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 96
Default IF Statement with Dates & Calculations

I am trying to create a formula that looks at two dates, and based on the
results places either a the calculation of number of days between the two
dates, "n/a", or "Open" as the result

Column E Column I Desired Results in Column T
1/11/2010 12/29/2009 13
1/11/2010 Blank n/a
Blank 12/30/2009 Open

Any help would be greatly appreciated. Please let me know if you need
further explanation.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default IF Statement with Dates & Calculations

Put this in cell T2 and copy down....

=IF(I2="","n/a",IF(E2="","open",E2-I2))

Vaya con Dios,
Chuck, CABGx3




"Diane" wrote:

I am trying to create a formula that looks at two dates, and based on the
results places either a the calculation of number of days between the two
dates, "n/a", or "Open" as the result

Column E Column I Desired Results in Column T
1/11/2010 12/29/2009 13
1/11/2010 Blank n/a
Blank 12/30/2009 Open

Any help would be greatly appreciated. Please let me know if you need
further explanation.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 96
Default IF Statement with Dates & Calculations

It worked. Thank you!

"CLR" wrote:

Put this in cell T2 and copy down....

=IF(I2="","n/a",IF(E2="","open",E2-I2))

Vaya con Dios,
Chuck, CABGx3




"Diane" wrote:

I am trying to create a formula that looks at two dates, and based on the
results places either a the calculation of number of days between the two
dates, "n/a", or "Open" as the result

Column E Column I Desired Results in Column T
1/11/2010 12/29/2009 13
1/11/2010 Blank n/a
Blank 12/30/2009 Open

Any help would be greatly appreciated. Please let me know if you need
further explanation.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default IF Statement with Dates & Calculations

Happy to help.........thanks for the feedback.

Vaya con Dios,
Chuck, CABGx3




"Diane" wrote:

It worked. Thank you!

"CLR" wrote:

Put this in cell T2 and copy down....

=IF(I2="","n/a",IF(E2="","open",E2-I2))

Vaya con Dios,
Chuck, CABGx3




"Diane" wrote:

I am trying to create a formula that looks at two dates, and based on the
results places either a the calculation of number of days between the two
dates, "n/a", or "Open" as the result

Column E Column I Desired Results in Column T
1/11/2010 12/29/2009 13
1/11/2010 Blank n/a
Blank 12/30/2009 Open

Any help would be greatly appreciated. Please let me know if you need
further explanation.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default IF Statement with Dates & Calculations

Hi,
in column T enter
=if(and(E2<"",I2<""),E2-I2,if(and(E2<"",I2=""),"N/A","Open"))

"Diane" wrote:

I am trying to create a formula that looks at two dates, and based on the
results places either a the calculation of number of days between the two
dates, "n/a", or "Open" as the result

Column E Column I Desired Results in Column T
1/11/2010 12/29/2009 13
1/11/2010 Blank n/a
Blank 12/30/2009 Open

Any help would be greatly appreciated. Please let me know if you need
further explanation.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 96
Default IF Statement with Dates & Calculations

Thank you for the reply. This formula also worked!

"Eduardo" wrote:

Hi,
in column T enter
=if(and(E2<"",I2<""),E2-I2,if(and(E2<"",I2=""),"N/A","Open"))

"Diane" wrote:

I am trying to create a formula that looks at two dates, and based on the
results places either a the calculation of number of days between the two
dates, "n/a", or "Open" as the result

Column E Column I Desired Results in Column T
1/11/2010 12/29/2009 13
1/11/2010 Blank n/a
Blank 12/30/2009 Open

Any help would be greatly appreciated. Please let me know if you need
further explanation.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
help with dates & calculations Nikhil Excel Worksheet Functions 3 June 19th 08 10:30 PM
If Statement - Date Calculations Tony Excel Discussion (Misc queries) 3 February 5th 08 10:08 PM
If Statement - Date Calculations Tony Excel Discussion (Misc queries) 1 February 5th 08 09:13 PM
Calculations using dates -- HELP! LisaD Excel Discussion (Misc queries) 0 September 18th 06 05:08 AM
Removing Weekend dates from Day Calculations Heyna Excel Discussion (Misc queries) 2 March 3rd 06 12:41 AM


All times are GMT +1. The time now is 12:35 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"