![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: Apr 2002
Posts: 130
|
This is what I have
D1 D2 1 cat 2 dog 3 mouse 4 hello 5 table A1 - if someone types in the number 3 in A1 I want mouse to populate A2 |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
In A2
=VLOOKUP(a1,range,2) |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Apr 2002
Posts: 130
|
Thank you very much
|
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2002
Posts: 5
|
don't forget to put false in the end in your formula, otherwise you will get problems with sorting
|
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
=INDEX(D2:D6,A1) ...where D2:D6 contains {"cat";"dog";"mouse";"hello";"table"}. [ This Message was edited by: Mark W. on 2002-05-09 14:33 ] |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|