Solved

Excel Compare Columns with Wildcards

Posted on 2011-03-16
3
554 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

726 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