Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Henry
 
Posts: n/a
Default Displaying the Date #3

I'm trying to display the date, under the days of the week. But instead of
starting with sun and going thru sat. I'm setting the spread sheet up for a
Fri, Sat, and Sun only. Any help would be greatly appreciated!

Thanks,

Henry
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Displaying the Date #3

"Henry" wrote
I'm trying to display the date, under the days of the week.
But instead of starting with sun and going thru sat.
I'm setting the spread sheet up for a Fri, Sat, and Sun only.


One way ..

For filling across, starting with a Friday, say 3 Mar 2006:

Put in say, B2:
=DATE(2006,3,3)+COLUMNS($A:A)-1+INT((COLUMNS($A:A)-1)/3)*4
Format B2 as date to taste, then copy B2 across as far as required

B2:D2 returns 3 Mar - 5 Mar 2006 (Fri - Sun),
E2:G2 returns 10 Mar - 12 Mar 2006 (Fri - Sun)
and so on across

To fill down, starting with a Friday, say 3 Mar 2006:

Put in say, A3:
=DATE(2006,3,3)+ROWS($A$1:A1)-1+INT((ROWS($A$1:A1)-1)/3)*4
Copy A3 down as far as required

A3:A5 returns 3 Mar - 5 Mar 2006 (Fri - Sun),
A6:A8 returns 10 Mar - 12 Mar 2006 (Fri - Sun)
and so on down

The above expression is similar to that for filling across,
except that ROWS replaces COLUMNS as the incrementer

DATE(2006,3,3) = 3 Mar 2006 (a Friday)
[ DATE(year,month,day) ]

Adapt the starting date to suit ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Displaying the Date #3

Put in say, B2:
=DATE(2006,3,3)+COLUMNS($A:A)-1+INT((COLUMNS($A:A)-1)/3)*4
Format B2 as date to taste, then copy B2 across as far as required


And to label the "day" for row2 (i.e. B2 across) above in row1, say,
just place in B1: =TEXT(B2,"ddd"), and copy B1 across
This will label B1 across with: Fri, Sat, Sun, Fri, Sat, Sun, Fri, Sat, Sun

Likewise if we want to label for col A,
we could put in B3, and copy down: =TEXT(A3,"ddd")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Displaying the date Henry Excel Worksheet Functions 1 March 3rd 06 03:27 AM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
Can a date be used for conditional formatting? Stevie P Excel Worksheet Functions 2 September 27th 05 09:42 PM
Recurring annual events using a specific date as a trigger date Bamboozled Excel Worksheet Functions 1 June 6th 05 01:44 PM


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