Hey friends,
Can someone help me to create a sheet where I can get the State name by entering city name.
For eg; When I put Barwon Downs(city) in column A, column B should reflect Victoria (state). Attached is the sheet with data.
Hey friends,
Can someone help me to create a sheet where I can get the State name by entering city name.
For eg; When I put Barwon Downs(city) in column A, column B should reflect Victoria (state). Attached is the sheet with data.
With your city in A1 of another sheet, this in B1:
=VLOOKUP(A1,CityLookup!A:B,2,0)
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
Is there any solution where I do not have to run this formula everytime if want to find the state?
What do you mean? You just have to change the city in A1. If that's not what you want, then show us the expected outcome. There has to be a lookup list somewhere for Excel to refer to.
I am really sorry for the trouble but I am new to excel. Could you show me the formula in the attached sheet?
Type Barwon Downs manually into CityLookup!A1:
Excel 2016 (Windows) 32 bit
A B 1Barwon Downs Victoria
Sheet: CityLookup
Copy and paste this into B1:
=VLOOKUP(A1,Sheet3!A:B,2,0)
and hit ENTER.
Thank you very much...You are a life saver...
Glad to have helped!
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
In another way.
In sheet "CityLookup" in "A2" using datavalidation.
In"B2"Formula:
=IFERROR(INDEX(Sheet3!$B$2:$B$134,MATCH(CityLookup!$A$2,Sheet3!$A$2:$A$134,0)),"Not In List")
See attach file.
atul
If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.
Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks