简体   繁体   中英

Excel match with a list as criteria

I want to perform a match in excel using, several criteria (text, string) in the form of a list. For example:

Match(A:A & B:B, C:C & D:D, 0) (With the array parenthesis of course)

I have try this, but it doesn´t work.

I also looked in the internet, and found nothing similar

Any idea how could I do it?

Regards.

In order to return the first row number where A&B matches C&D , type the following array formula:

= MATCH(TRUE,(A:A&B:B)=(C:C&D:D),0)

Note: This is an array formula, meaning you must press Ctrl+Shift+Enter in the cell after typing the formula.

Also note: This formula takes a relatively long time to calculate because it checks the entire columns. I recommend narrowing the formula to a certain amount of rows as required.

For example,

= MATCH(TRUE,(A1:A10&B1:B10)=(C1:C10&D1:D10),0)

accomplishes the same thing but only checks the first 10 rows of the spreadsheet, thus drastically reducing the calc time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM