Extract number from text cell

Clare1805

New Member
Joined
Apr 14, 2008
Messages
39
I have an extract from a call logging system; one of the columns is a description of the call (this column is extracted in Text format). Within some of the descriptions is a reference number which I need to extract (sadly this number isn't kept in its own field) - is there any way to determine whether a cell has numbers in it, and if so is there a way to pull them out into a seperate column? (preferably using a formula as I'm no good at VBA!)

Hope this makes sense and thanks in advance for your help!
 
Hi Bary!

I have same situation, but my cell numbers are diffrent in length. Will you please suggest how can I change your formula to meet with my need.
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi Bary!

I have same situation, but my cell numbers are diffrent in length. Will you please suggest how can I change your formula to meet with my need.

How long are the numbers, are they always the same length? In general you should change the two 6s to whatever length that is, and also the 5 too, so to search for an 8 digit number....

=LOOKUP(10^8,MID(SUBSTITUTE(SUBSTITUTE(A1," ","x"),".","x"),ROW(INDIRECT("1:"&LEN(A1)-7)),8)+0)

but note it might not work if your numbers have leading zeroes.......
 
Upvote 0
Thank you for ur help. You solve my problem. Thank again
 
Upvote 0
hello u genius barry
ignore my previous thread, can u evaluate the formula, i mean its very difficult to understand it. can you please mention how its work
 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,831
Members
449,471
Latest member
lachbee

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