Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Todd F.
 
Posts: n/a
Default Calculations with date time interval

I have a date time value in a cell

It appears in cell as "1/1/04 18:00

In formula bar it appears as " 1/1/2004 6:00:55 PM

I need to do calcs on this in excel - if date is = " another date I try
toi enter" then good, bad

not having any luck

thanks for your time.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(INT(that_date)=another_date,"good","bad")

--
HTH

Bob Phillips

"Todd F." wrote in message
...
I have a date time value in a cell

It appears in cell as "1/1/04 18:00

In formula bar it appears as " 1/1/2004 6:00:55 PM

I need to do calcs on this in excel - if date is = " another date I try
toi enter" then good, bad

not having any luck

thanks for your time.



  #3   Report Post  
Gary''s Student
 
Posts: n/a
Default

Make sure your IF() is O.K.

Example
A1 is 9/22/2005 13:18
B1 is 9/22/2005 19:20
C1 has =IF(B1=A1,1,2)
and returns 1
--
Gary''s Student


"Todd F." wrote:

I have a date time value in a cell

It appears in cell as "1/1/04 18:00

In formula bar it appears as " 1/1/2004 6:00:55 PM

I need to do calcs on this in excel - if date is = " another date I try
toi enter" then good, bad

not having any luck

thanks for your time.

  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 22 Sep 2005 09:56:02 -0700, "Todd F."
wrote:

I have a date time value in a cell

It appears in cell as "1/1/04 18:00

In formula bar it appears as " 1/1/2004 6:00:55 PM

I need to do calcs on this in excel - if date is = " another date I try
toi enter" then good, bad

not having any luck

thanks for your time.


Assume your date is in A1 and the date you are comparing it to is in A2 and is
just a date (i.e. -- no time portion).

=IF(INT(A1)A2,"good","bad")


--ron
  #5   Report Post  
Todd F.
 
Posts: n/a
Default

thanks I got it to work as well but not in the if box - just straight in the
cell

"Gary''s Student" wrote:

Make sure your IF() is O.K.

Example
A1 is 9/22/2005 13:18
B1 is 9/22/2005 19:20
C1 has =IF(B1=A1,1,2)
and returns 1
--
Gary''s Student


"Todd F." wrote:

I have a date time value in a cell

It appears in cell as "1/1/04 18:00

In formula bar it appears as " 1/1/2004 6:00:55 PM

I need to do calcs on this in excel - if date is = " another date I try
toi enter" then good, bad

not having any luck

thanks for your time.



  #6   Report Post  
Todd F.
 
Posts: n/a
Default

thanks now I am going to try an nested if

"Bob Phillips" wrote:

=IF(INT(that_date)=another_date,"good","bad")

--
HTH

Bob Phillips

"Todd F." wrote in message
...
I have a date time value in a cell

It appears in cell as "1/1/04 18:00

In formula bar it appears as " 1/1/2004 6:00:55 PM

I need to do calcs on this in excel - if date is = " another date I try
toi enter" then good, bad

not having any luck

thanks for your time.




  #7   Report Post  
Todd F.
 
Posts: n/a
Default

thanks

"Ron Rosenfeld" wrote:

On Thu, 22 Sep 2005 09:56:02 -0700, "Todd F."
wrote:

I have a date time value in a cell

It appears in cell as "1/1/04 18:00

In formula bar it appears as " 1/1/2004 6:00:55 PM

I need to do calcs on this in excel - if date is = " another date I try
toi enter" then good, bad

not having any luck

thanks for your time.


Assume your date is in A1 and the date you are comparing it to is in A2 and is
just a date (i.e. -- no time portion).

=IF(INT(A1)A2,"good","bad")


--ron

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
Using VLOOKUP with a Date and Time Charles Excel Discussion (Misc queries) 4 September 20th 05 06:38 PM
Date & Time problem ckiraly Excel Worksheet Functions 2 August 15th 05 01:13 PM
How to Join/concatenate a date field with a time field in Excel? Alan Excel Discussion (Misc queries) 4 August 9th 05 10:07 PM
putting date and time together in 1 cell Robbie Excel Discussion (Misc queries) 2 February 22nd 05 03:03 PM
Automatically enter date and time but only update once. PM New Users to Excel 3 January 21st 05 07:47 AM


All times are GMT +1. The time now is 10:51 PM.

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

About Us

"It's about Microsoft Excel"