### Communities

tag:snake search within a tag
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
created:<1w created < 1 week ago
post_type:xxxx type of post
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

# Iterative references in LibreOffice Calc

+1
−0

An as yet unanswered Q from Stack Overflow [SO] enquired:

how to stop looping this formula

where the formulae were:

in B9 =16,50

in B10 =B9-B11

in B11 =B10/2

without changing text in cell.

(The above after changing * to / based on a comment. It can also be deduced from that comment that 16,5 is a value ("sixteen and a half") and that the formulae should return 11 in B10 and 5,5 or 5.5 in B11.)

The effect is to split the B9 value into 2/3rds (B10) and1/3rd (B11) but this was an academic exercise with the artificial constraint that:

My lecturer want to 3 option... He didn't let me to change formulas in cell, he want explanation error and "magic solve".

So, how to achieve the desired split without changing the formulae?

Why does this post require moderator attention?
Why should this post be closed?

+1
−0

Since the formulae have circular references (Err:522) the spreadsheet setting needs to be changed to enable iteration (Tools > Options… > LibreOffice Calc > Calculation, tick Iterations and choose a sensible combination of Steps: and Minimum change:, OK). For current purposes I suggest 100 for Steps; and 0.01 for Minimum change:.

The iteration is the looping required and Steps: and Minimum change: limit the number of iterations.

The user's difficulty might have been because of the formula error (multiply should have been divide) since, as mentioned by SO user @tohuwawohu:

it won't work for factors >=1 multiplied with B10. I can't tell why

I don't know why either, but do remember a bug.

Why does this post require moderator attention?