Help with Formula

kittymongo

New Member
Joined
Feb 6, 2018
Messages
16
Hello,

I have 2 spreadsheets I am comparing data on. One column is a concatenation of 2 cells and this is on each spreadsheet. I need to compare the data between the 2. Spreadsheet A has the concatenation with a data point that won't be a one to one match to spreadsheet B. How can I write a formula to do this comparison? I understand there may be an additional step that may need to be done. Below is an example of what I am trying to do.

If the data in the first column has the account name with code 123 at the end, then the data in the other column will have the account name with code 357 at the end. For what I need, that would be considered a match for what I am comparing. Is there a formula to use for this?

Spreadsheet A ConcatenationSpreadsheet A formulaSpreadsheet B ConcatenationSpreadsheet B formula
ABCDEFG123ABCDEFG357
HIJKLMNO789HIJKLMNO987
PQRSTUV102PQRSTUV201
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
If the lenght of the text portion of your code is always 7 characters long then how about this?:

Libro3
CDEFG
3Spreadsheet A ConcatenationSpreadsheet A formulaSpreadsheet B ConcatenationSpreadsheet B formula
4ABCDEFG123ABCDEFG357ABCDEFG357ABCDEFG123
5HIJKLMNO789HIJKLMNO987HIJKLMNO987HIJKLMNO789
6PQRSTUV102PQRSTUV201PQRSTUV201PQRSTUV102
Hoja1
Cell Formulas
RangeFormula
D4:D6D4=XLOOKUP(LEFT(C4,7),LEFT($F$4:$F$6,7),$F$4:$F$6,"not found",0)
G4:G6G4=XLOOKUP(LEFT(F4,7),LEFT($C$4:$C$6,7),$C$4:$C$6,"not found",0)
 
Upvote 0

Forum statistics

Threads
1,215,097
Messages
6,123,076
Members
449,094
Latest member
mystic19

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