Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Calculating percentile on array with 65536 elements

Hi all

The Percentile worksheet function is great but unfortunately seems to
have a limit of 65536 elements; try and use it on an array with more
elements than that and it returns an error.

So, if you have a larger array does anyone have any better ideas for
calculating a specific percentile without sorting the array first?

Thanks a lot
Lloyd

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Calculating percentile on array with 65536 elements

I made a 4x20,000 array (80,000 elements) and it worked fine for me.

Hth,
Merjet


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Calculating percentile on array with 65536 elements


Unfortunately not...you cannot calculate a percentile on an array with
more than 1 dimension...

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Calculating percentile on array with 65536 elements

According to HELP 8191 elements is the max

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"pinkfloydfan" wrote in message oups.com...
|
| Unfortunately not...you cannot calculate a percentile on an array with
| more than 1 dimension...
|


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Calculating percentile on array with 65536 elements

That is very true but in actual fact the function works with upto
65536 elements (having tested it out)...just a small example of the
Help being inaccurate.

However, back to the original problem...does anybody have any ideas
how to calculate a specific percentile of a very large array without
having to sort the array first please?

Cheers
Lloyd



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Calculating percentile on array with 65536 elements

Lloyd,

You could use Percentile on a statistical sample (random selected values) of the array. Probably
not a big error in doing so, if your numbers are well behaved ;-)

Or just bite the bullet and sort.

HTH,
Bernie
MS Excel MVP


"pinkfloydfan" wrote in message
oups.com...
Hi all

The Percentile worksheet function is great but unfortunately seems to
have a limit of 65536 elements; try and use it on an array with more
elements than that and it returns an error.

So, if you have a larger array does anyone have any better ideas for
calculating a specific percentile without sorting the array first?

Thanks a lot
Lloyd



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Calculating percentile on array with 65536 elements

Good idea Bernie, thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
using percentile in an array formula Bruce Excel Worksheet Functions 1 November 24th 09 12:17 PM
Use formulas for array elements hmm Excel Discussion (Misc queries) 3 December 3rd 07 01:15 PM
to get its k-value from percentile and array Peter Excel Programming 2 March 22nd 07 04:02 PM
to get its k-value from percentile and array Peter Excel Worksheet Functions 3 March 22nd 07 02:46 PM
Use of Array Pivot Table for Percentile Calculation ... Elize Excel Worksheet Functions 0 September 6th 06 02:36 PM


All times are GMT +1. The time now is 08:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"