+ Reply to Thread
Results 1 to 3 of 3

VLOOKUP - Double criteria

Hybrid View

  1. #1
    Rashid
    Guest

    VLOOKUP - Double criteria

    Hi to All,

    Hi,

    I want to do a double vlookup, where I want to bring back
    cost_of_sales to sheet 1, if the location and item# from sheet 2
    matches with the location and item# from sheet1.

    The layout is as follows:

    sheet 1
    location item_# average_inventory

    Sheet 2
    location item_# cost_of_sales

    Can any one help - please.....

    Thanks,

    Rashid

  2. #2
    Dave Peterson
    Guest

    Re: VLOOKUP - Double criteria

    One way:

    =INDEX(Sheet2!C1:C100,MATCH(1,(Sheet2!A1:A100=A1)*(Sheet2!B1:B100=B1),0))
    This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
    correctly, excel will wrap curly brackets {} around your formula. (don't type
    them yourself.)

    Adjust the range (I used 100 rows) to match your data--but don't use the whole
    column.

    Rashid wrote:
    >
    > Hi to All,
    >
    > Hi,
    >
    > I want to do a double vlookup, where I want to bring back
    > cost_of_sales to sheet 1, if the location and item# from sheet 2
    > matches with the location and item# from sheet1.
    >
    > The layout is as follows:
    >
    > sheet 1
    > location item_# average_inventory
    >
    > Sheet 2
    > location item_# cost_of_sales
    >
    > Can any one help - please.....
    >
    > Thanks,
    >
    > Rashid


    --

    Dave Peterson

  3. #3
    Wild Jim
    Guest

    Re: VLOOKUP - Double criteria

    Assuming that the data formats are both the same in sheets one and two, the
    easiest way would be to concatenate the location and item numbers in both
    sheets then just do a single lookup.


    "Rashid" <rjameel67@hotmail.com> wrote in message
    news:455b5400.0503281419.64703fe6@posting.google.com...
    > Hi to All,
    >
    > Hi,
    >
    > I want to do a double vlookup, where I want to bring back
    > cost_of_sales to sheet 1, if the location and item# from sheet 2
    > matches with the location and item# from sheet1.
    >
    > The layout is as follows:
    >
    > sheet 1
    > location item_# average_inventory
    >
    > Sheet 2
    > location item_# cost_of_sales
    >
    > Can any one help - please.....
    >
    > Thanks,
    >
    > Rashid




+ 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