A B
1 Add 50 <----User Editable
2 Add 70 <----User Editable
3 Sub 20 <----4% of Total in B7 (Formula)
4 SbTotal 100 <----B1+B2-B3 (Formula)
5 Add 300 <----User Editable
6 Add 100 <----User Editable
7 Total 500 <----B4+B5+B6 (Formula)
The figure calculated in B3 is calculated as set percentage of B7. Understandably this produces a circular reference whereby I imagine some horrible never ending loop would occur.
I wondered if there was a way to loop this until the Total in B7 stopped changing.
These are my thoughts in pseudo-code:
LOOP UNTIL VAR1 = VAR2
RUN FORMULA IN CELL B7
VAR1 = B7
RUN FORMULA IN CELL B4
RUN FORMULA IN CELL B7
VAR2 = B7
END LOOP
They ultimately only need to match to two decimal spaces.
Question
Axel
Hi All.
I'll try to explain this as best I can
The figure calculated in B3 is calculated as set percentage of B7. Understandably this produces a circular reference whereby I imagine some horrible never ending loop would occur.
I wondered if there was a way to loop this until the Total in B7 stopped changing.
These are my thoughts in pseudo-code:
They ultimately only need to match to two decimal spaces.
Many thanks!
Link to comment
Share on other sites
3 answers to this question
Recommended Posts