Populating time blocks for classes

fil1951

New Member
Joined
Oct 13, 2023
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
Hello,

Been looking for a way to populate corresponding time blocks for classes based on time ranges in another sheet. If anyone can help with either formula or VBA to get sheet 3 to populate how I need the data it is greatly appreciated.

Sheet 1 contains blocks of times in 5 minute intervals with an associated "Period ID" and start and end times
Screenshot 2023-10-13 at 5.00.58 PM.png

Sheet 2 contains a list of classes with start and end times

Screenshot 2023-10-13 at 5.02.20 PM.png

I need sheet 3 to list all of the classes with all of the corresponding "Period IDs" that the class runs for. There will be multiple classes that run during the same period ID.

Screenshot 2023-10-13 at 5.04.35 PM.png
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
You have classes during the same time period:
Mr excel questions 67.xlsm
EFGH
1Class NbrStart TimeEnd TimeConflict.
2Math19:00 AM9:05 AMAll 5 Minutes is in Match 3
3Math39:00 AM9:30 AMFirst 5 minutes is in Math1
4English29:15 AM10:00 AMFirst 15 minutes is in Math 3
5Math210:15 AM11:00 AM
fil1951
Cell Formulas
RangeFormula
F2:F3F2=TIME(9,0,0)
G2G2=TIME(9,5,0)
G3G3=TIME(9,30,0)
F4F4=TIME(9,15,0)
G4G4=TIME(10,0,0)
F5F5=TIME(10,15,0)
G5G5=TIME(11,0,0)


Did you miss giving an additional differentiator?
 
Upvote 0

Forum statistics

Threads
1,215,140
Messages
6,123,269
Members
449,093
Latest member
Vincent Khandagale

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