Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2017, 10:26 AM
jcgwilym jcgwilym is offline Enter a city based on a short list of zip codes Windows 10 Enter a city based on a short list of zip codes Office 2016
Novice
Enter a city based on a short list of zip codes
 
Join Date: Apr 2017
Posts: 1
jcgwilym is on a distinguished road
Default Enter a city based on a short list of zip codes


I have a small table of zip codes and cities. I'd like a long membership list to pick up the city name based on the zip code. Is this a VLOOKUP, or is there something else more appropriate? Thanks.
Reply With Quote
  #2  
Old 04-19-2017, 10:53 AM
NBVC's Avatar
NBVC NBVC is offline Enter a city based on a short list of zip codes Windows 7 64bit Enter a city based on a short list of zip codes Office 2007
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

Depending on the order of the columns in your table you can use VLOOKUP or INDEX/MATCH.

The Index/Match will work no matter the order, so safer to use that.

e.g.

=INDEX($B$2:$B$100,MATCH(X2,$A$2:$A$100,0))


where A2:A100 contain the Zip codes and column B has the Cities, X1 contains the Zip code to look up.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter a city based on a short list of zip codes alt+enter issue , short cut not working mruk6823 Excel 1 04-11-2017 09:25 PM
Enter a city based on a short list of zip codes Move Data from Master List to Sheets with City Name meggenm Excel 3 01-28-2016 10:18 AM
Enter a city based on a short list of zip codes enter a constant based on entered number So New2 This Word VBA 1 10-17-2014 05:29 AM
Programming based on an enter key event edayers315 Word VBA 0 06-11-2010 09:57 AM
Is there a way to do this? (automatically enter text based on form data) TIKKI555 Word 0 05-26-2010 09:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:39 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft