Text to Value

Wimpie

Board Regular
Joined
Aug 12, 2008
Messages
210
Good day

I am working in a system where i extract information from.
When I do the extraction i get it in the below format wen is paste it into excel (Offce 365)
[TABLE="width: 56"]
<colgroup><col width="74" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2706;"> <tbody>[TR]
[TD="width: 74, bgcolor: #005641"]Value
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]R 8 160,00
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]R 10 890,00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]R990,00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]R690,00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]R 3 760,00
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]R 1 260,00
[/TD]
[/TR]
</tbody>[/TABLE]

I am trying to convert all the amounts to numbers only
Excel does notseem to recognize the format and can not see the spaces between the hundreds and thousands.
If there are sents i would need to see it too.

Any help would be greatly appreciated

Thank you in advance
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I have tried the below
=SUBSTITUTE(B2;" ";"")
&
=TRIM(B2)
Evn tried find and replace, none of these seem to remove the space between the hundreds and housands
 
Upvote 0
Something else to try to remove the space.
=SUBSTITUTE(A1,CHAR(160),"")
 
Upvote 0
a big "THANK YOU"
gaz_chops your formula still gives me #Value !
fluff if i use your formula and multiply by 1 it works 100%, see the below
=SUBSTITUTE(D10;CHAR(160);"")*1
You just saved me hours of work and hassel
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
Strange, it worked for me!

Code:
[TABLE="width: 186"]
<colgroup><col width="99" style="width: 74pt;"><col width="87" style="width: 65pt;"></colgroup><tbody>[TR]
[TD="class: xl63, width: 99"]R 8 160,00[/TD]
[TD="width: 87, align: right"]816000[/TD]
[/TR]
[TR]
[TD="class: xl64"]R 10 890,00[/TD]
[TD="align: right"]1089000[/TD]
[/TR]
[TR]
[TD]890,00[/TD]
[TD="align: right"]89000[/TD]
[/TR]
</tbody>[/TABLE]

But as long as you're sorted :-)
 
Upvote 0
The OP has non-breaking spaces rather than normal spaces.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,186
Members
452,615
Latest member
bogeys2birdies

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