Calendar across Merged cells

jltjr75

New Member
Joined
Oct 15, 2013
Messages
25
Office Version
  1. 2021
Platform
  1. Windows
I am working on a monthly menu planner. The dates are merged between three rows in order to allow breakfast, lunch, and dinner meal items each day. The merged cells are causing the calendar to go from Jul 29, Aug 1, Aug 4, Aug 7 (so on, skipping every three days because of the merged cells).

You can view a screenshot here:
https://drive.google.com/file/d/1a6tOyissUKRHEc6zcILxf8WuWIanRuE_/view?usp=sharing


You can view the excel sheet here:

https://drive.google.com/file/d/1whCZorFmQb-dHhWLcOMNaYbai4dZZSvS/view?usp=sharing

I am using the below code and have tweaked it to no avail.

Code:
=$H$2-WEEKDAY($H$2,$D$2)+(ROW(B7:D7)-ROW($B$7:$D$7))/6*7+(COLUMN(B7:D7)-COLUMN($B$7:$D$7)+1)
=$H$2-WEEKDAY($H$2,$D$2)+(ROW(E7:G7)-ROW($B$7:$D$7))/6*7+(COLUMN(E7:G7)-COLUMN($B$7:$D$7)+1)
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
If you can get the right date into cell B7 to start with, then just put =B7+1 into E7,=E7+1 into H7 etc.
 
Upvote 0
Solution
Thank you for your support jmacleary. It always seems to be the simple solution. I don't know why I made it so hard. I guess having it formatted as a date is why excel automatically converts the +1 properly to move on to the next month. I was thinking the +1 would keep counting 30, 31, 32, 33, and so on.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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