Compare Two Columns For Single Character Matches

May 20, 2008

I have two excel sheets exported from two sources of information. Both sheets contain 1 column which is the primary data, ie, there is no duplicate of that information. Each information in these column represent 1 device in the real world.

Now, for example:
In one sheet, I have: SDV0620B
In the other sheet, I have: SSDV-B0620B

Please note that, both data actually represent the same device. What I now need to make sure is that, I ccan identify each corresponding data from the two sheets.

So, here is the problem that I am facing, identifying two data which are same but has two different representation techniques. (since the data are from two different sources)

I came up with the idea that, if I can check the sequence of characters with one column to another, then I might be able to pull it off.

For example,
we take SDV0620B, and match the sequence of character with SSDV-B0620B.
therefore, first is S (from SDV0620B)
match with SSDV-B0620B
then, D
match SSDV-B0620B
then V
match SSDV-B0620B
and so on, until the end.

And if the 1st sequence is found in the second sequnce of characters, then it is called a match! Hope I have explained it clearly. I have provided a file with some of the data copy and pasted out, to give you an idea of what the values look like.

View 9 Replies


ADVERTISEMENT

Compare Columns; Remove Matches

Aug 13, 2009

I've been searching for a method to compare two large columns of numbers and remove replicates from the "main" column. Column A has all the numbers that are in column B and many more. I want to remove all the numbers from column A that are in column B. The result being two columns with no matching numbers. (or a third column that has only the numbers from 'A' that are not in 'B').

My search results on this forum have found results that compare rows for matches & can make deletions; and also one method that could mark all the entries that were duplicates in both columns, but nothing to remove them. The datasets I am using have over 400k entries in some columns, so manual removal of marked ones is not feasible. I need an automatic deletion method.

View 2 Replies View Related

Compare 2 Columns For Close Matches

Jul 3, 2007

I want to compare two columns (from two different files, but copied into a new sheet) for duplicates or identical entries. But here's the trick, each entry contains atleast a number of digits. I'm not quite sure how to find items that may be 80% identical (in the right order, but might be messing a digit, or there is a dash or a 'o' instead of a '0'). I know how to do it in C++ or Java, but not quite sure how to do it in VBA/macro. Here's an example of what I meant. Let's say column one has the following:

0244-34
9393-O0
3932-44

and second column has
939300
493384
938923

If I was comparing second column to first column, it can pick up the 9393-O0 one because it's close enough to 939300.

View 7 Replies View Related

Compare 2 Columns On 2 Worksheets For Matches

Oct 24, 2007

I know there is a forumla to compare a small database to a list, but can't find it (I used to use French Excel).

Here is an example :

In a sheet, my small database :

(in two different cells)

Value1 and ValueA
Value2 and ValueB
Value3 and ValueC

etc...

In another sheet, my list :

I have a list where there's a lot of Value1, Value2... in one column, and in the next column, a lot of ValueA, ValueB....

I want to check in my list : if I have Value1, then, on the same row (next column) I have ValueA, if I have Value2, then, I should have in the same row (next column) ValueB....

And if I have Value1 and in the same row (next colum) ValueB, I want some kind of "Error" text.

Can't find this function nor (of course) the criteria to use it correctly.

View 3 Replies View Related

Compare 2 Columns And Return Matches

Aug 12, 2008

I have two columns, one with the target text (D:D) and one with text I want to compare it too (A:A). If the text in column (D:D) matches the one in (A:A), I want to return the value in (B:B). I attached a sample of the problem i'm dealing with.

View 5 Replies View Related

Compare Columns Across 2 Sheets & Copy Matches

Sep 10, 2009

I have two sheets with pretty much the same content but not exactely. I need to compare the data from the first sheet to the data in the second sheet in this way:
data from column b (numbers) in the first sheet needs to be compared to data in column b in the second sheet. if this dosen't match it needs to go to the next line.
if the match is positive it needs to compare the data from column d on the first sheet to the data on the second sheet same column and copy the data from the first sheet's column d to the second sheet's column d. But only if the data in column d on the first sheet isn't blank. If it is it should leave the data on column d second sheet intact.

