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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,214,944
Messages
6,122,391
Members
449,080
Latest member
Armadillos

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