Extract Data After Last Space

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,089
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all..

how to extract data below after last spaces like this :
<style type="text/css">
table.tableizer-table {
font-size: 12px;
border: 1px solid #CCC ;
font-family: Arial, Helvetica, sans-serif;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #CCC ;
}
.tableizer-table th {
background-color: #104E8B ;
color: #FFF ;
font-weight: bold;
}
</style>




[TABLE="class: tableizer-table"]
<thead>[TR="class: tableizer-firstrow"]
[TH]5010211001 - 1[/TH]
[TH]1[/TH]
[/TR]
</thead><tbody> [TR]
[TD]5010211006 - 12[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]5010211901 - 235[/TD]
[TD]235[/TD]
[/TR]
</tbody>[/TABLE]


anyone help, thanks in advance...

,sst
 
Last edited:

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi muhammad susanto,

Assuming the data starts in cell A2 (change the following to suit), this will do the job:

=VALUE(MID(A2,FIND(" - ",A2)+3,255))

Fill down as required.

Regards,

Robert
 
Upvote 0
Hi muhammad susanto,

Assuming the data starts in cell A2 (change the following to suit), this will do the job:

=VALUE(MID(A2,FIND(" - ",A2)+3,255))
If the leading number is always 10 digits long like in the posted examples, then this simpler formula would also work...

=0+MID(A2,14,99)
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,226
Members
452,620
Latest member
dsubash

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