Solved

# Excel Ranking within a group

Posted on 2013-01-11
316 Views
Last Modified: 2013-01-11
Working on excel :

Segment     Gp               Result
2                 Asia                   2
5                 Asia                   2
3                 Asia                   2
6                Regional            1
1                Regional            1

Third result column is based on the result of first two columns:
- For same gp, detect the min value and show

How to do? thanks!
0
Question by:hkgal
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• Learn & ask questions
• 3
• 2
5 Comments

LVL 23

Expert Comment

ID: 38767476
Do you mean this?

Eg.  If your data is in A2:B6, try in C2:

=SUMPRODUCT(--(\$B\$2:\$B\$6=B2),--(A2>=\$A\$2:\$A\$6))

or

=COUNTIFS(\$B\$2:\$B\$6,B2,\$A\$2:\$A\$6,"<="&A2)

copied down.
0

Author Comment

ID: 38767557
I am using Excel 2003 that without a countifs function?

the first sentense return:
1
3
2
2
1

seems not correct...
0

Author Comment

ID: 38767585
e.g.Min for "Asia" is 2, so in column C should be all 2 for Asia
0

LVL 23

Accepted Solution

NBVC earned 500 total points
ID: 38767610
so you mean...

=MIN(IF(\$B\$2:B\$6=\$B2,A\$2:A\$6))

confirmed with CTRL+SHIFT+ENTER, not just ENTER and copied down.
0

Author Closing Comment

ID: 38767618
Thanks!
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
###### Suggested Courses
Course of the Month7 days, 20 hours left to enroll

#### 729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.