sumproduct and tim

jackdiamond

Board Regular
Hi,

I currently use this formula which tells me a % of how much work someone does to the rest of his shift.
=SUMPRODUCT((\$P\$6:\$P\$24)*(\$B\$6:\$B\$24="KEVIN MENHAM"))/SUMPRODUCT((\$P\$6:\$P\$24)*(\$A\$6:\$A\$24="A"))*100

If I had hours worked in column "W", Does anyone know how I could work this into the formula so it would give the correct % for hours worked?

For background info

Column P is entry total
Column B is the names of workers
Column a is which shift they work on

i hope this is not to vague

Thanks
Stu

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

DonkeyOte

MrExcel MVP
what is the difference between P & W exactly ?

jackdiamond

Board Regular
P is the total number of entries on paperwork
W is the amount of hours worked.

What we are trying to find out is for eg

Richard did 1000 entries and worked 200 hrs
John did 500 entries but only worked 100 hrs.

So what we are trying to get at is although Richard did 1000 entries, he has worked double the time of John.

Does this make sense?

So we are trying to get a calculation for entries made against time worked so it should show that they have both still done 50% work load each?

Does this help?

DonkeyOte

MrExcel MVP
Hey Stu, not ignoring this -- trying to get my head around how you would want to report this... I guess saying they did 50% each is difficult to illustrate -- the only thing that is "even" really is the avg of entries per hour ? On that basis I guess in my own mind I'd be going down that route -- ie working out if a given staff member is working above or below the hourly average... but I guess you need to weight that for possible economies of scale in terms of time...

Could you put up a few scearios -- might help us get to grips with best approach.

Sorry I've not been more use...

DonkeyOte

MrExcel MVP
Apologies for layout but was trying to make it easier to follow... I was thinking something like this (but again may not help you so apologies if not)

This would return (when formatted as %) the % (entries/hours) above/below a given shift average for a given person in that shift (obviously would be good to set Shift & Name to be cell references so the results can be adjusted quickly for different combinations)

=(
SUMPRODUCT(--(\$A\$2:\$A\$20="A"),--(\$B\$2:\$B\$20="Mr X"),--(\$P\$2:\$P\$20))
/
SUMPRODUCT(--(\$A\$2:\$A\$20="A"),--(\$B\$2:\$B\$20="Mr X"),--(\$W\$2:\$W\$20))
)
/
(
SUMIF(\$A\$2:\$A\$20,"A",\$P\$2:\$P\$20)
/
SUMIF(\$A\$2:\$A\$20,"A",\$W\$2:\$W\$20)
)
-1

Last edited:

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,271
Messages
5,836,323
Members
430,420
Latest member
Sensen

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.

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

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