Trouble comparing rows

colman

New Member
Joined
May 27, 2011
Messages
19
Hi guys- Im currently working on a small project and have a problem.
Column A is a list of 537 companies.
Column B is a list of 2790 companies with prices.

I only want Column B to have the Row A companies. Simple, but the problem is that most of the companies aren't exactly alike, example Column A is "AT&T" and Column B will be "AT & T" or "AT&T Worldwide", or Column B will have endings like "LLC" and "LP" but Column A doesn't (its a less official list). Is there someway to do a compare that won't exactly match the columns but still work for me? I really don't want to go through all 2790 companies to see if they match.

Thanks for any help!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi, Here's an example,
Column A is your 'unofficial list'
Column B is the best match from the Company names / prices table in columns F:G
Column C is the % match between the two cells
column D is the price from column G

I've used algoritm 2 for the Fuzzy match:
<b>Excel 2003</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="font-weight: bold;;">Unofficial List</td><td style="font-weight: bold;;">Price</td><td style="font-weight: bold;;">% Match</td><td style="font-weight: bold;;">Price</td><td style="font-weight: bold;text-align: right;;"></td><td style="font-weight: bold;;">Company</td><td style="font-weight: bold;;">Price</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style=";">AT&T</td><td style=";">A.T & T LTd</td><td style="text-align: right;;">50%</td><td style="text-align: right;;">500</td><td style="text-align: right;;"></td><td style=";">Alpha</td><td style="text-align: right;;">100</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style=";">Alpha Holdings PLC</td><td style=";">Alpha</td><td style="text-align: right;;">100%</td><td style="text-align: right;;">100</td><td style="text-align: right;;"></td><td style=";">Alpha Holdings LLC</td><td style="text-align: right;;">200</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style=";">Gamma Industries</td><td style=";">XYZ Gamma holdings PLC</td><td style="text-align: right;;">38%</td><td style="text-align: right;;">400</td><td style="text-align: right;;"></td><td style=";">Beta LTD</td><td style="text-align: right;;">300</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";">XYZ Gamma holdings PLC</td><td style="text-align: right;;">400</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";">A.T & T LTd</td><td style="text-align: right;;">500</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">B2</th><td style="text-align:left">=FuzzyVLookup(<font color="Blue">A2,$F:$G,1,,,2</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">C2</th><td style="text-align:left">=FuzzyPercent(<font color="Blue">A2,B2,2</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">D2</th><td style="text-align:left">=VLOOKUP(<font color="Blue">B2,F:G,2,FALSE</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">B3</th><td style="text-align:left">=FuzzyVLookup(<font color="Blue">A3,$F:$G,1,,,2</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">C3</th><td style="text-align:left">=FuzzyPercent(<font color="Blue">A3,B3,2</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">D3</th><td style="text-align:left">=VLOOKUP(<font color="Blue">B3,F:G,2,FALSE</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">B4</th><td style="text-align:left">=FuzzyVLookup(<font color="Blue">A4,$F:$G,1,,,2</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">C4</th><td style="text-align:left">=FuzzyPercent(<font color="Blue">A4,B4,2</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">D4</th><td style="text-align:left">=VLOOKUP(<font color="Blue">B4,F:G,2,FALSE</font>)</td></tr></tbody></table></td></tr></table><br />

Post back if you require any further explanation .
 
Upvote 0
I trust you spotted my deliberate mistake - the heading in Column B should be something like 'Fuzzy Lookup Result' not 'Price' :oops:
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,711
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top