Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ken Ken is offline
external usenet poster
 
Posts: 590
Default Format to: S-M-T-W-T-F-S?

Excel2003

Cell A2 contains a Date ... 01/01/08

Range G4:AK4 ... contains formula which calculates Days of the month 1-31
(G4 contains ... =A2 (format "d") ... H4 contains =G4+1 (format "d") ... etc)

Range G3:AK3 ... contains formula ... G3=G4, H3=H4, I3=I4 etc

Now I wish to format Range G3:AK3 to return ... S, M, T, W, T, F, S ...
based on day of week found in Range G4:AK4.

Can I do this with "format" ... or ... do I need formula? ... Either way ...
How?

Thanks ... Kha

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 100
Default Format to: S-M-T-W-T-F-S?

The WEEKDAY formula should be what you're looking for.

"Ken" wrote:

Excel2003

Cell A2 contains a Date ... 01/01/08

Range G4:AK4 ... contains formula which calculates Days of the month 1-31
(G4 contains ... =A2 (format "d") ... H4 contains =G4+1 (format "d") ... etc)

Range G3:AK3 ... contains formula ... G3=G4, H3=H4, I3=I4 etc

Now I wish to format Range G3:AK3 to return ... S, M, T, W, T, F, S ...
based on day of week found in Range G4:AK4.

Can I do this with "format" ... or ... do I need formula? ... Either way ...
How?

Thanks ... Kha

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Format to: S-M-T-W-T-F-S?

I think you'll need a formula:

=text(g3,"ddd")
will provide the 3 character abbreviation for the day.

So
=left(text(g3,"ddd"),1)
will return the first character of the abbreviation.



Ken wrote:

Excel2003

Cell A2 contains a Date ... 01/01/08

Range G4:AK4 ... contains formula which calculates Days of the month 1-31
(G4 contains ... =A2 (format "d") ... H4 contains =G4+1 (format "d") ... etc)

Range G3:AK3 ... contains formula ... G3=G4, H3=H4, I3=I4 etc

Now I wish to format Range G3:AK3 to return ... S, M, T, W, T, F, S ...
based on day of week found in Range G4:AK4.

Can I do this with "format" ... or ... do I need formula? ... Either way ...
How?

Thanks ... Kha


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default Format to: S-M-T-W-T-F-S?

Try this in =CHOOSE(WEEKDAY(G3),"S","M","T","W","T","F","S")



On Jun 4, 12:09*am, Ken wrote:
Excel2003

Cell A2 contains a Date ... 01/01/08

Range G4:AK4 ... contains formula which calculates Days of the month 1-31
(G4 contains ... =A2 (format "d") ... H4 contains =G4+1 (format "d") .... etc)

Range G3:AK3 ... contains formula ... G3=G4, H3=H4, I3=I4 etc

Now I wish to format Range G3:AK3 to return ... S, M, T, W, T, F, S ...
based on day of week found in Range G4:AK4.

Can I do this with "format" ... or ... do I need formula? ... Either way ....
How?

Thanks ... Kha


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Format to: S-M-T-W-T-F-S?

Hi,

Put this in G3 and drag right

=LEFT(TEXT(G4,"ddd"),1)

Mike

"Ken" wrote:

Excel2003

Cell A2 contains a Date ... 01/01/08

Range G4:AK4 ... contains formula which calculates Days of the month 1-31
(G4 contains ... =A2 (format "d") ... H4 contains =G4+1 (format "d") ... etc)

Range G3:AK3 ... contains formula ... G3=G4, H3=H4, I3=I4 etc

Now I wish to format Range G3:AK3 to return ... S, M, T, W, T, F, S ...
based on day of week found in Range G4:AK4.

Can I do this with "format" ... or ... do I need formula? ... Either way ...
How?

Thanks ... Kha



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
Lock Cell Format - Allow copy and paste of data without format change Chris12InKC Excel Worksheet Functions 2 May 9th 23 07:42 PM
Adding time in 24 hour format to produce hours in decimal format Hercdriver Excel Worksheet Functions 11 December 29th 09 02:06 AM
Decide comment format 'globally'? Restore format with ws_change? tskogstrom Excel Discussion (Misc queries) 0 April 16th 07 09:07 AM
Replace million-billion number format to lakhs-crores format Sumit Excel Discussion (Misc queries) 1 December 9th 05 04:58 PM
how to format excel format to text format with separator "|" in s. azlan New Users to Excel 1 January 31st 05 12:57 PM


All times are GMT +1. The time now is 10:55 AM.

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"