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)
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
Terms
and Conditions of use
The applications/code on this site are distributed as is and without warranties
or liability. In no event shall the owner of the copyrights, or the authors
of the applications/code be liable for any loss of profit, any problems
or any damage resulting from the use or evaluation of the applications/code.