Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
loscherland
 
Posts: n/a
Default 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


--
loscherland
------------------------------------------------------------------------
loscherland's Profile: http://www.excelforum.com/member.php...fo&userid=6709
View this thread: http://www.excelforum.com/showthread...hreadid=529145

  #2   Report Post  
Posted to microsoft.public.excel.misc
davesexcel
 
Posts: n/a
Default lookup if = to 2 values


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


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=529145

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Returning multiple corresponding values using lookup in a list Wk Excel Discussion (Misc queries) 2 January 25th 06 10:56 PM
How do I use Lookup to return a row of values eg. 6 cells Bemused Excel Worksheet Functions 1 January 16th 06 07:25 PM
Sum values in multiple sheets using Lookup to find a text match CheriT63 Excel Worksheet Functions 7 December 4th 05 02:33 AM
How do I lookup data with two comparison values? Tiziano Excel Worksheet Functions 9 December 3rd 05 05:15 AM
vlookup using two lookup values? tjb Excel Worksheet Functions 10 November 25th 05 05:21 AM


All times are GMT +1. The time now is 04:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"