Payout based on hours rate and designation

GoJakie

Board Regular
Joined
Dec 1, 2007
Messages
176
Dear Friends,
There are two criteria where I am unable to write a formula and need help. I want to update the Payout column with a formula based on number of hours worked by the employee and also based on their role/designation. Please help !

******** language="JavaScript" ************************************************************************>
Book1
ABCDEF
1
2HoursRate
3FromToManagerOfficer
4< 50:00:00100150
550:01:0075:00:00125180
675:01:0085:00:00150210
785:00:0095:00:00175240
8> 95:01:00200270
9
10EmployeeRoleHoursPayout
11Emp1Manager52:52:00
12Emp2Manager101:23:00
13Emp3Officer00:00
14Emp4Manager76:09:00
15Emp5Officer44:25:00
16Emp6Manager75:00:00
17Emp7Officer85:00:00
18Emp8Officer93:39:00
19Emp9Officer111:53:00
20Emp10Manager80:11:00
21
Sheet1
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I am eagerly awaiting first reply from someone. I am assuming I may have not explained my problem correctly. Please let me know if you need more info. Appreciate some
 
Upvote 0
Will this require Macro? I tried all kinds of IFs and other other formulas with no success
 
Upvote 0
Hi GoJakie,

Please see below, one propose solution.

Excel 2010
DEFGHIJK
2HoursRateHoursRate
3FromToManagerOfficerManagerOfficer
4< 50:00:0010015000:00:0000
550:01:0075:00:0012518050:00:00100150
675:01:0085:00:0015021075:00:00125180
785:01:0095:00:0017524085:00:00150210
8> 95:01:0020027095:00:00175240
9200270
10EmployeeRoleHoursPayout
11Emp1Manager52:52:00125
12Emp2Manager101:23:00200
13Emp3Officer0:00:000
14Emp4Manager76:09:00150
15Emp5Officer44:25:00150
16Emp6Manager75:00:00125
17Emp7Officer85:00:00210
18Emp8Officer93:39:00240
19Emp9Officer111:53:00270
20Emp10Manager80:11:00150
Sheet1


I am proposing to layout you criteria as yellow cells. Formula used in Payout is

=INDEX($J$4:$K$9,SMALL(IF(FREQUENCY(F11,$I$4:$I$8),ROW($I$4:$I$9)-ROW($I$4)+1),1),MATCH(E11,$J$3:$K$3,0))
copy down as required.

Note: this is an array formula so must enter with Ctrl+Shift+Enter, and not just enter.

Regards,
 
Upvote 0

Forum statistics

Threads
1,215,379
Messages
6,124,605
Members
449,174
Latest member
ExcelfromGermany

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