Extract digits from string

chunu

Board Regular
Joined
Jul 5, 2012
Messages
99
Office Version
  1. 2013
Platform
  1. Windows
  2. Mobile
Hi,
I want to extract 15 digits from right (including dash) from cell, but if cell contains less than 15 characters ignore.
Thanks

office 2013

abb.xls
AB
1DataRequired result
2G)2023 l
3e 202301:t
4128020201
5¡tsJ61 97201-1760694-397201-1760694-3
6:5--51
7z0G19| 87201-8189188-987201-8189188-9
8z5S67
9zbSslJ41
10bJ35
110sJ44
12240
1317201-5796810-317201-5796810-3
1447201-2204445-347201-2204445-3
1587201-9363219-787201-9363219-7
1667201-5912222-167201-5912222-1
Sheet3
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Book6
ABC
12DataRequired resultFormula
13G)2023 l 
14e 202301:t 
15128020201 
16¡tsJ61 97201-1760694-397201-1760694-397201-1760694-3
17:5--51 
18z0G19| 87201-8189188-987201-8189188-987201-8189188-9
19z5S67 
20zbSslJ41 
21bJ35 
220sJ44 
23240 
2417201-5796810-317201-5796810-317201-5796810-3
2547201-2204445-347201-2204445-347201-2204445-3
2687201-9363219-787201-9363219-787201-9363219-7
2767201-5912222-167201-5912222-167201-5912222-1
Sheet1
Cell Formulas
RangeFormula
C13:C27C13=IF(LEN(A13)<15,"",RIGHT(A13,15))
 
Upvote 0
Solution
Book6
ABC
12DataRequired resultFormula
13G)2023 l 
14e 202301:t 
15128020201 
16¡tsJ61 97201-1760694-397201-1760694-397201-1760694-3
17:5--51 
18z0G19| 87201-8189188-987201-8189188-987201-8189188-9
19z5S67 
20zbSslJ41 
21bJ35 
220sJ44 
23240 
2417201-5796810-317201-5796810-317201-5796810-3
2547201-2204445-347201-2204445-347201-2204445-3
2687201-9363219-787201-9363219-787201-9363219-7
2767201-5912222-167201-5912222-167201-5912222-1
Sheet1
Cell Formulas
RangeFormula
C13:C27C13=IF(LEN(A13)<15,"",RIGHT(A13,15))
Thank you so much
 
Upvote 0
Thank you so much
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,215,148
Messages
6,123,305
Members
449,095
Latest member
Chestertim

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