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 how to do matching 2 criterias

Dear Sir,

I need help to match 2 column ranges, how is that possible with excel
worksheet.
I tried with INDEX and MATCH but only can do with 1 range

example:
column 1 brand of vehicles (chevrolet, toyota, renault. etc)
column 2 type of car (1000cc, 1300cc, 2000cc, etc)
then say I need to match the price of these vehicles in other worksheet that
the list is not in the same order

Best Regards,
Harutoni
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default how to do matching 2 criterias

One way ..

Assuming source data in Sheet1, cols A to E say, where col A = vehicle brand
(eg toyota), col B = engine capacities (eg 2000cc)

Then in another sheet,
with the inputs in A1: toyota, B1: 2000cc

Put in C1, then array-enter** the formula by pressing CTRL+SHIFT+ENTER
(instead of just pressing ENTER):
=INDEX(Sheet1!C$1:C$100,MATCH(1,(Sheet1!$A$1:$A$10 0=$A1)*(Sheet1!$B$1:$B$100=$B1),0))

The above will return the value from col C in Sheet1 for toyota, 2000cc.
Copy C1 across to E1 to return the corresponding values from cols D and E of
Sheet1. C1:E1 can be copied down to return accordingly for other sets of
input values in A2:B2, A3:B3, etc. Adapt the ranges to suit.

**Done correctly, Excel will wrap curly braces: { } around the formula (look
for these braces in the formula bar as a visual check after you array
-enter). If you don't see these braces, then the array-entering wasn't done
correctly.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Harutoni" wrote:
Dear Sir,

I need help to match 2 column ranges, how is that possible with excel
worksheet.
I tried with INDEX and MATCH but only can do with 1 range

example:
column 1 brand of vehicles (chevrolet, toyota, renault. etc)
column 2 type of car (1000cc, 1300cc, 2000cc, etc)
then say I need to match the price of these vehicles in other worksheet that
the list is not in the same order

Best Regards,
Harutoni

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
Data Matching Button for MS Excel 2007 or later Mr. Low Excel Worksheet Functions 0 October 21st 06 10:07 AM
E_MAIL WITH MATCHING... sal21 Excel Discussion (Misc queries) 0 October 4th 06 06:53 PM
Otto M. - Data Matching Gilly Excel Worksheet Functions 0 May 12th 06 06:29 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Count matching cells The Mage Excel Worksheet Functions 4 September 18th 05 03:36 AM


All times are GMT +1. The time now is 09:21 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"