Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Dn_
 
Posts: n/a
Default Display number of day of month depending on the year

Is it possible to create a calendar-style layout, such that the number of a
day within a month (eg 1st January) appears underneath the day for which it
applies in that month (eventually producing 12 blocks for a particular year,
in which the day is displayed on the top row and the correct number appears
below each day for each week)

Example: 1st Block - January 2006 (The first of Jan06 is a Sunday)
Sunday Monday Tuesday etc
1 2 3
8 9 10

  #2   Report Post  
Posted to microsoft.public.excel.misc
RajKohli
 
Posts: n/a
Default Display number of day of month depending on the year

Ok! I got it. The formula is, at A1 type

=TEXT(A2,"dddd")

But before you continue, you need to understand some basic. Suppose! if A2
is = 1 then according to the formula it will show no. 1 as Sunday and no. 2
as Monday and so on and 1st January 2006 is also Sunday. So formula is
suitable only for the years which has 1st January as Sunday.

If you want the same formula to work for every year. Then you need to change
something in your data.

Example: 1st Block - January 2006 (The first of Jan06 is a Sunday)
Sunday Monday Tuesday etc
1 2 3
8 9 10

As per your example, you are typing numbers 1 - 2 - 3 as Days. Is in it?

You have to change them to date (e.g. 1/1/2006) but you need them to display
as number like "1".

Type 1/1/2006 in A2.

Right-click Format Cell - on the Number tab click Custom and in the "Type"
box type only "d" without quotes click Ok. Now, excel will show the complete
date as 1. Drag this cell to another once and the format will automatically
be copied.

You can use this method for any year, any month and any date. It will show
you the correct Character Day of Week.

Hope this information helps you. I will appreciate your comments on this
post. You need to do a little bit hard-work to understand this.


"Dn_" wrote:

Is it possible to create a calendar-style layout, such that the number of a
day within a month (eg 1st January) appears underneath the day for which it
applies in that month (eventually producing 12 blocks for a particular year,
in which the day is displayed on the top row and the correct number appears
below each day for each week)

Example: 1st Block - January 2006 (The first of Jan06 is a Sunday)
Sunday Monday Tuesday etc
1 2 3
8 9 10

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 get Excel to automatically calculate salaries actually received in financial year? Kei Excel Discussion (Misc queries) 0 March 3rd 06 10:26 AM
Function or formula to convert "text" month to number of month? Kevin Vaughn Excel Discussion (Misc queries) 0 February 4th 06 04:45 PM
counting the number of times something is bought during a month ldd Excel Worksheet Functions 1 November 22nd 05 07:18 PM
show month number as month name in Excel? Phil Hart Excel Discussion (Misc queries) 3 June 20th 05 06:12 PM
Copy a number from one cell to another depending on first number marcia driscoll Excel Worksheet Functions 3 May 3rd 05 08:30 PM


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