extracting numbers from a string

mistersteve

Board Regular
Joined
Aug 18, 2014
Messages
110
Office Version
  1. 365
Hello all, can you please help.
I require to extract all numbers left of the " character

Column A is like:

[TABLE="width: 157"]
<tbody>[TR]
[TD]4"2A "[/TD]
[/TR]
[TR]
[TD]10"2A "[/TD]
[/TR]
[TR]
[TD]13"2A "[/TD]
[/TR]
[TR]
[TD]3"2A "[/TD]
[/TR]
[TR]
[TD]28"2A "[/TD]
[/TR]
[TR]
[TD]6"2A "[/TD]
[/TR]
[TR]
[TD]15"2A "[/TD]
[/TR]
[TR]
[TD]11"2A "[/TD]
[/TR]
</tbody>[/TABLE]

Thanks in advance


EDIT:
i should have stated the characters already extracted have 5 blanks to the left of them, they need to be ignore to allow the formula to work
 
Last edited by a moderator:

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I assume that you mean the numbers to the left of the first " (as there are two " in each entry).
If that is the case, then for an entry in cell A1, try this formula:
Code:
=TRIM(LEFT(A1,FIND("""",A1)-1))
 
Upvote 0

Forum statistics

Threads
1,223,923
Messages
6,175,389
Members
452,640
Latest member
steveridge

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