Calculating Percentage

Fyrdawg

Board Regular
Joined
Aug 29, 2013
Messages
51
Office Version
  1. 365
Platform
  1. Windows
Hi.. I am trying to correct my formula to calculate the 90% of K3:K281, if D3:D281 equals, 1,3,4,and 5. I am using the formula below to get the 90% for each number individually, but can't get it to work for all 4 numbers combined.

My formula is: =PERCENTILE((IF(D3:D281="1",K3:K281)),0.9)

Any help is always greatly appreciated.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
These are array formulas that must be entered with CTRL-SHIFT-ENTER.

If your range D3:D281 is numeric then:
=PERCENTILE(IF(D3:D281={1,3,4,5},K3:K281),0.9)

If the range D3:D281 is text then:
=PERCENTILE(IF(D3:D281+0={1,3,4,5},K3:K281),0.9)
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,617
Latest member
Narendra Babu D

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