ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   percentile - data in 2 different ranges (https://www.excelbanter.com/excel-discussion-misc-queries/228334-percentile-data-2-different-ranges.html)

Idoia

percentile - data in 2 different ranges
 
I need to calculate a percentile, but my data is not organized as one single
array, but in 2 ranges.

I've tried things like:
=+PERCENTILE({A1:A4,D8:D11},0.9)
=+PERCENTILE({A1:A4;D8:D11},0.9)
=+PERCENTILE(A1:A4&D8:D11,0.9)
={+PERCENTILE(A1:A4&D8:D11,0.9)}

Nothing seems to work... Any ideas?

Thanks

ExcelBanter AI

Answer: percentile - data in 2 different ranges
 
To calculate a percentile for data in two different ranges, use the following formula:

Formula:

=PERCENTILE({range1;range2}, percentile

Example:

Formula:

=PERCENTILE({A1:A4;D8:D11}, 0.9

Steps:
  1. Enter the formula in the cell where you want to display the result.
  2. Replace "range1" and "range2" with the cell ranges that contain the data you want to calculate the percentile for.
  3. Replace "percentile" with the percentile value you want to calculate (e.g. 0.9 for the 90th percentile).
  4. Make sure to separate the two ranges with a semicolon (;) inside curly braces {}.
  5. Ensure that the ranges have the same number of columns to avoid errors.

Domenic[_2_]

percentile - data in 2 different ranges
 
In article ,
Idoia wrote:

I need to calculate a percentile, but my data is not organized as one single
array, but in 2 ranges.

I've tried things like:
=+PERCENTILE({A1:A4,D8:D11},0.9)
=+PERCENTILE({A1:A4;D8:D11},0.9)
=+PERCENTILE(A1:A4&D8:D11,0.9)
={+PERCENTILE(A1:A4&D8:D11,0.9)}

Nothing seems to work... Any ideas?

Thanks


Try...

=PERCENTILE((A1:A4,D8:D11),0.9)

--
Domenic
http://www.xl-central.com

Idoia

percentile - data in 2 different ranges
 
Thanks, I seem to have tried everything but the easy way...

Now a bit more difficult: what if my range is in a different sheet in the
same book? The ranges are located in a different place in each sheet, so 3D
references won't work?

Your formula now becomes
=+PERCENTILE((A1:A4,Sheet2!D8:D11),0.9)

But stops working

Thanks a lot

"Domenic" wrote:

In article ,
Idoia wrote:

I need to calculate a percentile, but my data is not organized as one single
array, but in 2 ranges.

I've tried things like:
=+PERCENTILE({A1:A4,D8:D11},0.9)
=+PERCENTILE({A1:A4;D8:D11},0.9)
=+PERCENTILE(A1:A4&D8:D11,0.9)
={+PERCENTILE(A1:A4&D8:D11,0.9)}

Nothing seems to work... Any ideas?

Thanks


Try...

=PERCENTILE((A1:A4,D8:D11),0.9)

--
Domenic
http://www.xl-central.com


David Biddulph[_2_]

percentile - data in 2 different ranges
 
Someone else can hopefully answer your question, but what I can tell you is
that you don't need the + signs. A Excel formula starts with =, not with
=+. The + is a relic from old Lotus spreadsheets.
--
David Biddulph

"Idoia" wrote in message
...
I need to calculate a percentile, but my data is not organized as one
single
array, but in 2 ranges.

I've tried things like:
=+PERCENTILE({A1:A4,D8:D11},0.9)
=+PERCENTILE({A1:A4;D8:D11},0.9)
=+PERCENTILE(A1:A4&D8:D11,0.9)
={+PERCENTILE(A1:A4&D8:D11,0.9)}

Nothing seems to work... Any ideas?

Thanks




Domenic[_2_]

percentile - data in 2 different ranges
 
In article ,
Idoia wrote:

Thanks, I seem to have tried everything but the easy way...

Now a bit more difficult: what if my range is in a different sheet in the
same book? The ranges are located in a different place in each sheet, so 3D
references won't work?

Your formula now becomes
=+PERCENTILE((A1:A4,Sheet2!D8:D11),0.9)

But stops working

Thanks a lot


If each range references a single column and the ranges are the same
size, try...

=PERCENTILE(CHOOSE({1,2},A1:A4,Sheet2!D8:D11),0.9)

--
Domenic
http://www.xl-central.com


All times are GMT +1. The time now is 03:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com