Home > Forum Home > Automating Data Analysis Tasks > Finding a common string in two columns | Share |
Forum Topic | Post Reply Login |
Finding A Common String In Two Columns | Rate this: (3/5 from 1 vote) |
I am trying to compare the data between the text of two columns from two different worksheets. Details of the problem--> If a string from Worksheet 1: column A Text matches with a string from Worksheet2: Column B Text then I would like to copy text of Worksheet1: column C to Worksheet2: Column C. Please suggest a solution. Thank you. | ||
Posted by Sansha on |
Replies - Displaying 1 to 2 of 2 | Order Replies By: Most recent | Chronological | Highest Rated |
Rate this: (3/5 from 1 vote) | |
Posted by Sansha on |
Rate this: (3/5 from 1 vote) Assuming that there are columns headings in worksheet 2 and that there are 100 rows of data in each worksheet, the following solution will work. 1. Enter the following formula in cell C2 of worksheet 2. =VLOOKUP($B2,Sheet1!$A$1:$C$100,3,FALSE) 2. Copy the formula down the column to repeat the matching of column B. The dollar signs in the formula represent absolute references to maintain the same column or row when copying the formula down the column. | |
Excel Business Forums Administrator | |
Posted by Excel Helper on |
Displaying page 1 of 1 |
Find relevant Excel templates and add-ins for Finding a common string in two columns in the Excel Business Solutions Directory |