![]() |
![]() |
|
|||||||
| 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 |
|
New Member
Join Date: Mar 2002
Posts: 14
|
I want to look up a supplier code in column A
and have it return the Address in column C (which occupies 6 rows). When I use VLOOKUP it will only give the corresponding SINGLE row. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Mark,
In column A supplier code In coloumn B address of supplier code (format width for the whole address In column C enter =vlookup(d1,range,2) format width to match column B In D1 enter supplier code |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 14
|
Thanks Brian
But I really need to keep the address on seperate rows. Mark |
|
|
|
|
|
#4 | |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Quote:
How about separate columns i.e column k street Column l city Column m state etc. Then on another sheet or somehwere on the same sheet just refer to the preceding column In B1 =vlookup(a1,range,2) In c1 = vlookup(b1,range,3) In d1 =vlookup(c1,range,4) enter supplier code in A1 or PM your email, I'll send a sample spreadsheet [ This Message was edited by: Brian from Maui on 2002-04-11 02:00 ] [ This Message was edited by: Brian from Maui on 2002-04-11 02:01 ] |
|
|
|
|
|
|
#5 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
On your proposal, B1 =vlookup(a1,range,2) c1 = vlookup(b1,range,3) d1 =vlookup(c1,range,4) should be: B1 =vlookup(a1,range,2) c1 = vlookup(a1,range,3) d1 =vlookup(a1,range,4) Aladin |
||
|
|
|
|
|
#6 | |||
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Quote:
I stand corrected Must be the euphoria Can you help apple, I bit off more than I could chew? Brian |
|||
|
|
|
|
|
#7 |
|
New Member
Join Date: Mar 2002
Posts: 14
|
Thanks guys,
I'll give that a go. Mark |
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Quote:
if your lookup value is in A1 in B1 use your ordinary VLOOKUP() for the first line of the address. on the next row down use something like: =OFFSET(INDIRECT(ADDRESS(MATCH(B1,C:C),1)),1,0) copy down as needed any good? _________________ Share the wealth!! Ian Mac [ This Message was edited by: Ian Mac on 2002-04-11 03:01 ] |
|
|
|
|
|
|
#9 |
|
New Member
Join Date: Mar 2002
Posts: 14
|
Thanks Ian
I've never used any of those functions before. Here goes the F1 key to find out how they work. regards Mark |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|