+ Reply to Thread
Results 1 to 7 of 7

array as lookup values

  1. #1
    Forum Contributor
    Join Date
    05-22-2006
    Posts
    103

    Unhappy array as lookup values

    Hi,

    im really in need to solve this problem:

    is it possible to use a range of cells as the lookup value?...

    =VLOOKUP(lookup_value,array,false)
    where:
    lookup_value = single cell, like (A1)
    array = range of cells (b1:b30)

    now i want it to do in reverse...like

    =VLOOKUP(lookup_value,array,false)
    lookup_value=RANGE OF CELLS (B1:B30)
    array = SINGLE CELL, LIKE(A1)

    =vlookup(b1:b30,a1,1,false)

    is this possible?

    note: the vlookup will not return the EXACT match on the cell but instead IT WILL RETURN ONLY THE ONES THA T MATCHED THE CONTENTS OF THE LOOKUPVALUE.

    please see attached for details.

    thanks so much
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try this formula in B2, copied down.

    Please Login or Register  to view this content.
    you can copy over to column C to get corresponding $ or you can use vlookup to lookup the item in Column B and return the cost from the other sheet.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    05-22-2006
    Posts
    103
    wow! perfect!

    thanks so much!...i've been working on this for the past few days and its only now that i was able to get the exact formula...thanks so much for this great help!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Cool

    You're welcome!

  5. #5
    Forum Contributor
    Join Date
    05-22-2006
    Posts
    103
    by the way, can you check what's wrong with this one?...because this is returning a #REF! result.

    Please Login or Register  to view this content.
    im not deleting anything on my worksheet.i just change sa cell range.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    The -1 at the end was to account for the position of your range so that it could index a row within your range.

    change that to 84 if you moved your range to B85.

    or you can write the formula like this so that if you move the range the "offset" auto-adjusts.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    05-22-2006
    Posts
    103
    hi,

    thanks so much!...it much clearer now...

    i know this is excel forum, but i still want to try to ask if i can apply this formula to access?....because i need to setup a database that works like this

    thanks so much!!!

+ 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