DivineCupcakes777
New Member
- Joined
- Jul 5, 2016
- Messages
- 4
I work in Advertising Sales and when I send clients their daily logs in excel, some need to have day parts added to the corresponding time slots. An example of this is:
Date Scheduled Time Aired Program Name
7/4/2016 6:48:08 AM Early Morning
7/4/2016 6:50:08 AM Early Morning
7/4/2016 6:53:24 AM Early Morning
7/4/2016 6:55:14 AM Early Morning
7/4/2016 6:58:38 AM Early Morning
7/4/2016 9:01:34 AM Daytime
7/4/2016 9:17:25 AM Daytime
7/4/2016 9:23:20 AM Daytime
Everything is generated from our reporting except the Program Name, which is the corresponding day part based on when the actual program aired. I would need a macro or a way to have the day part automatically filled out based on the time that the program aired. Here are the day part parameters:
Early Morning: 6am-8:59am
Daytime: 9am-3:59pm (Monday - Friday)
Fringe: 4pm-7:59pm (Monday-Friday)
Prime: 8pm-11:59pm
Late Prime: 12am-1:59am
Overnight: 2am-5:59am
Weekend: 9am-7:59pm (Saturday and Sunday)
Would you have any idea how to do this in Excel? Although I use it extensively, I am a novice when it comes to Excel formulas and macros. Any help would be appreciated!
Date Scheduled Time Aired Program Name
7/4/2016 6:48:08 AM Early Morning
7/4/2016 6:50:08 AM Early Morning
7/4/2016 6:53:24 AM Early Morning
7/4/2016 6:55:14 AM Early Morning
7/4/2016 6:58:38 AM Early Morning
7/4/2016 9:01:34 AM Daytime
7/4/2016 9:17:25 AM Daytime
7/4/2016 9:23:20 AM Daytime
Everything is generated from our reporting except the Program Name, which is the corresponding day part based on when the actual program aired. I would need a macro or a way to have the day part automatically filled out based on the time that the program aired. Here are the day part parameters:
Early Morning: 6am-8:59am
Daytime: 9am-3:59pm (Monday - Friday)
Fringe: 4pm-7:59pm (Monday-Friday)
Prime: 8pm-11:59pm
Late Prime: 12am-1:59am
Overnight: 2am-5:59am
Weekend: 9am-7:59pm (Saturday and Sunday)
Would you have any idea how to do this in Excel? Although I use it extensively, I am a novice when it comes to Excel formulas and macros. Any help would be appreciated!