View 4 Replies View Related

Compare Multiple Columns & Copy Matches

Dec 2, 2007

I am trying to compare mutiple columns of data, match them and copy select data. Find matching cells in 2 different columns and copy select info into that row. See file attached

View 7 Replies View Related

Compare 2 Columns To Another Sheet & Highlight Matches

Dec 23, 2007

I have a workbook with two sheets imported from different sources. Sheet 1 is an AdHoc query from an Oracle 10g based program. Sheet 2 (PBIC 8 in my file) is a report generated from a property accountability program. The information from Sheet 2 is manually inputted into the Oracle program that generated Sheet 1.

I would like to have a macro that would compare the cell contents in columns "RegistrationNbr" (column S) and "SerialNbr" (column T) with the cell contents in Sheet 2 (PBIC 8). The match in Sheet 2 could be an identical match or part of a longer string. The matching cells in both sheets should be highlighted.

One thing to be considered is the column names in Sheet 1 will always be the same but the column letter designation may change base on the fields selected in the AdHoc query.

I didn't realize my file was too large and didn't upload.

View 4 Replies View Related

Compare 2 Columns With Adjacent Data And Align Matches?

Jun 27, 2014

I have two sets of data from columns A:N (O is blank) & P:AC. Column A & P are account numbers. I want to compare columns A & P for exact matches, there will never be any duplicates in either of these columns by themselves. If there is a match I would like that entire row to align, if there is no match I would like a row to be inserted. I have attached a copy of a worksheet of what I am looking to have done.

View 2 Replies View Related

Compare Columns On Different Sheets, Return Matches To Third Sheet

Mar 21, 2007

I've got two worksheets ("June" & "July"). On both worksheets, column A is comprised of ID numbers and column B contains dollar amounts. I need to compare the ID numbers in Column A on each worksheet, and if they match I want to copy the ID number and the amount to a third worksheet ("Results").

View 3 Replies View Related

Compare Columns Across 2 Workheets Copy Cell Next To Matches

Jan 19, 2008

I have this code that compares two columns on two different sheets when it finds a match it then puts the match on that sheet your running it from in my case sheet 2. However i want to change this slightly and im having a hell of a time. I want to match but when tha match happens i want it to copy the cell next to the match.

Sub Find_Matches() ...

View 3 Replies View Related

Ignore Character String That Matches Another Cell

Mar 2, 2012

I have a cell that contains a string of characters that were combined from two different cells. What would the formula be for excel to ignore the characters that are from one of the cells? In other words, if cell A1 contains ABCD123 and cell A2 contains XYZ (the length of the string in A2 varies in length), the combined string is ABCD123XYZ. In cell B1 I would like excel to ignore the contents of cell A2. This seems simple but I'm not coming up with the right syntax.

View 6 Replies View Related

Compare & Bold Matches

Feb 16, 2008

2 worksheets,
Sheet 1 columns A&B are the same as sheet 2 A&B.

Sheet 1 is my master list (customer name = column A and carrier name = column B)

Sheet 2 (customer name = column A and carrier name = column B)

Sheet 2 is where data gets dumped so I need to change font to bold when I click a check box on sheet 1 (master list) on Column C

Check box is on column C and column C will have more then one check box.

