Excel Formula to Adjust Difference equally amoung rest

Jalal Kasmani

Board Regular
Joined
Feb 14, 2015
Messages
52
Office Version
  1. 365
Platform
  1. Windows
Hi Formula Champions,

Book1.xlsx
EFGHIJKLMN
122%38%20%20%
2RW Total Emp AEmp A Yes/NoEmp BEmp B Yes/NoEmp CEmp C Yes/NoEmp DEmp D Yes/NoDiff - Should net to 0
310022Yes0No22Yes22Yes-34
41000No0No22Yes22Yes-56
Sheet1
Cell Formulas
RangeFormula
L3:L4,J3:J4,H3,F3:F4F3=IF(G3="No",0,$E$3*$F$1)
H4H4=IF(I4="No",0,$E$3*H2)
N3:N4N3=(F3+H3+J3+L3)-E3



I want to adjust the difference of column N equally amoung rest Employees wherever it is yes. Please help i tried multiple things still no luck , its giving cell reference error.
 
T202203a.xlsm
DEFGHIJ
7RW Total Emp AEmp BEmp CEmp DDiff - Should net to 0
822.00%38.00%20.00%20.00%
9yesyesNoYes
1015544.4369.230.0041.330
11Difference proportionately15542.62573.625038.750
12
1c
Cell Formulas
RangeFormula
F10:I10F10=(F9="yes")*(F8*$E10+(1-SUMPRODUCT(--($F$9:$I$9="yes"),$F$8:$I$8))*$E10/COUNTIF($F$9:$I$9,"yes"))
J10:J11J10=E10-SUM(F10:I10)
F11:I11F11=(F$9="yes")*F$8/SUMPRODUCT(--($F$9:$I$9="yes"),$F$8:$I$8)*$E$11
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,215,038
Messages
6,122,798
Members
449,095
Latest member
m_smith_solihull

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