 |
 |
 |
 |
|
|
 |
 |
Problem:
Range1 (A3:C7) contains file names with their matching types and sizes.
Range2 (A12:B16) contains a similar list of file names but with matching types only.
We want to find the appropriate file sizes from Range1 by matching each pair of file names and types from both ranges.
Solution:
Use the INDEX and MATCH functions as shown in the following formula:
{=INDEX($C$3:$C$7,MATCH(A12&B12,$A$3:$A$7&$B$3:$B$7,0))}
(To create Array formula: select the cell after typing the formula,press F2 and then press Ctrl+Shift+Enter)
Example:
Range1
File Name_______File Type_______Size (KB)
file1___________xls_____________500
file2___________doc_____________80
file3___________ppt_____________800
file4___________xls_____________400
file1___________ppt_____________1200
Range2
File Name_____________File Type_____________Size (KB) from Range1
file1_________________xls___________________500
file2_________________doc___________________80
file3_________________ppt___________________800
file4_________________xls___________________400
file1_________________ppt___________________1200
|
 |
 |
 |
|
|
| Screenshot // Retrieving an Item from a List that Meets Multiple Criteria |
  |
 |
 |
|
|
|
|
RATING:
3.47
VIEWS:
23932 |
|
|
|
|
 |
 |
READER COMMENTS (view all comments)
|
Alternate method
Sumedh Paradkar wrote on May 31, 2005 11:17 EST |
Hi,
If someone is more confortable using vlookup than index and match function, concatenate the file and type string in source table and into the destination table and then vlookup for concatenated string in the destination table. |
Retrieving an Item from a List that Meets Multiple Criteria
Ola wrote on December 31, 1969 19:00 EST |
I need to convert the index/match functions to WorksheetFunction.Index and WorksheetFunction.Match so that I can use a separate workbook and use ranges in vba
Any ideas |
|
 |
 |
 |
|
|
 |
 |
 |
|
|
|
 |
|
 |
|
PowerPoint® 2002 For Dummies®
The McGraw-Hill 36-Hour Course in Finance for Nonfinancial Managers
Successful Business Planning in 30 Days: A Step-By-Step Guide for Writing a Business Plan and Starting Your Own Business
Microsoft Office XP Step-By-Step (With CD-ROM)
Excel 2002 For Dummies®
Definitive Guide to Excel VBA
|
|
 |
|