Looking up a reference
Looking up a reference
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 9 of 9

Thread: Looking up a reference

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    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. #2
    Board Regular Brian from Maui's Avatar
    Join Date
    Feb 2002
    Posts
    8,445
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #3
    New Member
    Join Date
    Mar 2002
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks Brian

    But I really need to keep the address on seperate rows.

    Mark

  4. #4
    Board Regular Brian from Maui's Avatar
    Join Date
    Feb 2002
    Posts
    8,445
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-11 01:38, markbanin wrote:
    Thanks Brian

    But I really need to keep the address on seperate rows.

    Mark
    Column J supplier code
    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. #5
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    81,833
    Post Thanks / Like
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)

    Default

    On 2002-04-11 01:57, Brian from Maui wrote:
    On 2002-04-11 01:38, markbanin wrote:
    Thanks Brian

    But I really need to keep the address on seperate rows.

    Mark
    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 ]
    Brian,

    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. #6
    Board Regular Brian from Maui's Avatar
    Join Date
    Feb 2002
    Posts
    8,445
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-11 02:02, Aladin Akyurek wrote:
    On 2002-04-11 01:57, Brian from Maui wrote:
    On 2002-04-11 01:38, markbanin wrote:
    Thanks Brian

    But I really need to keep the address on seperate rows.

    Mark
    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 ]
    Brian,

    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
    Aladin,

    I stand corrected
    Must be the euphoria
    Can you help apple, I bit off more than I could chew?

    Brian

  7. #7
    New Member
    Join Date
    Mar 2002
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks guys,

    I'll give that a go.

    Mark

  8. #8
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Newcastle, UK
    Posts
    1,174
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-11 01:10, markbanin wrote:
    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.
    Try this.

    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. #9
    New Member
    Join Date
    Mar 2002
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Thanks Ian

    I've never used any of those functions before. Here goes the F1 key to find out how they work.

    regards

    Mark

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com