circular reference - query

fayez_MrExcel

Active Member
Joined
Oct 29, 2005
Messages
444
Office Version
  1. 365
Platform
  1. Windows
In formula cell D2, I want to get the actual % of (35000 / 109221.12) which is 32.05% , but since the Basic is referenced to C2,D2,E2, i am having circullar reference. Appreciate if someone help me correct the formula in D2.

A​
B​
C​
D​
E​
F​
1​
EmployeeTotalHousingOtherTransBasic
2​
Emp 1
170,462.32
35,000.00
14,624.37 (expected result)
10,922.12
109,221.23

My Formula
  • Cell B4: IS FIXED AMOUNT
  • Formula C2: =IF($B$2<=215988,35000,IF($B$2>=243000,MAX(($B$2-18000)/(1+25%+10%)*25%,($B$2/(1+SUM(10%,25%,13.33%)))*25%),($B$2/(1+SUM(10%,25%,13.33%)))*25%))
  • Formula D2: =($B$2/(1+SUM(10%,(Housing/Basic),13.33%)))*13.33%
  • Formula E2: =IF(((B2-SUM(C2,D2))/(1+10%)*10%)>18000,18000,IF(((B2-SUM(C2,D2))/(1+10%)*10%)<7800,7800,((B2-SUM(C2,D2))/(1+10%)*10%)))
  • Formula F2: =B2-SUM(C2:E2)
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
In formula cell D2, I want to get the actual % of (35000 / 109221.12) which is 32.05% , but since the Basic is referenced to C2,D2,E2, i am having circullar reference. Appreciate if someone help me correct the formula in D2.

A​
B​
C​
D​
E​
F​
1​
EmployeeTotalHousingOtherTransBasic
2​
Emp 1
170,462.32
35,000.00
14,624.37 (expected result)
10,922.12
109,221.23

My Formula
  • Cell B4: IS FIXED AMOUNT
  • Formula C2: =IF($B$2<=215988,35000,IF($B$2>=243000,MAX(($B$2-18000)/(1+25%+10%)*25%,($B$2/(1+SUM(10%,25%,13.33%)))*25%),($B$2/(1+SUM(10%,25%,13.33%)))*25%))
  • Formula D2: =($B$2/(1+SUM(10%,(Housing/Basic),13.33%)))*13.33%
  • Formula E2: =IF(((B2-SUM(C2,D2))/(1+10%)*10%)>18000,18000,IF(((B2-SUM(C2,D2))/(1+10%)*10%)<7800,7800,((B2-SUM(C2,D2))/(1+10%)*10%)))
  • Formula F2: =B2-SUM(C2:E2)
Correction on the Table

ABCDEF
1EmployeeTotalHousingOtherTransBasic
2Emp 1
170,462.32
35,000.00
14,624.37 (expected result)
10,922.12
109,221.23
 
Upvote 0
I don't get a circular reference, but then again I don't get the same answers as you in columns D,E or F.
What does Housing/Basic represent - is that the same as C2/F2?

Book1
ABCDEFG
1EmployeeTotalHousingOtherTransBasic
2Emp 1170,462.3235,000.0014,624.37 (expected result)10,922.12109,221.23
3350005120.23912314.7564124,540.20<==
Sheet3
Cell Formulas
RangeFormula
C3C3=IF($B$2<=215988,35000,IF($B$2>=243000,MAX(($B$2-18000)/(1+25%+10%)*25%,($B$2/(1+SUM(10%,25%,13.33%)))*25%),($B$2/(1+SUM(10%,25%,13.33%)))*25%))
D3D3=($B$2/(1+SUM(10%,(C2/E2),13.33%)))*13.33%
E3E3=IF(((B2-SUM(C2,D2))/(1+10%)*10%)>18000,18000,IF(((B2-SUM(C2,D2))/(1+10%)*10%)<7800,7800,((B2-SUM(C2,D2))/(1+10%)*10%)))
F3F3=B2-SUM(C2:E2)
 
Upvote 0
I don't get a circular reference, but then again I don't get the same answers as you in columns D,E or F.
What does Housing/Basic represent - is that the same as C2/F2?

Book1
ABCDEFG
1EmployeeTotalHousingOtherTransBasic
2Emp 1170,462.3235,000.0014,624.37 (expected result)10,922.12109,221.23
3350005120.23912314.7564124,540.20<==
Sheet3
Cell Formulas
RangeFormula
C3C3=IF($B$2<=215988,35000,IF($B$2>=243000,MAX(($B$2-18000)/(1+25%+10%)*25%,($B$2/(1+SUM(10%,25%,13.33%)))*25%),($B$2/(1+SUM(10%,25%,13.33%)))*25%))
D3D3=($B$2/(1+SUM(10%,(C2/E2),13.33%)))*13.33%
E3E3=IF(((B2-SUM(C2,D2))/(1+10%)*10%)>18000,18000,IF(((B2-SUM(C2,D2))/(1+10%)*10%)<7800,7800,((B2-SUM(C2,D2))/(1+10%)*10%)))
F3F3=B2-SUM(C2:E2)
Hi myall_blues,
First it should be C2/F2 which represent the % of Housing against the Basic
Second maybe you are not having circular reference because your formula is in row 3. However, if you put C2/F2 directly in cell D2, then circular reference will occur
 
Upvote 0
You can't have it both ways. You'd need an alternative formula for Basic and calculate that first before the Other.
 
Upvote 0
Hi myall_blues,
First it should be C2/F2 which represent the % of Housing against the Basic
Second maybe you are not having circular reference because your formula is in row 3. However, if you put C2/F2 directly in cell D2, then circular reference will occur
Yes sorry you are correct of course. It was late...
 
Upvote 0
You should know by now:

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
You should know by now:

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
Noted this. I'm sorry for this. I'll void this in the future
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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