Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
dan dan is offline
external usenet poster
 
Posts: 866
Default calculate percentile for indexed numbers. Thanks

Hi, I have a large series of numbers saved in one column
[34,5,21,98,34,3,432,55,27,90,1125,......]. These data are indexed, e.g. by
[1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,......] which are in another column.

I need to calculate percentiles (25%,50% and 75%) of these numbers for
different indexes. In another word, I need to calculate percentiles for those
numbers with index of 1, 2, ... respectively, not the percentiles of all the
numbers.

Thanks a lot!





  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,203
Default calculate percentile for indexed numbers. Thanks

Assuming:
Index Percentage to use
1 25%
2 50%
3 75%
and number is in column A and index is in column B on same row, like:
A B
104 1
103.65 1
99.25 2
....

In an empty column, in same row (we'll use row 1 here for example) enter
=IF(B1=1,A1*.25,IF(B1=2,A1*.50,IF(B1=3,A1*.75,"")) )
extend that formula down the column to match entries in columns A/B.
Substitute actual colum letters for A and B in the formula.


"Dan" wrote:

Hi, I have a large series of numbers saved in one column
[34,5,21,98,34,3,432,55,27,90,1125,......]. These data are indexed, e.g. by
[1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,......] which are in another column.

I need to calculate percentiles (25%,50% and 75%) of these numbers for
different indexes. In another word, I need to calculate percentiles for those
numbers with index of 1, 2, ... respectively, not the percentiles of all the
numbers.

Thanks a lot!





  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,203
Default calculate percentile for indexed numbers. Thanks

If I've misinterpreted your problem, let me know. I'm thinking that perhaps
you want to calculate what percentage of the numbers with those indexes are
in comparison to the total number of all that are indexed?

"Dan" wrote:

Hi, I have a large series of numbers saved in one column
[34,5,21,98,34,3,432,55,27,90,1125,......]. These data are indexed, e.g. by
[1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,......] which are in another column.

I need to calculate percentiles (25%,50% and 75%) of these numbers for
different indexes. In another word, I need to calculate percentiles for those
numbers with index of 1, 2, ... respectively, not the percentiles of all the
numbers.

Thanks a lot!





  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,203
Default calculate percentile for indexed numbers. Thanks

Well, either way it goes, he has a solution! Good of you to take the time to
work up the formulas for him.

I read it one way, then the other way, then back ... and of course after I
posted, I thought "what if I'm wrong?"

"paul" wrote:

thats how i read it <G
therefore in a cell at the bottom of your range(or at the top as long as the
whole range is selected) =countif(A1:A100,C1)/count(A1:A100) format as
percentage.
The reason i have a cell reference in the formula is so yu can type in 1 or
2 or 3 and the percentage shows,or of course have three seperate formulas
for each index
--
paul

remove nospam for email addy!



"JLatham" wrote:

If I've misinterpreted your problem, let me know. I'm thinking that perhaps
you want to calculate what percentage of the numbers with those indexes are
in comparison to the total number of all that are indexed?

"Dan" wrote:

Hi, I have a large series of numbers saved in one column
[34,5,21,98,34,3,432,55,27,90,1125,......]. These data are indexed, e.g. by
[1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,......] which are in another column.

I need to calculate percentiles (25%,50% and 75%) of these numbers for
different indexes. In another word, I need to calculate percentiles for those
numbers with index of 1, 2, ... respectively, not the percentiles of all the
numbers.

Thanks a lot!







  #6   Report Post  
Posted to microsoft.public.excel.newusers
dan dan is offline
external usenet poster
 
Posts: 866
Default calculate percentile for indexed numbers. Thanks

Hi JLatham,

Thanks for your kind help. But I think I did not make my question clear.
Basically I am calculating the 25% percentiles for numbers indexed "1", "2",
"3",...., "N" respectivelly. There are a lot of numbers with a big uplimit of
index "N" so that selecting numbers of each index manually is not easy.

In another word, if N = 99, then I need to calculate 25% percentiles for
those numbers indexed 1, 2, ..., 99 respectively. That is it.

Thanks agian for your help and please let me know if I am not express myself
clearly.

- Hua


"JLatham" wrote:

Well, either way it goes, he has a solution! Good of you to take the time to
work up the formulas for him.

I read it one way, then the other way, then back ... and of course after I
posted, I thought "what if I'm wrong?"

"paul" wrote:

thats how i read it <G
therefore in a cell at the bottom of your range(or at the top as long as the
whole range is selected) =countif(A1:A100,C1)/count(A1:A100) format as
percentage.
The reason i have a cell reference in the formula is so yu can type in 1 or
2 or 3 and the percentage shows,or of course have three seperate formulas
for each index
--
paul

remove nospam for email addy!



"JLatham" wrote:

If I've misinterpreted your problem, let me know. I'm thinking that perhaps
you want to calculate what percentage of the numbers with those indexes are
in comparison to the total number of all that are indexed?

"Dan" wrote:

Hi, I have a large series of numbers saved in one column
[34,5,21,98,34,3,432,55,27,90,1125,......]. These data are indexed, e.g. by
[1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,......] which are in another column.

I need to calculate percentiles (25%,50% and 75%) of these numbers for
different indexes. In another word, I need to calculate percentiles for those
numbers with index of 1, 2, ... respectively, not the percentiles of all the
numbers.

Thanks a lot!





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
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 3 January 19th 06 09:52 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 1 January 9th 06 01:23 PM
Calculate numbers between 2 dates Rajiv@Ivey Excel Discussion (Misc queries) 0 May 17th 05 06:25 PM
Calculate Minimum numbers Pete Excel Worksheet Functions 2 May 12th 05 04:31 PM
Formula to calculate only the negative numbers Dawn Boot-Bunston Excel Worksheet Functions 5 November 24th 04 09:57 PM


All times are GMT +1. The time now is 11:11 AM.

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

About Us

"It's about Microsoft Excel"