Selecting labels

ATY807

New Member
Joined
Mar 18, 2020
Messages
12
Office Version
  1. 2013
Platform
  1. Windows
Hello,

I have a column of data which comprise labels varying in format (string or number) and length. I would need only numeric labels with the size of 10 digits copied in a separate column. I would appreciate help with an excel function or VBA that could do that.

Thank you,
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Please post a sample of what your data looks like.
 
Upvote 0
Hello,

I have a column of data which comprise labels varying in format (string or number) and length. I would need only numeric labels with the size of 10 digits copied in a separate column. I would appreciate help with an excel function or VBA that could do that.

Thank you,
As shown on the image, only the last three labels on rows 21, 22, and 23 are acceptable. These should be selected and pasted in a separate column. Fewer or less than 10 characters are not acceptable. Only numbers and no space.
 

Attachments

  • Annotation_11-09-2020.jpg
    Annotation_11-09-2020.jpg
    41.5 KB · Views: 5
Upvote 0
Here is an Excel formula that will only return the strings made up of exactly 10 numbers (example for entry in cell A2):
Excel Formula:
=IF(AND(ISNUMBER(A2+0),LEN(A2)=10),A2,"")
 
Upvote 0
Here is an Excel formula that will only return the strings made up of exactly 10 numbers (example for entry in cell A2):
Excel Formula:
=IF(AND(ISNUMBER(A2+0),LEN(A2)=10),A2,"")
It works. Thank you so much.
 
Upvote 0
You are welcome.
 
Upvote 0

Forum statistics

Threads
1,214,867
Messages
6,122,002
Members
449,059
Latest member
mtsheetz

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