compare value then print out a name

membio

New Member
Joined
Apr 18, 2011
Messages
5
hi,

i have a database that looks like this:
a1 b1 c1 d1 e1
234 john 1981 portugal yes
456 mary 1984 portugal no
643 gary 1946 england yes
387 larry 1978 brazil no
267 sarah 1979 india yes


i want to be able to when i enter the number 234 in a sheet it prints on another column the correspondent country, in this case "portugal".
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
http://www.mediafire.com/?6c6cqwhjud0r404 (1)

http://www.mediafire.com/?oi6kk1ukd8nk687 (2)

i don't think Vlookup can work, or i am confused....
here on the links, you can see what i want:

on (2) i have the database.
on (1) if i entered for example the 844 value (on top) it would search in (2) for the 844 value, fetch the correspondent country and automatically print it on (1)...

i don't know if i'm being clear, lol :P
 
Upvote 0
Example

Excel Workbook
ABCDEFGH
1234john1981portugalyes456portugal
2456mary1984portugalno
3643gary1946englandyes
4387larry1978brazilno
5267sarah1979indiayes
Sheet2
 
Upvote 0

Forum statistics

Threads
1,224,561
Messages
6,179,521
Members
452,923
Latest member
JackiG

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