When I click check box on C I need date to populate on column D
(But when I re-open my workbook I don't want dates to change on me using the system date)

My objective is to select customer carriers on my master list sheet 1 and update date and change font to bold on sheet 2 so I can avoid or skip that customer carrier.

Hope this is not too much for my first post.

View 3 Replies View Related

Compare & Extract Corresponding Matches

Aug 7, 2008

I want to compare cell a to range c and extract comparing cell b to cell D. I might have explained it back words but see attached.

View 2 Replies View Related

Compare FOUR Worksheets And Extract Matches?

Nov 4, 2013

I have a Workbook containing four different Worksheets, each of which contains a different number of columns:

"Set A" = 18 Columns
"Set B" = 47 Columns
"Set C" = 47 Columns
"Set D" = 11 Columns

Each Worksheet contains a different number of rows, approx 4,000.

Column A for each of the above Worksheets is, however, the same and contains an alphanumeric string called "Accession ID".

I have been tasked with extracting the entire row of data for each "Accession ID" which appears on at least 2 Worksheets, and then compile them in a new "Summary" Worksheet.

So, for example, if one of the Accession IDs was "ABC123" and it appeared on all four of the Worksheets; the Summary Worksheet would contain the 18 Columns from the row on which "ABC123" appeared in "Set A", the 47 Columns from the row on which "ABC123" appeared in "Set B", the 47 Columns from "Set C" and the 11 from "Set D" all on different rows.

I tried toying with VLOOKUPs etc, but given there are four Worksheets, and in order to qualify the Accession ID must only appear on a minimum of two Worksheets - it quickly become a mess.

Is there any way of being able to do this as a macro perhaps?

View 2 Replies View Related

Compare 2 Ranges For Approximate Matches

Dec 17, 2007

I am trying to compare two sets of data in two different columns. But I only want an approximate match. That is: Data from one given cell, has to be matched to another given cell and if an APPROXIMATE match is found, return a 1, otherwise a 0. And that should happen all the way down in the two columns.

View 2 Replies View Related

Compare 2 ListBoxes & List Matches In A Third

Aug 13, 2008

I have two excel sheets, one loads up in Listbox1 and the other in Listbox2, i would like to be able to see if any entries in listbox2 match with entries in listbox1 and then to display the matches in listbox3 with a click of a command button. Is this possible? If so, how would i go about it?

View 3 Replies View Related

Compare Data In Two Workbooks And Highlight Matches

Jan 28, 2008

Here is the scenario. I am running a business and each day I download my orders for the day. The information includes customer names and addresses. The customer name is for example in column E. We will call this "Book1".

I have a second workbook that I use to store bad customer information. i.e. customers that I do not wish to sell to. The information stored here is customer name and address e.g. column A - customer name, column B - 1st line of address etc. This will be "Book2".

I wish to programmatically be able to compare customer names in column E Book1 to the customer names stored in column A Book2. Any matches found should highlight the rows (i.e. orders) in Book1.

I have tried to make this clear as possible. I want to be able to do this as a macro hence programmatically so when I click a button this comparison/highlighting takes place.

View 4 Replies View Related

Compare Data-set With List & Summarize Matches

Jul 16, 2009

1) Background Info

We are trying to summarise some data that has been exported from an ancient database into a poorly delimited csv file. My colleague has imported the csv file into Excel ( attached), and we are trying to work out what to do next.

The dataset contains approx 300 records - each record being called a "sample" and having a unique sample number. NB: I have had to attach a cut-down version with only 3 samples, due to file-size - but it will hopefully give an idea.

Each sample contains 2 types of information that we are interested in (and a lot of irrelevant data besides). The relevant bits are:
- predicted occurrence of various species (given as a percentage for each species)
- observed occurrence of various species (given as positive/negative for each species, where positive is indicated by an asterisk)

2) What We're Trying To Do

We are trying to compare this dataset with a master-list of 80 species names. For each species on the master-list, we want to:
a) check whether it has a "predicted occurrence" value in each of the 300 samples (and if so, record the value in a summary sheet)
b) check whether it was observed in each of the 300 samples (and if so, record this in the summary sheet)

3) The Problem

Unfortunately, the dataset has imported into Excel as a gigantic list: 48000 rows (including loads of blanks) and only 3 columns across. To find the relevant data, it's necessary to:

a) open the attached workbook, and go to the worksheet named "Data"

