MATCH and OFFSET.. , or INDEX

HusseinGillani

New Member
Joined
Feb 16, 2015
Messages
25
Hi, appreciate your help in advance.

Countries Resort Income Rank

Haiti $....... 4
Aruba .... 1
Cuba 2
Puerto Rico 3

Country
1.
2.
3.
4


My spreadsheet is much larger and the columns are not right next to each other. I was wonder how I could display country names resorted by rank using either MATCH and OFFSET or INDEX. This is for a basic excel class, so simpler solution would be appreciated.

Thanks so much :)
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I would use index and match;

*AB
1Haiti4
2Aruba1
3Cuba2
4Puerto Rico3
5
6RankCountry
71Aruba
82Cuba
93Puerto Rico
104Haiti

<tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B7=INDEX($A$1:$A$4,MATCH(A7,$B$1:$B$4,0))
B8=INDEX($A$1:$A$4,MATCH(A8,$B$1:$B$4,0))
B9=INDEX($A$1:$A$4,MATCH(A9,$B$1:$B$4,0))
B10=INDEX($A$1:$A$4,MATCH(A10,$B$1:$B$4,0))

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >>
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,276
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top