Solved

Excel Compare Columns with Wildcards

Posted on 2011-03-16
3
542 Views
Last Modified: 2012-05-11
Hi,

Goal: To create a spreadsheet which compares 2 columns and highlights the entries which appear in both columns, but i need to use wildcards.

Basically, I have 2 columns, 1 contains numbers followed by a name, and the other column just contains numbers. So i want to be able to highlight the entries that appear in both columns but only using the numbers as the comparison.

E.g.
Below is my test data, So i want to compare the 2 columns using the numbers

So in my example 11111 Joe Bloggs LTD would be highlighted because the numbers match an entry in column B. Where as 125445 Free LTD would NOT be highlighted because there isnt a number match in column B.

I figured i could use some kind of =COUNTIF statement but having no joy with the wildcards thus far.

If there a formula i can use for this as i have about 5000 records to compare?


 Book2.xls
0
Comment
Question by:BusinessSolutions
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
nutsch earned 50 total points
ID: 35149488
Select column A and add a conditional formatting formula like:

=COUNTIF(B:B,--LEFT(A1,FIND(" ",A1)))>0

Thomas
0
 

Author Comment

by:BusinessSolutions
ID: 35149709
Does this only compare numbers? I have some entries which have a lettered account number.
0
 
LVL 39

Expert Comment

by:nutsch
ID: 35151518
Yes, since the -- tries to convert account number to numbers

You can try
=COUNTIF(B:B,IFERROR(--LEFT(A1,FIND(" ",A1)),LEFT(A1,FIND(" ",A1)-1)))

if you have mixed acct numbers

T
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question