Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Date Calcuation with Blank Cells

Hello,

I am looking to see if this is possible. I have my present formula below.
What I would like to do is that if the date in E2 is blank then to default to
6, and if not, then perform this calculation.

=DATEDIF(E2, TODAY(), "m")

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Date Calcuation with Blank Cells

Hope this does what you want:
=IF(E2="",6,DATEDIF(E2,TODAY(),"m"))

Regards,
Ryan---

--
RyGuy


"PT40" wrote:

Hello,

I am looking to see if this is possible. I have my present formula below.
What I would like to do is that if the date in E2 is blank then to default to
6, and if not, then perform this calculation.

=DATEDIF(E2, TODAY(), "m")

Thank you

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Date Calcuation with Blank Cells

Yes, that was perfect. Thank you

"ryguy7272" wrote:

Hope this does what you want:
=IF(E2="",6,DATEDIF(E2,TODAY(),"m"))

Regards,
Ryan---

--
RyGuy


"PT40" wrote:

Hello,

I am looking to see if this is possible. I have my present formula below.
What I would like to do is that if the date in E2 is blank then to default to
6, and if not, then perform this calculation.

=DATEDIF(E2, TODAY(), "m")

Thank you

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Date Calcuation with Blank Cells

Try this:

=IF(E2,DATEDIF(E2, TODAY(), "m"),6)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"PT40" wrote in message
...
Hello,

I am looking to see if this is possible. I have my present formula below.
What I would like to do is that if the date in E2 is blank then to default
to
6, and if not, then perform this calculation.

=DATEDIF(E2, TODAY(), "m")

Thank you



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default Date Calcuation with Blank Cells

=IF(E2="",6,DATEDIF(E2, TODAY(), "m"))

Tyro

"PT40" wrote in message
...
Hello,

I am looking to see if this is possible. I have my present formula below.
What I would like to do is that if the date in E2 is blank then to default
to
6, and if not, then perform this calculation.

=DATEDIF(E2, TODAY(), "m")

Thank you





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Date Calcuation with Blank Cells

=IF(E2="",6,DATEDIF(E2, TODAY(), "m"))
--
David Biddulph

"PT40" wrote in message
...
Hello,

I am looking to see if this is possible. I have my present formula below.
What I would like to do is that if the date in E2 is blank then to default
to
6, and if not, then perform this calculation.

=DATEDIF(E2, TODAY(), "m")

Thank you



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
Maximum Number of Blank Cells between Non Blank Cells in a Range Mal Excel Worksheet Functions 5 November 3rd 07 08:21 AM
If And Calcuation Kimbo[_2_] Excel Worksheet Functions 4 October 6th 07 03:11 PM
calculating date/time with blank cells ferde Excel Discussion (Misc queries) 2 August 23rd 07 11:26 PM
Disalbe the Calcuation in Excel after vaildety date Vikky Excel Worksheet Functions 0 July 31st 06 10:22 AM
How do I make a blank cell with a date format blank? Pivot Table/Query Excel Worksheet Functions 6 June 14th 05 11:19 PM


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