+ Reply to Thread
Results 1 to 2 of 2

lookup if = to 2 values

  1. #1
    Registered User
    Join Date
    03-02-2004
    Posts
    10

    lookup if = to 2 values

    What formula should i use to give me the quantity for each store depending on sale type for the following table:

    Sheet 1 (contains shop info)

    Shop Sale Type
    AAA 001
    BBB 001
    CCC 003
    DDD 001

    Sheet 2 (contains sales info for all stores)

    Shop Sale Type Quatity
    AAA 001 34
    FFF 003 12
    CCC 004 24

    I need a formula to look up both the shop & sale type to give the quantity per store per sale type. Eg. AAA 001 should return a quantity of 34 from sheet 2.

    Hope i explained that ok.

    Thanks in advance

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Lightbulb

    try this

    =INDEX(C:C,MATCH(D1&E1,$A$1:$A$5&$B$1:$B$5,0))

    This is an array formula so you must
    Ctrl,shift,enter for it to work

    for this example D1 And E1 is your criteria
    A1:A5 is shop
    B1:B5 is sale type

    column C is your qty

+ 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