Lisa Hetherington said:
I have a 365 row sheet for each day of the year....I would like Excel to add
2 blank rows below every cell that has "Sunday" in it.
dates are entered as 1/1/2007 but are displayed using a custom display of
ddddmmmmd
There's an easy way to do this without macros. If your dates in your
table of day-of-year records were in A3:A367, and rows 368 to 471 were
empty, enter 1/7/2007 8:00 in A368 and 1/7/2007 16:00 in A369. Select
A370:A471 with cell A370 the active cell, type =A368+7 and press
[Ctrl]+[Enter]. This adds entries for each Sunday in 2007 at 8:00 AM
and 4:00 PM, which are both greater than just the Sunday dates (which
are taken to be midnight) but less than the following Monday dates.
With A370:A471 still selected, press [Ctrl]+C then Edit > Paste Special
as values. Sort the table from row 3 to row 471 in ascending order,
which should sort the added Sunday 8:00 AM and 4:00 PM entries between
the preexisting Sunday and Monday entries. Then select A3:A471 and run
Edit > Replace, replacing *:* with nothing, which will clear the cells
containing the Sunday 8:00 AM and 4:00 PM entries.