+ Reply to Thread
Results 1 to 2 of 2

vlookup help

  1. #1
    exceluserhelp
    Guest

    vlookup help

    when there is different values B1 appearing in different cells in same column
    for which we are using lookup function A1 then it picks only the first value
    from the reference sheet, is there a way to have vlookup pick the next cell
    value in column B1? =Vlookup(A1,B1,2,FALSE)
    A1 B1
    AF0040 3125 3125
    AF0040 3225 3125
    B0045 3001 3001
    B0045 3002 3001
    C0074 3702 3702
    C0074 3722 3702




  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    The only way I can see that you could do this is to set an additional column (or columns) in your table, whereby column C of your table held the data from B (the next row) if the A cells were equal,
    ie - (assuming that your table has columns A and B as shown, use column C for duplicates, (and D, E, & F etc for third, fourth and fifth occurances if required) with the formula

    for duplicates:
    in cell C1 put
    =if($A1=$A2,B2,"")

    then, if required for triplicates, in cell D
    =if($A1=$A3,B3,"")

    (formula-copy these to the end of your table-data)

    and then use the vlookup on 3, 4, 5 and 6 etc.
    =Vlookup(A1,tablename,3,FALSE)
    or as
    =Vlookup(A1,A1:C999,3,FALSE)

    Hope this helps

    Quote Originally Posted by exceluserhelp
    when there is different values B1 appearing in different cells in same column
    for which we are using lookup function A1 then it picks only the first value
    from the reference sheet, is there a way to have vlookup pick the next cell
    value in column B1? =Vlookup(A1,B1,2,FALSE)
    A1 B1
    AF0040 3125 3125
    AF0040 3225 3125
    B0045 3001 3001
    B0045 3002 3001
    C0074 3702 3702
    C0074 3722 3702

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1