#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to display date?

Does anyone have any suggestions on how to display date?

=If(True,23-Aug-07,"")
which is wrong statement in excel.
Does anyone have any suggestions on how to fix it?
Thanks in advance for any suggestions
Eric
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,510
Default How to display date?

Hi Eric,

Not sure that I really understand what you want but the following formula
tests the date in cell A1 and if it equals 23-Aug-07 the it inserts Yes else
it inserts No

=IF(A1=VALUE("23 Aug 2007"),"Yes","No")

Note: Because the VALUE function is converting an excel recognizable string
to a date then the format of the date in A1 does not have to match the format
of the date in the VALUE function.

Alternative Example where A1 is 23 Aug 2007 and value function using
different format. It still works:-

=IF(A1=VALUE("23/8/07"),"Yes","No")

Regards,

OssieMac




"Eric" wrote:

Does anyone have any suggestions on how to display date?

=If(True,23-Aug-07,"")
which is wrong statement in excel.
Does anyone have any suggestions on how to fix it?
Thanks in advance for any suggestions
Eric

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default How to display date?

Take date in double quotes ("23-Sep-07") and format cell to date.
let us know if it works.

"OssieMac" wrote:

Hi Eric,

Not sure that I really understand what you want but the following formula
tests the date in cell A1 and if it equals 23-Aug-07 the it inserts Yes else
it inserts No

=IF(A1=VALUE("23 Aug 2007"),"Yes","No")

Note: Because the VALUE function is converting an excel recognizable string
to a date then the format of the date in A1 does not have to match the format
of the date in the VALUE function.

Alternative Example where A1 is 23 Aug 2007 and value function using
different format. It still works:-

=IF(A1=VALUE("23/8/07"),"Yes","No")

Regards,

OssieMac




"Eric" wrote:

Does anyone have any suggestions on how to display date?

=If(True,23-Aug-07,"")
which is wrong statement in excel.
Does anyone have any suggestions on how to fix it?
Thanks in advance for any suggestions
Eric

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default How to display date?

As you will have seen, in your formula Excel will treat your "date" as 23
minus Aug minus 7 (and object with a #NAME error unless Aug is a defined
name). If you wanted Excel to recognise the date, you could use a modified
version of the formula
=IF(TRUE,--"23-Aug-07","")
but of course it is a fairly pointless IF statement, as TRUE is always true
so the condition is always met.
--
David Biddulph

"Eric" wrote in message
...
Does anyone have any suggestions on how to display date?

=If(True,23-Aug-07,"")
which is wrong statement in excel.
Does anyone have any suggestions on how to fix it?
Thanks in advance for any suggestions
Eric



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
Formula to Display Date n-Workdays from a Certain Date BHadds Excel Discussion (Misc queries) 4 June 13th 07 09:49 PM
date display Craig Excel Discussion (Misc queries) 2 February 6th 07 12:12 AM
date display pamwp Excel Discussion (Misc queries) 2 February 5th 07 03:20 PM
X axis date - display beyond latest date. Dave F. Charts and Charting in Excel 1 January 3rd 07 03:17 AM
Date display new2XL Excel Discussion (Misc queries) 1 June 14th 06 04:33 PM


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