Extract Data After Last Space

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,102
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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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