Using INDEX MATCH as VLookup - Multiple Worksheets

crayroge

New Member
Joined
Mar 17, 2020
Messages
9
Office Version
  1. 2016
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
Hi,

I am trying to use the INDEX MATCH formula to get these state codes into this field.

Sheet 1 has the address (Column A) , city (Column B), state(Column C), stateNAME (Column C), stateCode (Column D)

address city stateName stateCode
PO Box 1 Austin Texas
PO Box 2 Dallas Texas
PO Box 3 FT Worth Texas
PO Box 4 Galveston Texas
PO Box 5 Houston Texas
PO Box 6 Greenvile Texas
PO Box 7 Atlanta Georgia
PO Box 8 New OrleansLousiana
PO Box 9 New York New York

Sheet 2 has the stateName (Column A), stateCode (Column B)

stateName stateCode
Texas TX
Georgia GA
Lousiana LA
New York NY

I used this function below and its giving me the first answer for the stateCode but N/A'ing the other states....what could I be missing?

=INDEX(Sheet2!$B$2:$B$5,MATCH(Sheet1!$C$2:$C$10,Sheet2!A2:A5,0))
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
How about
=INDEX(Sheet2!$B$2:$B$5,MATCH(C2,Sheet2!A$2:A$5,0))
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,823
Messages
6,121,779
Members
449,049
Latest member
greyangel23

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