AND or NESTED IF FUNCTION

triton

New Member
Joined
Sep 18, 2007
Messages
4
I'm attempting to write a formula that looks at a specific time and gives a numeric value for each of the different time frames it may fall in between.

Time Stamp = 5:58:00

Start End Outcome looking for
7:00 AM 5:00 PM 1
5:00 PM 7:00 AM 2
7:00 AM 7:00 PM 3
7:00 PM 7:00 AM 4

Hopefully I'm some sense to this.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Those time frames overlap, so your given example 5:58:00 (that's AM right)
Is that 2 or 4 ?
 
Upvote 0
I see part of problem. Maybe a little more insight will help. I'm trying to take a specific time during the day and calculate what production shift that time applies to. So the 7a-5p is shift 1, 5p-7a is shift 2, 7a-7p is shift 3 and 7p-7a is shift 4. On top of that shifts 1 and 2 are M-Th and shifts 3 and 4 are Fri-Su. My thought was to apply a numeric value to each shift time period and then based on that value and the day of the week I could then use an IF statement to determine what shift it is. I'm having problems with applying a value to the time frames based off of a specific time. And yes 5:58:00 is AM. Hope this makes more sense
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

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