SUMPRODUCT OR OTHER FORMULA QUESTION

graemekoz

Board Regular
Joined
Jul 7, 2004
Messages
52
Good afternoon

I'm hoping someone may be able to help with advice if something is even possible.

I need to create a staffing roster in excel which changes the rates based on specific days of the week, times and the position.

I've created a table (part of this below) which shows the various positions and they are broken down by day of the week (1 - 7 and then 8 is a public holiday).

In the roster itself each position has a category (event Staff, event supervisor etc). The Day of the week is also calculated by a function.

I'm trying to work out a formula which basically does the following:

  1. What is the position (eg event staff, supervisor). THere are about 7 different positions
  2. Once it knows the position, it looks at the day of the week.
  3. Once it has the position and the day of the week, in the RATE cell it inputs the rate which satisfies both conditions.
Am i asking too much for Excel to do this or is there a specific function which can achieve this. I tried Sumproduct but i can't seem to get it to work and give me the correct rate as it isn't finding values as such within those two columns. I've also thought about VLOOKUP but trying to work out how to get it to satisfy both requirements before giving a value.

Can anyone help?


DAYAMPM
Event StaffAdmin, Events & Comms
1​
$1.00​
$2.00​
Event StaffAdmin, Events & Comms
2​
$1.00​
$2.00​
Event StaffAdmin, Events & Comms
3​
$1.00​
$2.00​
Event StaffAdmin, Events & Comms
4​
$1.00​
$2.00​
Event StaffAdmin, Events & Comms
5​
$1.00​
$2.00​
Event StaffAdmin, Events & Comms
6​
$3.00​
$6.00​
Event StaffAdmin, Events & Comms
7​
$5.00​
$10.00​
Event StaffAdmin, Events & Comms
8​
$6.00​
$12.00​
Event SupervisorSupervisor Events/Comms
1​
$4.00​
$8.00​
Event SupervisorSupervisor Events/Comms
2​
$4.00​
$8.00​
Event SupervisorSupervisor Events/Comms
3​
$4.00​
$8.00​
Event SupervisorSupervisor Events/Comms
4​
$4.00​
$8.00​
Event SupervisorSupervisor Events/Comms
5​
$4.00​
$8.00​
Event SupervisorSupervisor Events/Comms
6​
$6.00​
$12.00​
Event SupervisorSupervisor Events/Comms7$8.00$16.00
Event SupervisorSupervisor Events/Comms8$10.00$20.00
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
If you can update your profile to show what version of excel you are using, we will be better able to work out what formula options you have available to you.

Nothing you have said so far is particularly difficult. Without getting into the complexities of AM & PM, here is an example of how it could work, using just the SumIfs formula.

20210401 Multi Dimensional Simple Lookup.xlsx
ABCDEFGHIJK
1Lookup TableRESULTS of Lookup
2CriteriaResults
3
4PositionDeptDay of weekAMPMPositionDay of weekAMPM
5Event StaffAdmin, Events & Comms1$ 1.00$ 2.00Event Staff7$ 5.00$ 10.00
6Event StaffAdmin, Events & Comms2$ 1.00$ 2.00
7Event StaffAdmin, Events & Comms3$ 1.00$ 2.00
8Event StaffAdmin, Events & Comms4$ 1.00$ 2.00
9Event StaffAdmin, Events & Comms5$ 1.00$ 2.00
10Event StaffAdmin, Events & Comms6$ 3.00$ 6.00
11Event StaffAdmin, Events & Comms7$ 5.00$ 10.00
12Event StaffAdmin, Events & Comms8$ 6.00$ 12.00
13Event SupervisorSupervisor Events/Comms1$ 4.00$ 8.00
14Event SupervisorSupervisor Events/Comms2$ 4.00$ 8.00
15Event SupervisorSupervisor Events/Comms3$ 4.00$ 8.00
16Event SupervisorSupervisor Events/Comms4$ 4.00$ 8.00
17Event SupervisorSupervisor Events/Comms5$ 4.00$ 8.00
18Event SupervisorSupervisor Events/Comms6$ 6.00$ 12.00
19Event SupervisorSupervisor Events/Comms7$ 8.00$ 16.00
20Event SupervisorSupervisor Events/Comms8$ 10.00$ 20.00
21
Data
Cell Formulas
RangeFormula
J5J5=SUMIFS($D$5:$D$20,$A$5:$A$20,$H5,$C$5:$C$20,$I5)
K5K5=SUMIFS($E$5:$E$20,$A$5:$A$20,$H5,$C$5:$C$20,$I5)
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,331
Members
449,077
Latest member
jmsotelo

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