Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / August 2008

Tip: Looking for answers? Try searching our database.

Custom date formatting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Del Cotter - 11 Jun 2007 17:58 GMT
Is there a way to format an Excel date such that

 -  the day of the week appears as a single letter? SMTWTFS

or

 -  the month appears as a single letter? JFMAMJJASOND

without resorting to text expressions?

Signature

Del Cotter
NB Personal replies to this post will send email to del@branta.demon.co.uk,
   which goes to a spam folder-- please send your email to del3 instead.

Ron Rosenfeld - 11 Jun 2007 18:26 GMT
>Is there a way to format an Excel date such that
>
[quoted text clipped - 5 lines]
>
>without resorting to text expressions?

No
--ron
Del Cotter - 11 Jun 2007 19:09 GMT
>>Is there a way to format an Excel date such that
>>the day of the week appears as a single letter
>>without resorting to text expressions?
>
>No

Short and sweet. That was all I needed to know, thanks.

Signature

Del Cotter
NB Personal replies to this post will send email to del@branta.demon.co.uk,
   which goes to a spam folder-- please send your email to del3 instead.

Ron Rosenfeld - 11 Jun 2007 21:34 GMT
>>>Is there a way to format an Excel date such that
>>>the day of the week appears as a single letter
[quoted text clipped - 3 lines]
>
>Short and sweet. That was all I needed to know, thanks.

You're welcome.

Such a response was made possible by the fact that you stated your question
completely!
--ron
Bernard Liengme - 11 Jun 2007 18:32 GMT
It cannot be done with just formatting but these formulas may help
=LEFT(TEXT(E1,"ddd"))
=CHOOSE(WEEKDAY(A1),"S","M","T","W","T","F","S")
=LEFT(TEXT(A1,"mmm"))
=CHOOSE(MONTH(A1),"J","F","M","A","M","J","J","A","S","O","N","D")
best wishes
Signature

Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

> Is there a way to format an Excel date such that
>
[quoted text clipped - 5 lines]
>
> without resorting to text expressions?
Peo Sjoblom - 11 Jun 2007 18:44 GMT
Another way

for months

LEFT(TEXT(A1,"mmm"))

for days

LEFT(TEXT(A1,"ddd"))

Signature

Regards,

Peo Sjoblom

> Is there a way to format an Excel date such that
>
[quoted text clipped - 5 lines]
>
> without resorting to text expressions?
Del Cotter - 11 Jun 2007 19:12 GMT
>Another way
>for days
>
>LEFT(TEXT(A1,"ddd"))

Thanks guys. I can do it as text, but I had hoped for a formatting
option that would let me retain the date nature of the cell contents.

Signature

Del Cotter
NB Personal replies to this post will send email to del@branta.demon.co.uk,
   which goes to a spam folder-- please send your email to del3 instead.

Rick Rothstein (MVP - VB) - 11 Jun 2007 19:59 GMT
> Is there a way to format an Excel date such that
>
[quoted text clipped - 3 lines]
>
>  -  the month appears as a single letter? JFMAMJJASOND

Wouldn't doing that make it harder to decipher which month or day is
represented by your date and, for some months in some years, impossible?

For example, (assuming a display format) what date will this be?

    T, J 8, 2008

Rick
Del Cotter - 11 Jun 2007 20:25 GMT
>> Is there a way to format an Excel date such that
>> the month appears as a single letter? JFMAMJJASOND
>
>Wouldn't doing that make it harder to decipher which month or day is
>represented by your date and, for some months in some years, impossible?

For the purpose I have in mind, it's not a problem, because the dates
will never occur at random, but always in context.  So Tuesday is always
distinguishable by being a T flanked by an M and a W, while Thursday is
always a T flanked by a W and an F.

Similarly January is that J that is followed by an F, June is the J
followed by a J, and July is the J that is followed by an A.

I can do it with text functions okay, but I had hoped for a date format.
I suspect the ambiguity you describe is the exact reason the Excel
programmers did not make it available as an option.

Signature

Del Cotter
NB Personal replies to this post will send email to del@branta.demon.co.uk,
   which goes to a spam folder-- please send your email to del3 instead.

Del Cotter - 23 Aug 2008 16:09 GMT
On Mon, 11 Jun 2007, in microsoft.public.excel.worksheet.functions,
I said:

>"Rick Rothstein (MVP - VB)" said:
>>> Is there a way to format an Excel date such that
[quoted text clipped - 7 lines]
>always distinguishable by being a T flanked by an M and a W, while
>Thursday is always a T flanked by a W and an F.

Updating long after my original query to say that sometimes the Excel
experts get it wrong: there is indeed a date option that displays the
month as a single letter, even though that risks ambiguity.  It's right
there in the "Date" number formats, at least in Excel 97. The format
"mmmmm" will display January (or June, or July) as "J", and so on.

Sadly, there isn't an equivalent for days of the week. "ddddd" just
defaults to "dddd" and spells out the whole day.

Signature

Del Cotter
NB Personal replies to this post will send email to del@branta.demon.co.uk,
   which goes to a spam folder-- please send your email to del3 instead.

Shane Devenshire - 24 Aug 2008 06:07 GMT
Hi,

=LEFT(TEXT(A1,"DDD"))

If you have a date in cell A1 then this formula will return a single letter
abbreviation of the day of the week.   Of course the problem here is that
you must put the formula in another cell.

Cheers,
Shane Devenshire

> On Mon, 11 Jun 2007, in microsoft.public.excel.worksheet.functions,
> I said:
[quoted text clipped - 19 lines]
> Sadly, there isn't an equivalent for days of the week. "ddddd" just
> defaults to "dddd" and spells out the whole day.
Del Cotter - 24 Aug 2008 21:32 GMT
>=LEFT(TEXT(A1,"DDD"))
>
>If you have a date in cell A1 then this formula will return a single
>letter abbreviation of the day of the week.   Of course the problem
>here is that you must put the formula in another cell.

Shane, I'm familiar with text formulae. The original query was about not
using them.

Signature

Del Cotter
NB Personal replies to this post will send email to del@branta.demon.co.uk,
   which goes to a spam folder-- please send your email to del3 instead.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.