Hi all, I'm trying to figure out how to formulate cells so that when I copy paste a list of area codes, the appropriate state shows up. I.e. paste in area code 617 and MA shows up instead of 617. Any thoughts?
Hi all, I'm trying to figure out how to formulate cells so that when I copy paste a list of area codes, the appropriate state shows up. I.e. paste in area code 617 and MA shows up instead of 617. Any thoughts?
if your codes are on column A and the states in column B, use something like this...
=vlookup(A1,$B$1:$B$100,2,false)
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
I got #N/A
What did you use that gave you #N/A?
What you were given may need to be expand to cover all the range.
=vlookup(A1,$B$1:$B$100,2,false)
This will look at A1 and find a match in the second column, but if you are only referencing column B then there is no second column.
HTH
Regards, Jeff
you may need to extend the range, too. I just used down to row 100 as an example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks