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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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