Excel 2010 help.

Wickham

New Member
Joined
Jul 13, 2012
Messages
3
Hello,
I want to create a function where if I enter a value (text) in a cell then another value is taken from a two column list and entered in a different cell e.g. I enter "John" in cell A1 and "A" is taken from a table and entered in cell C1. I think it could be a VLOOKUP or IF function but I can't seem to get it right. Hope I've explained this clearly, thanks for any help.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Create a table with names and values and name it lets say "names"

The formula in C1 is

=VLOOKUP(A1,names,2,FALSE)

Hope it helps

JohnA
MikeM
SueS

<tbody>
</tbody>

Hope it helps
 
Upvote 0
Thank you, that is exactly what I wanted to do.
When I entered the formula it returned a Value Error in C1 but once I typed a name from the table into A1 it entered the correct value from the table.
The main thing is that it works though, thank you.
 
Upvote 0
To avoid the error and make the sheet more appealing to the view use this formula instead

=IFERROR(VLOOKUP(A1,names,2,FALSE),"")
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,525
Members
448,969
Latest member
mirek8991

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