Home |
Search |
Today's Posts |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Comparing two different columns - looking for similar data
Ok, try this...
Assume: Long list in the range A2:A329 Short list in the range B2:B163 Create these named ranges... Goto the menu InsertName Define Name: Llist Refers to: =$A$2:$A$329 Name: Slist Refers to: =$B$2:$B$163 Enter this formula in cell D1. This will return the number of matches. =SUMPRODUCT(--(ISNUMBER(MATCH(Slist,Llist,0)))) Enter this array formula** in D2: =IF(ROWS(D$2:D2)<=D$1,INDEX(Slist,SMALL(IF(ISNUMBE R(MATCH(Slist,Llist,0)),ROW(Slist)),ROWS(D$2:D2))-MIN(ROW(Slist))+1),"") ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. Copy down until you get blanks meaning all matches have been extracted. -- Biff Microsoft Excel MVP "Cheimbig" wrote in message ... Yes - one column 328 and the other 162 -- Carla Heimbigner "T. Valko" wrote: Is one list longer than the other? -- Biff Microsoft Excel MVP "Cheimbig" wrote in message ... I have 2 columns with names I want to have a 3rd column with only the names that match Is there a function for doing this -- Carla Heimbigner |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Comparing data in two sheets with similar values | Excel Worksheet Functions | |||
Comparing similar data on different sheet tabs | Excel Discussion (Misc queries) | |||
comparing 2 similar columns on seperate work sheets in 1 workbook | Excel Discussion (Misc queries) | |||
Finding similar data or numbers in two columns | New Users to Excel | |||
Comparing data in two similar worksheets | Excel Discussion (Misc queries) |