Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
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?

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

1 answer

+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.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »