Excel - count numeric digits at beginning of cell

CD2017

New Member
Joined
Feb 21, 2017
Messages
33
Hello,

I need to extract the digits from the beginning of a list of cells, regardless of number of digits.

Example here's the list, this will be in Column A, I need Column B to contain the numbers 1-15.

Any help would be appreciated!

Column_A[TABLE="width: 53"]
<tbody>[TR]
[TD]1:ABC[/TD]
[/TR]
[TR]
[TD]2:ABC[/TD]
[/TR]
[TR]
[TD]3:ABC[/TD]
[/TR]
[TR]
[TD]4:ABC[/TD]
[/TR]
[TR]
[TD]5:ABC[/TD]
[/TR]
[TR]
[TD]6:ABC[/TD]
[/TR]
[TR]
[TD]7:ABC[/TD]
[/TR]
[TR]
[TD]8:ABC[/TD]
[/TR]
[TR]
[TD]9:ABC[/TD]
[/TR]
[TR]
[TD]10:ABC[/TD]
[/TR]
[TR]
[TD]11:ABC[/TD]
[/TR]
[TR]
[TD]12:ABC[/TD]
[/TR]
[TR]
[TD]13:ABC[/TD]
[/TR]
[TR]
[TD]14:ABC[/TD]
[/TR]
[TR]
[TD]15:ABC

Column_B
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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