How to return an adjacent value in a specified cell based on comparison of two cells

mounstahman

New Member
Joined
Nov 13, 2016
Messages
1
Hi everyone

So basically I have a table with zip codes and which county and state they are in (table A). I've simplified the data so there is only one zip code per county per state.

I have another list of health data by county and state (table B).

So basically what I'd like to do is to have a formula in an empty cell fetch the appropriate zip code corresponding to each of the county names listed in table B, using table A as a reference for which zip refers to which county.

It seems basic enough but I've looked everywhere and can't quite find something to solve this.

Thanks in advance!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hello Mounstahman,

For this purpose you have to use vlookup or index match formula to get corresponding value.You can see this picture.And for you the formula is : =VLOOKUP([@State],Table1[[Column2]:[Zip2]],2,FALSE)

dayyj4


Thank you very much.Please let me know if you have any query.
 
Upvote 0

Forum statistics

Threads
1,213,561
Messages
6,114,317
Members
448,564
Latest member
ED38

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