help with Date to appropriate day

Marksman62

New Member
Joined
Apr 7, 2011
Messages
2
Hi,
I am working on a spread sheet for my students that will insert the correct date (starting at the begining of the month) next to the appropriate day.
I'll explain,... The sheet is to record their work time for the month. It was built in excel 2003 and I am merely automating it to fill in the date in the cell next to the corresponding day. The days are listed in cell a8 starting with Monday. Cell a9 to cell a13 are the other days of the week, without Sunday. There are five weeks listed on the sheet. I have an entry point of the begining of the month on the top of the page with the month and year listed and formatted to show just that, in that cell (i2). When the student fills in the month and year I would like for the sheet to autocomplete the date next to the appropriate day leaving blank the days on the first week that were from the last month. (example; April 1st was a Friday, I want it to scan down to friday and insert 4/1 in the cell next to it (a12), then to begin counting from there to fill in the other dates. That part seems rather easy. It is just that first week that is a pain.
Should I use a macro or can I use a formula like "If" ?
Any help would be appreciated thank you.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Does it work for May 2011 (day 1 falls on a Sunday)?

Using a couple more helper cells at the top could mean a reasonably simple formula could be used all the way down. Formula in B8 is copied down the column. Partial screen shots shown for April & May. (My date format is d/mm/yyyy)

Excel Workbook
ABIJKL
1MonthYearDay 1 (Date)Day 1 (Text)
2April20111/04/2011Friday
3
4
5
6
7
8Monday 
9Tuesday
10Wednesday
11Thursday
12Friday1/04/2011
13Saturday2/04/2011
14Monday4/04/2011
15Tuesday5/04/2011
16Wednesday6/04/2011
17Thursday7/04/2011
18Friday8/04/2011
19Saturday9/04/2011
20Monday11/04/2011
21Tuesday12/04/2011
22Wednesday13/04/2011
Dates



Excel Workbook
ABIJKL
1MonthYearDay 1 (Date)Day 1 (Text)
2May20112/05/2011Monday
3
4
5
6
7
8Monday2/05/2011
9Tuesday3/05/2011
10Wednesday4/05/2011
11Thursday5/05/2011
12Friday6/05/2011
13Saturday7/05/2011
14Monday9/05/2011
15Tuesday10/05/2011
16Wednesday11/05/2011
17Thursday12/05/2011
18Friday13/05/2011
19Saturday14/05/2011
20Monday16/05/2011
21Tuesday17/05/2011
22Wednesday18/05/2011
Dates
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,756
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top