JohnnyMango
New Member
- Joined
- Jul 16, 2021
- Messages
- 2
- Office Version
- 365
- Platform
- MacOS
Hi all
This is my first post, so apologies if I do anything wrong. I'm pretty rusty with Excel, and am struggling to do even basic things, which is quite frustrating!
I've searched for an answer and this thread came close: Sum to a max value based on ranking
It gave a good answer on how to sum to a max value based on ranking. However, I would like to know if it's possible to do this, but to include a portion of the final cell value (if needed) to get to a total.
So, let's say you have 10 machines (or rows), ranked from cheapest to run to the most expensive (but the rows are not in that order), and each of them can produce 200 iPhones. However, you want 1100 iPhones, so, as in the thread linked above, the formula should display 200 for ranks 1 to 5, but then also 100 from the machine ranked 6 (and zero for machines ranked 7 to 10).
Can this be done using MIN? I can't think how to do it in a way that isn't circular, but I feel like I'm being a bit stupid.
I hope that made sense. (I'll install XL2BB before asking any further questions!)
Any help much appreciated.
Johnny
This is my first post, so apologies if I do anything wrong. I'm pretty rusty with Excel, and am struggling to do even basic things, which is quite frustrating!
I've searched for an answer and this thread came close: Sum to a max value based on ranking
It gave a good answer on how to sum to a max value based on ranking. However, I would like to know if it's possible to do this, but to include a portion of the final cell value (if needed) to get to a total.
So, let's say you have 10 machines (or rows), ranked from cheapest to run to the most expensive (but the rows are not in that order), and each of them can produce 200 iPhones. However, you want 1100 iPhones, so, as in the thread linked above, the formula should display 200 for ranks 1 to 5, but then also 100 from the machine ranked 6 (and zero for machines ranked 7 to 10).
Can this be done using MIN? I can't think how to do it in a way that isn't circular, but I feel like I'm being a bit stupid.
I hope that made sense. (I'll install XL2BB before asking any further questions!)
Any help much appreciated.
Johnny