Research problem in excel

dudu3060

New Member
Joined
Oct 30, 2014
Messages
3
Hi guys,

I am doing retrospective research in liver enzyme's elevated patients .

I am have two columns of ID's ( around 30,000-50,000) which i want to compare and see if there is a match.
I do want a partial match between the numbers in each column of 5 digits .
A is the premanent group.
C is a changable group of ID's that i want to compare each time to A.
I want that the matched number will be on B .

Is it possible?

How do i do that ?

Help please :):):eek::eek:

ABC
1112340011123400111234
111890042234980
33390003339000
888908003339099

<tbody>
</tbody>
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi,

Welcome to MrExcel forum.

What do you mean exactly by a partial match of 5 digits?

I know that 3339000 matches 3339099 in your sense (the first 5 digits agree).
Does 3339000 match 9933390 in your sense (the last 5 digits agree)?
Does 3339000 match 3331100 in your sense (the first 3 and the last 2 digits agree)?
Does 3339000 match 3331010 in your sense (the first 3, the 5th digits and and the last digit agree)?
Does 3339000 match 0003339 in your sense (all digits agree, but the order is different)?


J.Ty.
 
Upvote 0
Hi,

Welcome to MrExcel forum.

What do you mean exactly by a partial match of 5 digits?

I know that 3339000 matches 3339099 in your sense (the first 5 digits agree).
Does 3339000 match 9933390 in your sense (the last 5 digits agree)?
Does 3339000 match 3331100 in your sense (the first 3 and the last 2 digits agree)?
Does 3339000 match 3331010 in your sense (the first 3, the 5th digits and and the last digit agree)?
Does 3339000 match 0003339 in your sense (all digits agree, but the order is different)?

Hi j.try

The first five figures or the last five figures
Will help me. As long as there will be some connection
Between the numbers in the two columns.

Thank you very much


J.Ty.


Hi

The first five figures or the last five figures
Will help me. As long as there will be some connection
Between the numbers in the two columns.

Thank you very much
 
Upvote 0
Below is the solution. I have assumed that your response means
"(the first 5 digits in A agree with the first 5 digits in C) or (the last 5 digits in A agree with the last 5 digits in C)".
The formulas are rather slow to compute - please let me know if you want something faster.
I have assumed that I indicate a match by repeating the value from column A in column B.


Excel 2010
ABC
11112340011123400111234
2111890042234980
333390003339000
4888908003339099
Sheet4
Cell Formulas
RangeFormula
B1{=IF(SUM(--(LEFT(A1,5)=LEFT($C$1:$C$4,5)))+SUM(--(RIGHT(A1,5)=RIGHT($C$1:$C$4,5)))>0,A1,"")}
Press CTRL+SHIFT+ENTER to enter array formulas.

Good luck!

J.Ty.

BTW: You might also allow, e.g., "the first 5 digits in A agree with the last 5 digits in C", etc
 
Upvote 0
Below is the solution. I have assumed that your response means
"(the first 5 digits in A agree with the first 5 digits in C) or (the last 5 digits in A agree with the last 5 digits in C)".
The formulas are rather slow to compute - please let me know if you want something faster.
I have assumed that I indicate a match by repeating the value from column A in column B.

Excel 2010
ABC
11112340011123400111234
2111890042234980
333390003339000
4888908003339099

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet4

Array Formulas
CellFormula
B1{=IF(SUM(--(LEFT(A1,5)=LEFT($C$1:$C$4,5)))+SUM(--(RIGHT(A1,5)=RIGHT($C$1:$C$4,5)))>0,A1,"")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>


Good luck!

J.Ty.

BTW: You might also allow, e.g., "the first 5 digits in A agree with the last 5 digits in C", etc


THank you very much,

It seems like i cant really paste it with CTRL+SHIFT+ENTER

Any idea why?
 
Upvote 0
THank you very much,

It seems like i cant really paste it with CTRL+SHIFT+ENTER

Any idea why?

You should copy the formula without the { } braces into Excel, and, while still editing it, press CTRL+SHIFT+ENTER. This will produce the braces.

J.Ty.
 
Upvote 0

Forum statistics

Threads
1,215,365
Messages
6,124,512
Members
449,167
Latest member
jrob72684

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