Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default INDEX MATCH AND ??

I already figured out a problem with the folliowing function but now I have
another question:
A B C D
Code Item Size Price
SW001 Sweater Small 10
JK001 Jacket Small 30
PN001 Pants Small 25
SW001 Sweater Med 12
JK001 Jacket Med 35
PN001 Pants Med 30

Item Size Price
pants small ?

I got the formula to get the price as:
{INDEX($D$2:$D$7,MATCH(1,(A10=$B$2:$B$7)*(B10=$C$2 :$C$7),0))}

But now, what if I have the following and everytime I have different items
or sizes I need to find different prices too?
Code Item Size Price1 Price2
SW001 Sweater Small 10 5
JK001 Jacket Small 30 10
PN001 Pants Small 25 20
SW001 Sweater Med 12 30
JK001 Jacket Med 35 3
PN001 Pants Med 30 2

Item Size Price1 Price2
pants small ? ?

How would I get Price1 and Price2 with a formula without entering everytime?
Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default INDEX MATCH AND ??

Try this...

Array entered** in C10 and copied across to D10:

=INDEX(D$2:D$7,MATCH(1,($A10=$B$2:$B$7)*($B10=$C$2 :$C$7),0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"cecilluen" wrote in message
...
I already figured out a problem with the folliowing function but now I have
another question:
A B C D
Code Item Size Price
SW001 Sweater Small 10
JK001 Jacket Small 30
PN001 Pants Small 25
SW001 Sweater Med 12
JK001 Jacket Med 35
PN001 Pants Med 30

Item Size Price
pants small ?

I got the formula to get the price as:
{INDEX($D$2:$D$7,MATCH(1,(A10=$B$2:$B$7)*(B10=$C$2 :$C$7),0))}

But now, what if I have the following and everytime I have different items
or sizes I need to find different prices too?
Code Item Size Price1 Price2
SW001 Sweater Small 10 5
JK001 Jacket Small 30 10
PN001 Pants Small 25 20
SW001 Sweater Med 12 30
JK001 Jacket Med 35 3
PN001 Pants Med 30 2

Item Size Price1 Price2
pants small ? ?

How would I get Price1 and Price2 with a formula without entering
everytime?
Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default INDEX MATCH AND ??

Hi,
for the 1st price you got already the formula, for the 2nd

{INDEX($e$2:$e$7,MATCH(1,(A10=$B$2:$B$7)*(B10=$C$2 :$C$7),0))}

"cecilluen" wrote:

I already figured out a problem with the folliowing function but now I have
another question:
A B C D
Code Item Size Price
SW001 Sweater Small 10
JK001 Jacket Small 30
PN001 Pants Small 25
SW001 Sweater Med 12
JK001 Jacket Med 35
PN001 Pants Med 30

Item Size Price
pants small ?

I got the formula to get the price as:
{INDEX($D$2:$D$7,MATCH(1,(A10=$B$2:$B$7)*(B10=$C$2 :$C$7),0))}

But now, what if I have the following and everytime I have different items
or sizes I need to find different prices too?
Code Item Size Price1 Price2
SW001 Sweater Small 10 5
JK001 Jacket Small 30 10
PN001 Pants Small 25 20
SW001 Sweater Med 12 30
JK001 Jacket Med 35 3
PN001 Pants Med 30 2

Item Size Price1 Price2
pants small ? ?

How would I get Price1 and Price2 with a formula without entering everytime?
Thanks!

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
Find Exact Match using INDEX, MATCH DoubleUU Excel Worksheet Functions 3 August 15th 08 02:42 PM
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM


All times are GMT +1. The time now is 12:52 AM.

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"