PC Review


Reply
Thread Tools Rate Thread

How to display date?

 
 
=?Utf-8?B?RXJpYw==?=
Guest
Posts: n/a
 
      17th Sep 2007
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 With Quote
 
 
 
 
=?Utf-8?B?T3NzaWVNYWM=?=
Guest
Posts: n/a
 
      17th Sep 2007
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

 
Reply With Quote
 
David Biddulph
Guest
Posts: n/a
 
      17th Sep 2007
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" <(E-Mail Removed)> wrote in message
news:94EB9AC8-BA23-4B80-AF96-(E-Mail Removed)...
> 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 With Quote
 
=?Utf-8?B?RXhjZWxfTGVhcm5lcg==?=
Guest
Posts: n/a
 
      17th Sep 2007
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
click date/time field display calendar and validation of date /tim Smithskenpo Microsoft Outlook Form Programming 0 4th Mar 2010 08:20 PM
arabic date (um alQura) wrong date display in outlook 2007 walad cool Microsoft Outlook Discussion 0 8th Dec 2009 09:07 AM
Bound Date/Time field to automatically display the current date Billiam Microsoft Access Database Table Design 2 20th Sep 2009 11:13 PM
Dates - Need to display date one month prior to user-entered date brettopp Microsoft Excel Worksheet Functions 13 3rd Dec 2007 05:58 PM
DataGrid + Access-DB - display date-values grouped by date and time? Olaf Rabbachin Microsoft VB .NET 1 19th May 2005 09:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:26 PM.