Percentile with two columns

Charlotte231

New Member
Joined
May 19, 2017
Messages
2
Hello, I am looking for a formula that gives me a threshold/score value from column A up to which the revenue in column B cumulates to 10%. The scores need to be in descending order, i.e. 10 is best and 1 worst. Plus, the data cannot/should not be sorted (otherwise one could use index & match). I have tried the percentile.inc function but that was unsuccessful. Example table attached.

The formula should give me 7, because the revenue of the best scores 9.8, 8, and 7 make up 10% of the toal revenue.

Any help is appreciated.

A Score
B Revenue
8
3
7
2
7
5
6
1
6
3
5
50
3
20
2
5
1
6
9.8
5

<tbody>
</tbody>
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi Charlotte,

If you have your data in columns A and B, use the following array formula in some other column:

=MAX(IF(MIN(IF(SUMIF($A:$A,">="&$A:$A,$B:$B)/SUM($B:$B)<0.1,1,SUMIF($A:$A,">="&$A:$A,$B:$B)/SUM($B:$B)))=SUMIF($A:$A,">="&$A:$A,$B:$B)/SUM($B:$B),$A:$A,0))

Make sure that you press Ctrl+Shift+Enter once you enter it. Let me know if it works for you.
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,792
Members
449,468
Latest member
AGreen17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top