Multiple if and parameters

stephsuth

New Member
Joined
Jul 15, 2016
Messages
2
Hi, I am trying to allocate labor hours per week to meal periods using the employee time clock activity.
My meal periods are:
Breakfast 6:00 AM - 12:00 PM
Lunch 12:01 PM-6:00PM
Dinner 6:01PM - 12:00 AM
Late night 12:01 AM-5:59AM

The time clock activity gives Time in and time out.
Most employees work through at least 2 meal periods.

The if(and) function I tried gave back "too many arguments".

Any solution or partial solution would be great help!

Thanks!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Sorry this is my first time posting a question but I am really glad I got a response!

These are my inputs:

Business Day Time In Time Out Regular Overtime Total Hours
Hours Rate Hours Rate
05/12/2015 9:04 AM 4:39 PM 7.58 $15.00 0 $0.00 7.58
05/14/2015 12:06 PM 4:47 PM 4.68 $15.00 0 $0.00 4.68
05/16/2015 11:38 AM 4:59 PM 5.1 $15.00 0.25 $22.50 5.35
05/14/2015 8:56 AM 11:54 AM 2.97 $15.00 0 $0.00 2.97
05/16/2015 8:48 AM 11:26 AM 2.63 $15.00 0 $0.00 2.63
05/11/2015 9:00 AM 3:00 PM 5 $15.00 0 $0.00 5
05/15/2015 8:57 AM 11:39 AM 2.7 $15.00 0 $0.00 2.7
05/15/2015 11:51 AM 3:29 PM 3.63 $15.00 0 $0.00 3.63

The hopeful output:
Labor Expense by Meal Period per week (in thousands)
5/17/2015
Breakfast
Lunch
Dinner
Late night

Does this help?
 
Upvote 0

Forum statistics

Threads
1,216,189
Messages
6,129,408
Members
449,509
Latest member
ajbooisen

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