Anthony's VBA Forum Index Anthony's VBA Forum
Where the knowledge is shared
Menu
 Anthony's VBA Forum IndexHome Page
 Anthony's VBA Forum IndexForum Index
FAQFAQ
MemberlistMemberlist
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesMessages
Log inLogin/Out

Quick Search

Advanced Search

Links
Consulting
Products

Who's Online
[ Administrator ]
[ Moderator ]


Finding the resp. max or min values in a list of categories

 
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA
View previous topic :: View next topic  
Author Message
ajay



Joined: 23 Aug 2008
Posts: 8

PostPosted: Sat Dec 13, 2008 11:15 am    Post subject: Finding the resp. max or min values in a list of categories Reply with quote

Here is another problem that i am facing. Any way around this one ?

If i have a list as below
Category Marks Max
a1 -------- 16
a1 -------- 75
a1 -------- 47
a1 -------- 54
b1 -------- 76
b1 -------- 38
b1 -------- 97
c1 -------- 85
c1 -------- 88
c1 -------- 64
c1 --------72
c1 --------59


from the ablove list is there a manner by which we can use a formula to find the greatest in each category without having to manually specify the range for each category which can vary. somehow the formula should itself generate the range for each category.


Is this possible. I would be grateful for any help.
Thanks and Regards,
Back to top
View user's profile Send private message
mohan.ankur
Moderator
Moderator


Joined: 02 Aug 2006
Posts: 52

PostPosted: Fri Dec 19, 2008 3:10 pm    Post subject: Reply with quote

How about a quick pivot table?
_________________
http://www.exceldepot.com
http://www.xlmacros.com
http://www.learnexcel.org
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
ajay



Joined: 23 Aug 2008
Posts: 8

PostPosted: Mon Dec 22, 2008 8:02 am    Post subject: Reply with quote

hi

I dont think i want a pivot table. i nee d a formula that will give the max against each row value. then i have to use this value in a subsequent column which uses a formula to generate say a percentile. so i do not wish to do this using a pivot table. need to use a formula to generate the max value and then use that value to generate the percentile. also the category list can have more values and the range of a given category is also variable. for eg. in the example below, there are 4 values of a1, then 3 of b1 and 5 of c1 and so there can me more for say d1, e1 f1 etc. so the formula shud be such to take care of the range as well.

If i have a list as below
Category Marks Max -- percentile
a1 -------- 16 ----75 ----
a1 -------- 75 ----75 ----
a1 -------- 47 ----75 ----
a1 -------- 54 ----75 ----
b1 -------- 76 ----97
b1 -------- 38 ----97
b1 -------- 97 ----97
c1 -------- 85 --- 88
c1 -------- 88 --- 88
c1 -------- 64 --- 88
c1 -------- 72 --- 88
c1 -------- 59 --- 88

Thanks for any help
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group