Assign to higher budget manager

tigerzen

Board Regular
Joined
Mar 8, 2023
Messages
165
Office Version
  1. 365
Platform
  1. Windows
Have an interesting situation where if 2 or more workers are scheduled, then the manager with the higher budget covers the cost. Rows 8 to 12 show the desired solution in columns B & C. Column G shows the order of budget size with 1 being the biggest budget, hence when 2 or more workers are scheduled the manager with the highest budget will incur the cost. Am looking for the easiest way to solve this whether it's Power Query, formulae or VBA (providing it's not too complex).
Lookups Match.xlsx
ABCDEFG
1
2DescriptorPersonnel ManagerBudget
3Sam worked 5 hours SamTim2
4Mary 6 hours Tom 2 hoursMaryJack1
5Peter all dayPeterKen3
6TomFred4
7
8DescriptorWorkedManager chargedPersonnel Manager
9Sam worked 5 hours SamTimSamTim
10Mary 6 hours Tom 2 hoursMary, TomJackMaryJack
11Peter all day Sam 3 hoursPeterTimPeterKen
12TomFred
13
14
Sheet12
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,215,119
Messages
6,123,172
Members
449,094
Latest member
bes000

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