A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date Formatting Problem



 
 
Thread Tools Display Modes
  #1  
Old August 11th, 2009, 02:44 AM posted to microsoft.public.excel.newusers
John Calder
external usenet poster
 
Posts: 192
Default Date Formatting Problem

Hi

I run Excel 2K

I download info from the mainframe into a workbook.

This information contains a date for each entry.

This is the format that the "date" is downloaded in (29:53.0)....when the
curser is placed on this example it displays it as 31/07/2009 12:29:53 AM in
the "edit bar" of the spreadsheet.

I can then format the (29:53.0) to dd/mmm/yy which then reads 31/Jul/09.

However in the edit bar still shows it as 31/07/2009 12:29:53 AM.

I need to be able to format it so that in the edit bar it only shows the
dd/mmm/yy and not have the time format attched to it.

The reason I need this to happen is that I have a formula that looks at this
date and if it is greater than or equal to the date it displays a TRUE or
FALSE.

The "time" at the end is what is mucking it up as when I just put a date in
manually the formula works fine. I have used this formula in many worksheets
before so I know it works ok.

By the way the formula is =AND(D3=Start_Date,D3=End_Date)

Anyway, what I need is a way to format this date so that it does not include
the time component or a formula that removes it.


Thanks


John


  #2  
Old August 11th, 2009, 03:16 AM posted to microsoft.public.excel.newusers
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default Date Formatting Problem

On Mon, 10 Aug 2009 18:44:01 -0700, John Calder
wrote:

Hi

I run Excel 2K

I download info from the mainframe into a workbook.

This information contains a date for each entry.

This is the format that the "date" is downloaded in (29:53.0)....when the
curser is placed on this example it displays it as 31/07/2009 12:29:53 AM in
the "edit bar" of the spreadsheet.

I can then format the (29:53.0) to dd/mmm/yy which then reads 31/Jul/09.

However in the edit bar still shows it as 31/07/2009 12:29:53 AM.

I need to be able to format it so that in the edit bar it only shows the
dd/mmm/yy and not have the time format attched to it.

The reason I need this to happen is that I have a formula that looks at this
date and if it is greater than or equal to the date it displays a TRUE or
FALSE.

The "time" at the end is what is mucking it up as when I just put a date in
manually the formula works fine. I have used this formula in many worksheets
before so I know it works ok.

By the way the formula is =AND(D3=Start_Date,D3=End_Date)

Anyway, what I need is a way to format this date so that it does not include
the time component or a formula that removes it.


Thanks


John


Formatting does not change the contents of a cell, only the appearance.

To effectively remove the time portion, use the INT worksheet function:

=AND(D3=INT(Start_Date),D3=INT(End_Date))
--ron
  #3  
Old August 11th, 2009, 09:16 PM posted to microsoft.public.excel.newusers
John Calder
external usenet poster
 
Posts: 192
Default Date Formatting Problem

Ron

Thanks for your prompt response.

Unfortunately your response was not what I wa after as this formula returns
a true or false which has nothing to do with my date issue. (although I did
try it anyway and I still have the problem)


I really need a formula that just strips the hh:mm:ss from the date. I think
this will fix my problem.



Thanks

John


"Ron Rosenfeld" wrote:

On Mon, 10 Aug 2009 18:44:01 -0700, John Calder
wrote:

Hi

I run Excel 2K

I download info from the mainframe into a workbook.

This information contains a date for each entry.

This is the format that the "date" is downloaded in (29:53.0)....when the
curser is placed on this example it displays it as 31/07/2009 12:29:53 AM in
the "edit bar" of the spreadsheet.

I can then format the (29:53.0) to dd/mmm/yy which then reads 31/Jul/09.

However in the edit bar still shows it as 31/07/2009 12:29:53 AM.

I need to be able to format it so that in the edit bar it only shows the
dd/mmm/yy and not have the time format attched to it.

The reason I need this to happen is that I have a formula that looks at this
date and if it is greater than or equal to the date it displays a TRUE or
FALSE.

The "time" at the end is what is mucking it up as when I just put a date in
manually the formula works fine. I have used this formula in many worksheets
before so I know it works ok.

By the way the formula is =AND(D3=Start_Date,D3=End_Date)

Anyway, what I need is a way to format this date so that it does not include
the time component or a formula that removes it.


Thanks


John


Formatting does not change the contents of a cell, only the appearance.

To effectively remove the time portion, use the INT worksheet function:

=AND(D3=INT(Start_Date),D3=INT(End_Date))
--ron

  #4  
Old August 12th, 2009, 12:22 AM posted to microsoft.public.excel.newusers
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default Date Formatting Problem

On Tue, 11 Aug 2009 13:16:01 -0700, John Calder
wrote:

Ron

Thanks for your prompt response.

Unfortunately your response was not what I wa after as this formula returns
a true or false which has nothing to do with my date issue. (although I did
try it anyway and I still have the problem)


I really need a formula that just strips the hh:mm:ss from the date. I think
this will fix my problem.



Thanks

John


I guess I don't understand what you want.

"To effectively remove the time portion, use the INT worksheet function"

I just embedded in the formula you wrote you were using because you wrote:

The reason I need this to happen is that I have a formula that looks at this
date and if it is greater than or equal to the date it displays a TRUE or
FALSE.

By the way the formula is =AND(D3=Start_Date,D3=End_Date)


I thought I had given you instructions both on ways to remove the time
information, and also an example as to how to use it in the formula you are
using.

Since neither of those suggestions appear to be helpful, you will have to be
more specific, (or maybe someone else can understand what you want).
--ron
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:35 PM.


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