Allocation Formula

ExcelAl1

New Member
Joined
Jul 28, 2021
Messages
5
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi, I was wondering if there was a formula to automatically allocate cost. I have included a picture of what I am trying to do. The columns in "BLUE" have the department cost for bonuses being alloted for employees. Each department has a department code. Each department has to pay a portion of the bonuses so what I want to do is to see if there is a formula that would automatically evaluate all the employee bonus payouts in "GREEN" and assign the department code in the first column of the green columns so they would add up to the amount allocated to each department in the blue columns. Thank You
 

Attachments

  • AWQ.jpg
    AWQ.jpg
    108.3 KB · Views: 12

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
test20230822.xlsm
ABCD
1deptallocated
214810.7110.000.71
316737.3037.50-0.20
411344.0544.000.05
514162.3162.50-0.19
6569173.52173.500.02
7156244.86245.00-0.14
8287281.76281.500.26
csvtest
Cell Formulas
RangeFormula
D2:D8D2=B2-C2


try this (see formula in column C

test20230822.xlsm
GHI
1DeptEmpBonus
2569Employee A86.75
3287Employee B70.38
4569Employee C86.75
5113Employee D44.00
6141Employee E62.50
7156Employee F245.00
8287Employee G70.38
9287Employee H70.38
10287Employee H70.38
csvtest
Cell Formulas
RangeFormula
I2:I10I2=VLOOKUP(G2,$A$2:$C$8,3,FALSE)/COUNTIF($G$2:$G$99,G2)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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