b) Scroll through the rows, looking for the string "RIVPA" in column A. This tells you where each new sample begins. (The sampleID is stored in the same row as this, in column C. It is mixed up with a load of text, which we will need to separate out at some point, but that's a secondary consideration at the moment.)

c) Scroll down further until you find the text string "Predi" in column A. This indicates the beginning of the data we're interested in, for each sample (i.e. for sample 1, I'm talking about row 58). Count down a further 2 blank rows, and then you find the data itself:
- Column A contains the observed occurrence (a positive result is indicated by an asterisk)
- Column B contains the predicted occurrence
- Column C contains the species name

My colleague was trying to build a summary table, in the worksheet named "Summary". He was using the LOOKUP function to extract the data, but because there are so many samples, it's beyond unwieldy. He asked me if I could write a macro do do the job, and this is where I'm stuck.

How could I set up a macro that can identify where one sample starts and finishes, and where the data is within each sample? What is the most sensible shape for such a macro? If I could get the overarching logic worked out, I could make a start on writing the individual bits of code, but at present I just can't figure out how to begin.

To make things more difficult, the samples are not all the same length, and do not all contain the same list of species as each other. (However, at least there should be no species in the samples that are not in the master-list). The first sample begins on row 5, the second sample begins on row 173, the third on row 340, and so on.

View 8 Replies View Related

Compare Data In Two Workbooks And Highlight Matches

Jan 28, 2008

I am running a business and each day I download my orders for the day. The information includes customer names and addresses. The customer name is for example in column E. We will call this "Book1". I have a second workbook that I use to store bad customer information. i.e. customers that I do not wish to sell to. The information stored here is customer name and address e.g. column A - customer name, column B - 1st line of address etc. This will be "Book2".

I wish to programatically be able to compare customer names in column E Book1 to the customer names stored in column A Book2. Any matches found should highlight the rows (i.e. orders) in Book1. I have tried to make this clear as possible. I want to be able to do this as a macro hence programtically so when I click a button this comparision/highlighting takes place.

View 2 Replies View Related

Compare Column In Different Workbooks & Return Corresponding Value Of Matches

Aug 7, 2008

I have two separate workbooks, each with a great deal of information, such as name, ssn, dates, statuses, etc. I would like to compare the SSN column for both workbooks, and when it finds a match (which there would be many) to copy the MOS cell from the same row to the other workbook. Here is my breakdown with names:

Workbook 1: Macros.xls
Workbook 2: MASS 162.xls
The SSN column is column C in both workbooks
When there is a match found between the SSN column in Macros.xls and the SSN column in MASS 162.xls, I need to copy the MOS cell (column E) from the MACROS.xls workbook to the MASS 162.xls workbook into the same row, but in column M, which is currently empty.

View 7 Replies View Related

Replace Just Single Character From Many Of Same One Within Text?

Apr 13, 2013

have to deal with a text database into Excel but ended up finding irregular format that need to be fixed. As it can be seen within the text right below, there are space delimiters in between the words. I want to replace always the 2nd space from right to left with a semicolon.

20/10/2012 CENTAURO CE 39 (06/10) 57.97 0.00
20/10/2012 CENTAURO CEFT 534 (09/10) 1,235.34 0.56
20/10/2012 CENTAURO (06/10) 5,345,200.00 45.00 1.01
20/10/2012 TFRE (06/10) 1.00 0.00

View 5 Replies View Related

Add Single Character Before & After Each Cell Value In Column

Jan 27, 2009

I am trying to do is put an asterisk at the beginning and the end of the Information in a cell for the entire column. Is there a way to make a macro that, once I highlight a column, it will put an asterisk at the beginning and end of the information in each cell in that column until a blank cell is reached where the macro will then stop? This will save me a lot of work. It will work for me if a particular column has to be defined in the macro, but would be better if it is one I can just highlight.

