extract and convert to a number to be able to match

Korimint

New Member
Joined
Feb 5, 2011
Messages
42
Hello,

I have 2 different numbers, the first one is this:

%B710743102091803^?;71074

I want to convert it to this:

710743102091803

and make it an actual number that excel will recognize to be able to match the number in a different column.

The other number I have is this:

;6050110000002353239=2501

I want this:

6050110000002353239

and then convert to a number to match also.

I have tried using the MID and then adding 0 but it only will do up to 14 characters which doesnt work. Any ideas on what to do?

Thanks for the help!

I am using excel 2007 and windows 7
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Just left and right will do it assuming that if you have other numbers they are similar to these.

Putting the first number in cell A1 use this formula:

Code:
=LEFT(RIGHT(A1,23),15)

and the second number in cell A2:

Code:
=LEFT(RIGHT(A2,24),19)
 
Last edited:
Upvote 0
Just left and right will do it assuming that if you have other numbers they are similar to these.

Putting the first number in cell A1 use this formula:

Code:
=LEFT(RIGHT(A1,23),15)

and the second number in cell A2:

Code:
=LEFT(RIGHT(A2,24),19)

Yes this gets me the number but not one that excel recognizes to be able to match the numbers, is there a way to make a number text, so it can see both and match them up?
 
Upvote 0
Excel only recognises numbers up to 15 digits, any longer are displayed as scientific and truncated. Leave them as text and you can still match them =A1=B1 or =EXACT(A1,B!)

To convert to text use =TEXT(A1,"#")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,424
Members
452,914
Latest member
echoix

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