Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Match Data in Multiple Columns
I would like to be able to search for data in 3 or 4 different columns and if
the items match then it lets me know what row that is. For example: Right now I have this formula: =IF(ISNUMBER(MATCH(E2,A:A,0)),"A"&MATCH(E2,A:A,0), "no") which finds what I want in one column and then reports the row. Can I adjust this to include the ability to search on columns A, B, and C? ColA ColB ColC ColD Row1 1/1/08 00012 12345 614 Row2 3/15/08 00034 6789 625 From another set of data, I want to seach in this set of data for 1/1/08 and 00012 and 12345 and if the data matches that set then return the row#. Hopefully that makes sense. Walter |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Match Data in Multiple Columns
One simple way to extend it using your current expression
In both Sheet1 and Sheet2 (assumed to be the other data set, identically structured as the source Sheet1), just use a helper col, say col G, to concat the 3 col fields together, eg: In G1 (in both Sheets 1 & 2), copied down: =A1&"#"&B1&"#"&C1&"#" Then you could deploy your current expression like this in say, Sheet1's H1, copied down: =IF(ISNUMBER(MATCH(G1,Sheet2!G:G,0)),"A"&MATCH(G1, Sheet2!G:G,0),"no") -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Walter" wrote: I would like to be able to search for data in 3 or 4 different columns and if the items match then it lets me know what row that is. For example: Right now I have this formula: =IF(ISNUMBER(MATCH(E2,A:A,0)),"A"&MATCH(E2,A:A,0), "no") which finds what I want in one column and then reports the row. Can I adjust this to include the ability to search on columns A, B, and C? ColA ColB ColC ColD Row1 1/1/08 00012 12345 614 Row2 3/15/08 00034 6789 625 From another set of data, I want to seach in this set of data for 1/1/08 and 00012 and 12345 and if the data matches that set then return the row#. Hopefully that makes sense. Walter |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Match Data in Multiple Columns
Typo in G1's formula, line should read as:
In G1 (in both Sheets 1 & 2), copied down: =A1&"#"&B1&"#"&C1 -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
MATCH UP DATA IN COLUMNS | Excel Worksheet Functions | |||
Index/Match from multiple columns | Excel Worksheet Functions | |||
I need to match multiple columns before returning a value | Excel Discussion (Misc queries) | |||
Vlookup/match/offset over multiple columns of lable | Excel Discussion (Misc queries) | |||
HOW TO MATCH MULTIPLE COLUMNS WITH OR WITHOUT GAPS IN eXCEL ? | Excel Worksheet Functions |