![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Join Date: Mar 2004
Posts: 117
|
Hi just found this great web site.
I am currentley getting to grips with excel but need some help. I don't know how to do the following. I want to input the following 1 = Ben 2 = Scott 3 = Dave etc I then want on another sheet to input either 1 2 or 3 in to the spreadsheet and it to come up with the corresponding name. I have attempted using IF function but cant seem to get it to do what I want. Any help would be appreciated. Kind Regards ben |
|
|
|
|
|
#2 |
|
MrExcel MVP
Moderator Join Date: Aug 2002
Posts: 14,220
|
WELCOME TO THE BOARD!
Check out the VLOOKUP function in Excel help. Note that naming your range will make it easier to reference in the VLOOKUP formula.
__________________
TIPS FOR FINDING EXCEL SOLUTIONS 1. Use the built-in Help that comes with Excel/Access 2. Use the Search functionality on this board 3. A lot of VBA code can be acquired by using the Macro Recorder. |
|
|
|
|
|
#3 |
|
Join Date: Nov 2002
Location: Cornwall UK
Posts: 589
|
Ben
welcome to the board. Put your numbers in one column and the names next to them in another column, assuming you have used columnA and B, then one of the formulae you could use is based on the Index function, array type. Basically this looks at a range of cells and then returns the value in the specified row and column so a formula placed in E1 which reads Code:
=Index($A$1:$B$3,D1,2) HTH
__________________
Never too old to learn... |
|
|
|
|
|
#4 |
|
Join Date: Mar 2004
Posts: 117
|
Thanks Mate that works a treat.
Kind Regards Ben |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|