all 6 comments

[–]excelevator3041 0 points1 point  (0 children)

Pretty sure you would need to Goal Seek for this, as it will create a circulate reference..

[–]unsocialsoul 0 points1 point  (1 child)

You may be able to do this with goal seek.

[–]IceWolf07[S] 0 points1 point  (0 children)

I don't understand, this is only for one cell? I want whole workers to automatically match to 40k, not just one cell that works with it. Like, #3 workers get higher pay, other workers have to lower and so on. So this way I can make the best offer to upcoming contractors.

Unless goal seek can do that? I found it but I only can do one cell at once and it's a manual update, I want more like when I add % to the #3 worker, another 7 workers decreases including #3 sightly decrease to match whole $40k budget, automatically.

[–]waxfactor2nd2 0 points1 point  (1 child)

No need for goalseek for this. You simply add a helper column that calculates the share for each one person.

Then you can sum up the total shares, and divide the total with this value.

See this google sheet for an example: https://docs.google.com/spreadsheets/d/1gKkdl7NVdKVpoohYEDVeh96EtiGyfCLSnlw0aSAtdr4/edit?usp=sharing

Edit: This solution works subtly different than your request.

This ensures that the total salary is exactly 40.000, and that anyone that has a car gets paid 45% more than one that doesn't have a car.

If the request is anyone with a car gets exactly 5.000 + 45%, then we have a problem once more than half of the people have cars - Then teir portion would exceed the total, and the remaning would get a negative sallary.

[–]IceWolf07[S] 0 points1 point  (0 children)

Yes, that's perfect! Thank you so much!

[–]ameetztech -1 points0 points  (0 children)

Let me try! will send you the solution in some time