This would also work fine for me if I just had to highlight the cells that I want to use as well. Sorry if this seems to be a stupid question, but I am a very novice excel user

View 7 Replies View Related

Fill Cell With Single Character

Nov 27, 2006

I would like to enter an X or O into a square cell so that it completely fills the cell.

I want to eliminate the space between the text character and the cell border.

The character does not necessarily have to be text so long as it can be automatically entered into the cell by a macro and can also be deleted by a sub routine to refresh the worksheet for new data.

I created autoshapes for a cross and a circle but I have no idea how to substitute these for the text characters in the worksheet or delete them afterwards.

View 9 Replies View Related

Control That Allows Single Character Formatting

Oct 5, 2007

When I try to add the Richtextbox control, I get this error: "The control could not be created because it is not properly licensed." Since I'm in a corporate setting, I don't think I can get around this (since I don't have access to the computer's registry and several users will be using it). I have figured out a way to present the user with some rich text controls (Bold, Italics, Underline, Font, Color, etc), which will add special characters around the selected text which then is interpreted by a procedure and formats the text in the output destination (HTML document).

However, that tends to clutter up the textbox and makes it somewhat cumbersome for some users to edit the text. I'd prefer to have them see the formatted text in the textbox, if possible. So, is there a way to get some sort of Rich Text Box without the RichTextBox control? It's long shot, I know.

View 3 Replies View Related

Count Cells With Only One/Single Character

May 1, 2008

I need a formula that counts the number of cells in a range that only contains one character. Example, column A contains:

Hello
Goodbye
A
B
Hello
Goodbye

In the above, I want the result to be 2. I've tried =countif(a1:a6,len=1) but that doesn't work.

View 2 Replies View Related

How To Compare And Get Difference In Character Between 2 Cells

Jul 19, 2014

Suppose we have 2 cells

Cell 1
Cell 2
O/P needed

abc123
abd123
d123

xyz112
xyz113
3

abc911
axz111
xz111

abc119
abc130
30

abc121
abc122
2

The formula would basically need to check each character sequentially in both cells[starting from the left most character] till there is a mismatch and then display the characters that follow in the second cell (including the character with a mismatch) in the output cell.

it basically looks like this:
ABC1234
ABD1239

I want to get D1239 as the result after using a formula.

Is there a way this logic could be extended to 12 characters?

View 11 Replies View Related

Text String To Single Character Array?

Jul 13, 2012

There is a method to use ROW(1:10) within an array formula to strip a string into individual elements e.g.

HELLO > {"H","E","L","L","O"}

I cannot find it anywhere, thought it was something like =MID(A1,ROW(1:10),1) but not yielding results.

View 4 Replies View Related

Cell Value Matches Value From Sheet1 - Compare Number From Cell2 And Show Difference?

Apr 26, 2014

Sheet1 is Main Sheet which never will be amended and these numbers will be a source for pulling mathematical functions

See attached :
Sheet1.png

Don't be bothered about cell colors etc. They are for my reference

Sheet2

Will contain same Problem Ticket numbers but different (or same) values with number of 'Linked Incidents'
See screenshot
Sheet2.png

Based on Problem ID 10248
Main sheet shows 92 Linked Incidents
Value on Sheet two brings 93

If A5 Sheet2 value can be found in ColumnA Sheet1, look for a number in ColumnC, same ROW and compare it to C7 in Sheet2 ?

Bring up difference value, which in this case would be one.

View 1 Replies View Related

Excel 2007 :: Find And Delete Single Character?

Jan 23, 2014

Following the tips doesn't allow to remove a character.

I exported email addresses from Outlook and they have the following character ' in front of the email address.

Using Excel 2007.. it says :"check if your search formatting and criteria are defined correctly. If you are sure that matching data exists in this workbook, it may be on a protected worksheet. Excel cannot replace data on a protected worksheet"

So I made a new file, and copied and pasted the cells into the new spreadsheet.. same message.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved