#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default CALENDAR CREATION

I HAVE A CALENDAR SET UP BY WEEK, WITH COLUMNS FOR EACH DAY, AND THE FIRST OF
THE YEAR DATE, SUCH AS 1/1/10, IN CELL C2.
__________________________________________________ _______________
C2 1/1/10
__________________________________________________ ______________
DATE? | SUNDAY DATE? | MONDAY DATE? |WEDNESDAY etc

I WANT TO CREATE A FORMULA THAT WILL LOOK AT THE DATE IN C2, AND THEN ASSIGN
THE PROPER DATES FOR EACH COLUMN, BASED ON THE DAY OF THE WEEK. IF THE
FIRST FALLS ON A WEDNESDAY, I'D WANT 0 AS THE DATE FOR SUNDAY, MONDAY TUESDAY.

I'M WORKING IN EXCEL 2003 AT HOME, BUT WILL THEN SEND TO WORK, WHERE IT WILL
BE IN EXCEL 2007.
THANKS
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default CALENDAR CREATION

You only really need to put the year in C2, and then you could derive
all the other dates from that. I'm assuming that you would want Sunday
in column A, and that this is to appear on row 4. Put this in A4:

=IF(WEEKDAY(DATE($C2,1,1))1,"",DATE($C2,1,1))

Then put this in B4:

=IF(A4<"",A4+1,IF(WEEKDAY(DATE($C2,1,1))COLUMN(B 1),"",DATE($C2,1,1)))

This can then be copied across to F4, and then put this in G4:

=IF(F4<"",F4+1,DATE($C2,1,1))

All subsequent dates just need 1 to be added to the previous date.

Hope this helps.

Pete






On Feb 16, 4:12*am, gATOR gIRL
wrote:
I HAVE A CALENDAR SET UP BY WEEK, WITH COLUMNS FOR EACH DAY, AND THE FIRST OF
THE YEAR DATE, SUCH AS 1/1/10, IN CELL C2.
__________________________________________________ _______________
* * * C2 * * * * * * * * * * * * * * *1/1/10
__________________________________________________ ______________
DATE? * | SUNDAY * *DATE? *| *MONDAY * * *DATE? *|WEDNESDAY * *etc *

I WANT TO CREATE A FORMULA THAT WILL LOOK AT THE DATE IN C2, AND THEN ASSIGN
THE PROPER DATES FOR EACH COLUMN, BASED ON THE DAY OF THE WEEK. * IF THE
FIRST FALLS ON A WEDNESDAY, I'D WANT 0 AS THE DATE FOR SUNDAY, MONDAY TUESDAY.

I'M WORKING IN EXCEL 2003 AT HOME, BUT WILL THEN SEND TO WORK, WHERE IT WILL
BE IN EXCEL 2007.
THANKS


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
Convert date from Gregorian Calendar to Hijri Calendar H.Alkhodary Excel Discussion (Misc queries) 1 February 21st 09 10:11 AM
find free sharware to include calendar pop or use calendar in cell ednc Excel Discussion (Misc queries) 2 April 14th 08 05:05 PM
how do i export excel calendar info to outlook calendar? Maggie Excel Discussion (Misc queries) 1 December 31st 07 10:27 PM
excel calendar - list of names displayed on calendar Brian'88 Excel Worksheet Functions 3 November 17th 06 10:31 PM
import calendar items from excel into outlook calendar jsewaiseh Excel Discussion (Misc queries) 0 September 2nd 05 03:53 PM


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