Calculate total pay for employee who may be assigned multiple shifts/tasks in one calendar day (data in 2 different tables) - is IF my only option?

SAB114

New Member
Joined
May 15, 2020
Messages
3
Office Version
  1. 2013
Platform
  1. Windows
Hi There,

I need to calculate the total payable to each employee who may be assigned multiple shifts (tasks) on one calendar day.

EX: For 'Helen' in cell B17, I need to reference all shifts she is assigned in the above table (in the B-column) for Aug 23rd, and then sum the total owed to her, cross referencing the shift name in Column A with the amount paid for that shift in the GUIDE RUN Table (Column G).

The only way I can think is to do a whole bunch of IF calculations to add up all the shifts in each day for each guide (=(IF(B4=B17, g4,0))+(IF(B5=B17, g5,0))+(IF(B6=B17, g6,0))...)

Does anyone know a different formula or an easier way to do this?

The example is small but I have about 22 employee to build calculations for with over 15 different assignments (each person would only have 1-3 assignments per day, but they can vary each day).

Any help you can provide is greatly appreciated. Thanks!

1692021397533.png
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Try the following...

Excel Formula:
B14, confirmed with CONTROL+SHIFT+ENTER, copied across and down:

=SUM(SUMIF($F$4:$F$12,IF(INDEX($B$4:$D$12,0,MATCH(B$16,$B$3:$D$3,0))=$A17,$A$4:$A$12),$G$4:$G$12))

Hope this helps!
 
Upvote 0
Array formulas for 2013. This should work, but I haven't run 2013 in a long time.

MrExcelPlayground19.xlsx
ABCDEFG
3Role23-Aug25-Aug27-Aug
4AHelenMikeShelleyA69
5BMikeSameDianeB69
6CDianeDianeHelenC115
7DHelenHelenSamD218.5
8ESamMikeDarleneE223.5
9FAnnaAnnaHelenF218.5
10GMikeDarleneMikeG223.5
11HDianeBobAnnaH253
12IDarleneShelleyBobI258
13
14
1523-Aug25-Aug27-Aug
16Helen287.5218.5333.5
17Mike292.5292.5223.5
18Diane36811569
19Shelley025869
20Sam223.50218.5
21Anna218.5218.5253
22Bob0253258
23Darlene258223.5223.5
Sheet25
Cell Formulas
RangeFormula
B16:D23B16=SUMPRODUCT(VLOOKUP($A$4:$A$12,$F$4:$G$12,2,FALSE),--(B$4:B$12=$A16))
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,977
Members
449,095
Latest member
Mr Hughes

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