#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Matching

Hello,

I have a list

A B
1 a 20
2 b 25
3 c 30
4 d 35
5 e 25

I would like to be able to have column C to list column a from largest to
smallest and column D to list the associated numbers with that. Taking into
consideration that a b and e have the same value. So what I am looking for
will look like this

C D
1 d 35
2 c 30
3 b 25
4 e 25
5 a 20

Can anyone help. I believe it will have to be an index match formula of
some sort but I am not sure how to procede.

Thanks in advance,

Eyad

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Matching

I forgot to say first by column C decending.

"emarzuq" wrote:

Hello,

I have a list

A B
1 a 20
2 b 25
3 c 30
4 d 35
5 e 25

I would like to be able to have column C to list column a from largest to
smallest and column D to list the associated numbers with that. Taking into
consideration that a b and e have the same value. So what I am looking for
will look like this

C D
1 d 35
2 c 30
3 b 25
4 e 25
5 a 20

Can anyone help. I believe it will have to be an index match formula of
some sort but I am not sure how to procede.

Thanks in advance,

Eyad

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Matching

select columns C and D
<data<sort
first by column D
second by column C

"emarzuq" wrote:

Hello,

I have a list

A B
1 a 20
2 b 25
3 c 30
4 d 35
5 e 25

I would like to be able to have column C to list column a from largest to
smallest and column D to list the associated numbers with that. Taking into
consideration that a b and e have the same value. So what I am looking for
will look like this

C D
1 d 35
2 c 30
3 b 25
4 e 25
5 a 20

Can anyone help. I believe it will have to be an index match formula of
some sort but I am not sure how to procede.

Thanks in advance,

Eyad

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default Matching

Perhaps a slightly different approach...

With A1:B5 containing this list:
a 20
b 25
c 30
d 35
e 25

Then
D1: =LARGE($B$1:$B$5,ROW())
Copy that formula down through D5

Put this ARRAY FORMULA (committed with Ctrl+shift+enter, instead of just
enter) in
C1:
=INDEX($A$1:$A$10,SMALL(IF($B$1:$B$10=$D1,ROW($B$1 :$B$10)),COUNTIF(D$1:D1,D1)))

Copy C1 and paste into C2:C5

However, if your first row contains column headings (like this)
Name Number
a 20
b 25
c 30
d 35
e 25

Then these formula adjust for data not starting at Row_1
D1: Grade
D2: =LARGE($B$2:$B$6,ROW()-ROW($D$1))
Copy down

C1: RankName
And put this ARRAY FORMULA in
C2:
=INDEX($A$2:$A$11,SMALL(IF($B$2:$B$11=$D2,ROW($B$2 :$B$11)-ROWS($B$1:$B$1)),COUNTIF(D$2:D2,D2)))

Copy C2 and paste into C3:C6

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"emarzuq" wrote:

Hello,

I have a list

A B
1 a 20
2 b 25
3 c 30
4 d 35
5 e 25

I would like to be able to have column C to list column a from largest to
smallest and column D to list the associated numbers with that. Taking into
consideration that a b and e have the same value. So what I am looking for
will look like this

C D
1 d 35
2 c 30
3 b 25
4 e 25
5 a 20

Can anyone help. I believe it will have to be an index match formula of
some sort but I am not sure how to procede.

Thanks in advance,

Eyad

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Matching

Wow, Thank You very much.. That is exactly what I am looking for..

"Ron Coderre" wrote:

Perhaps a slightly different approach...

With A1:B5 containing this list:
a 20
b 25
c 30
d 35
e 25

Then
D1: =LARGE($B$1:$B$5,ROW())
Copy that formula down through D5

Put this ARRAY FORMULA (committed with Ctrl+shift+enter, instead of just
enter) in
C1:
=INDEX($A$1:$A$10,SMALL(IF($B$1:$B$10=$D1,ROW($B$1 :$B$10)),COUNTIF(D$1:D1,D1)))

Copy C1 and paste into C2:C5

However, if your first row contains column headings (like this)
Name Number
a 20
b 25
c 30
d 35
e 25

Then these formula adjust for data not starting at Row_1
D1: Grade
D2: =LARGE($B$2:$B$6,ROW()-ROW($D$1))
Copy down

C1: RankName
And put this ARRAY FORMULA in
C2:
=INDEX($A$2:$A$11,SMALL(IF($B$2:$B$11=$D2,ROW($B$2 :$B$11)-ROWS($B$1:$B$1)),COUNTIF(D$2:D2,D2)))

Copy C2 and paste into C3:C6

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"emarzuq" wrote:

Hello,

I have a list

A B
1 a 20
2 b 25
3 c 30
4 d 35
5 e 25

I would like to be able to have column C to list column a from largest to
smallest and column D to list the associated numbers with that. Taking into
consideration that a b and e have the same value. So what I am looking for
will look like this

C D
1 d 35
2 c 30
3 b 25
4 e 25
5 a 20

Can anyone help. I believe it will have to be an index match formula of
some sort but I am not sure how to procede.

Thanks in advance,

Eyad



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default Matching

I'm so glad I could help......and thanks for the feedback.


***********
Regards,
Ron

XL2002, WinXP


"emarzuq" wrote:

Wow, Thank You very much.. That is exactly what I am looking for..

"Ron Coderre" wrote:

Perhaps a slightly different approach...

With A1:B5 containing this list:
a 20
b 25
c 30
d 35
e 25

Then
D1: =LARGE($B$1:$B$5,ROW())
Copy that formula down through D5

Put this ARRAY FORMULA (committed with Ctrl+shift+enter, instead of just
enter) in
C1:
=INDEX($A$1:$A$10,SMALL(IF($B$1:$B$10=$D1,ROW($B$1 :$B$10)),COUNTIF(D$1:D1,D1)))

Copy C1 and paste into C2:C5

However, if your first row contains column headings (like this)
Name Number
a 20
b 25
c 30
d 35
e 25

Then these formula adjust for data not starting at Row_1
D1: Grade
D2: =LARGE($B$2:$B$6,ROW()-ROW($D$1))
Copy down

C1: RankName
And put this ARRAY FORMULA in
C2:
=INDEX($A$2:$A$11,SMALL(IF($B$2:$B$11=$D2,ROW($B$2 :$B$11)-ROWS($B$1:$B$1)),COUNTIF(D$2:D2,D2)))

Copy C2 and paste into C3:C6

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"emarzuq" wrote:

Hello,

I have a list

A B
1 a 20
2 b 25
3 c 30
4 d 35
5 e 25

I would like to be able to have column C to list column a from largest to
smallest and column D to list the associated numbers with that. Taking into
consideration that a b and e have the same value. So what I am looking for
will look like this

C D
1 d 35
2 c 30
3 b 25
4 e 25
5 a 20

Can anyone help. I believe it will have to be an index match formula of
some sort but I am not sure how to procede.

Thanks in advance,

Eyad

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
matching John Excel Worksheet Functions 1 March 29th 07 12:40 PM
Need help matching... Steve Excel Worksheet Functions 0 September 8th 06 12:49 PM
Matching cj21 Excel Discussion (Misc queries) 4 January 30th 06 07:40 PM
Matching data and linking it to the matching cell yvonne a via OfficeKB.com Links and Linking in Excel 0 July 13th 05 07:30 PM
Matching Eric Excel Worksheet Functions 2 May 3rd 05 02:53 PM


All times are GMT +1. The time now is 06:35 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"