Need Formula for Timeband Name in Answer Column as per Below Details

JeysJeys

New Member
Joined
Sep 22, 2015
Messages
7
Telecast DateTelecast DayDayStart TimeEnd TimeTime ZoneAnswer
1-Aug-19ThursdayWeekday7:00:0012:00:00MorningPrime Time
2-Aug-19FridayWeekday17:00:0021:00:00Evening
3-Aug-19SaturdayWeekend13:00:0016:00:00ROS
4-Aug-19SundayWeekend18:00:0023:00:00Evening
5-Aug-19MondayWeekday8:00:0011:00:00Morning
6-Aug-19TuesdayWeekend18:00:0021:00:00Evening
Weekday0700 AM -1300 PMPrime Time
1700 PM - 2100 PMPrime Time
Rest TimebandNON Prime Time
WeekendAll TimebandNon Prime Time

<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

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
Hey just a couple of questions,
what answer do you expect to see when the start time is within prime hours but the end time isn't? and vice versa when the start time is not in prime time but the end time is? (for weekdays)


Try this in G2: Assuming data is in columns A through F with header row in row 1.
Code:
IF(AND(AND(C2="Weekday",OR(AND(D2>=7/24,D2<=13/24),AND(D2>=17/24,D2<=21/24))),OR(AND(E2<=13/24,E2>=7/24),AND(E2<=21/24,E2>=17/24))),"Prime Time","Non Prime Time")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,286
Members
449,076
Latest member
kenyanscott

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