Does this excel formula exist?

xsilver

Senior member
Aug 9, 2001
470
0
0
Hey, I'm trying to find something that can help me collaborate two excel colums into some meaningful data.

Only problem is that my name list is not exactly the same so is there a formula that searches partial matches?

eg. I know about the "MATCH" and "VLOOKUP" function but that only works if two cells are identical

so what I have is for example
Data set A:
Bill Gates = 1
Steve Jobs = 2
Michael Jackson = 3

Data set B:
Bill Gates MSFT = $100
Jobs, Steve = $200
Michael Jackson = $300

The match/vlookup function will only work for michael jackson? Is there a function which will allow me to find the examples of bill gates of steve jobs? I have a list of 350+ names and besides editing them by hand to make them the same (PAIN IN THE ASS) I don't know any other way.
Even something that can tell me its one of 3 possible matches (if there are conflicts) would help a lot)

thanks in advance.
 

xsilver

Senior member
Aug 9, 2001
470
0
0
ok - to answer my own question - I think I have found the answer
http://www.mrexcel.com/forum/s...ad.php?p=331454#338580

only problem is - I dont really understand it!
I need someone to explain it in laymans terms lol. (i've never used a UDF before)


For my specific need I have a list with names that may not match due to a comma in the name, a suffix on the end of the name or the name enclosed in [ ] brackets. I dont actually need such advanced functions as ranking %'s of matching. I also dont think I will have duplicates; eg. from my example above, I will probably only have Bill Gates MSFT or Bill Gates. or Bill, Gates or [Bill Gates] worst case scenario being [Gates, Bill MSFT]
 

mayest

Senior member
Jun 30, 2006
306
0
0
I don't know that you need a user-defined function. Maybe, depending on your exact needs. Here are a couple of ideas to look at before going the UDF route:

1) The Match() function can make use of wildcards (? and * only) for strings. It is far from a full regular expression, but it might work for you.
2) Perhaps you can use a Filter? Excel can easily filter a list, and you can define your criteria and even filter multiple columns.
3) Make use of the various string (text) functions to clean up your data before doing your VLookup() or Match() functions. You can also use these string functions (e.g., Left(), Mid(), Right(), etc) within your VLookup() or Match() functions.
 

tdawg

Platinum Member
May 18, 2001
2,215
6
81
So, I used the following function to check if a line of text contained certain text.

=IF(ISNUMBER(SEARCH("TAX",G9)),1,0)

In this case, I was looking through column G for any row that had "TAX" written in it and wrote a '1' in column E if "TAX" appeared in the row, or a '0' if it didn't. Perhaps you can adapt this to your purpose, maybe even a conversion of the names field (i.e. IF(ISNUMBER(SEARCH("GATES",B2)),"Bill Gates",0)). With so many names to translate, it might be cumbersome, though.

P.S. I don't know why ISNUMBER is required, but the formula would not work without it, even though I wasn't searching for numbers and the column being searched was general text.
 

xsilver

Senior member
Aug 9, 2001
470
0
0
Unless Im understanding it wrong - I dont think the wildcards can help because my list of names is not fixed in the number of characters?
eg. =Match("B2*", A2:A5, 0) Doesnt link to cell B2? - it doesnt work without the "" either
It should work if I ask =Match("Bill*", A2:A5, 0) but that only works for 1 cell. The cell below it is going to search for steve jobs so I cant use text in the search, I need to use B2 or at least the first 8 characters of B2.

also im not sure what you propose with the filter function? filter doesnt work without exact matches?

The left function sounds promising but for some reason I'm getting a #value error?
=MATCH(LEFT(B2,8),LEFT($D$2:$D$101,8),0)
Is there something wrong with this formula? This matches the first 8 characters?


Im not sure the =IF(ISNUMBER(SEARCH("TAX",G9)),1,0) function is going to work because the subject "tax" has to be entered manually? it works for 1 cell, but not when you have 300+ to lookup and compare. eg. I need to be able to ask it to search for say the first 8 characters in a cell and compare that to a list and tell me that D22 is the same (or close enough) as B2
 

xsilver

Senior member
Aug 9, 2001
470
0
0
BUMP - also is there a way to remove a suffix from a list of cells
eg. Bill Gates MSFT turns into Bill Gates - I wont know the number of characters in the name, but I should know the number of characters that need to be deleted.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |