Hi there. i am looking for a formula to allocate a percentage out of 100%, to a range of values.
I am evaluating 6 options (Column A) and they have different costs (Column B). I wish to write a formula in Column C that displays the cost as a %, where 0% is the least cost and 100% is the most cost. I do not wish to distribute the 100% evenly over the options, by just adding 16% to each new row. I need to distribute proportionally based on where they sit in the range.
So for example, Option Two is only $47 so should be close to Option One (0%).
Option Five is $145, so should be almost 100%, (as is close to Option Six (100%)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Option[/TD]
[TD]Cost $[/TD]
[TD]% out of 100%[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]One[/TD]
[TD]45[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Two[/TD]
[TD]47[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Three[/TD]
[TD]60[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Four[/TD]
[TD]65[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Five[/TD]
[TD]145[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Six[/TD]
[TD]150[/TD]
[TD]100%[/TD]
[/TR]
</tbody>[/TABLE]
Thank you very much in advance for your time and help!
I am evaluating 6 options (Column A) and they have different costs (Column B). I wish to write a formula in Column C that displays the cost as a %, where 0% is the least cost and 100% is the most cost. I do not wish to distribute the 100% evenly over the options, by just adding 16% to each new row. I need to distribute proportionally based on where they sit in the range.
So for example, Option Two is only $47 so should be close to Option One (0%).
Option Five is $145, so should be almost 100%, (as is close to Option Six (100%)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Option[/TD]
[TD]Cost $[/TD]
[TD]% out of 100%[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]One[/TD]
[TD]45[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Two[/TD]
[TD]47[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Three[/TD]
[TD]60[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Four[/TD]
[TD]65[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Five[/TD]
[TD]145[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Six[/TD]
[TD]150[/TD]
[TD]100%[/TD]
[/TR]
</tbody>[/TABLE]
Thank you very much in advance for your time and help!