Remove characters before and after, remove zero and add letter

sholleman

New Member
Joined
Mar 2, 2015
Messages
7
[TABLE="width: 320"]
<colgroup><col span="5"></colgroup><tbody>[TR]
[TABLE="width: 256"]
<colgroup><col span="4"></colgroup><tbody>[TR]
[TD="colspan: 4"]This is what I have:

000901000017 00068794 0 CA
[/TD]
[/TR]
[TR]
[TD="colspan: 4"]000901000024 00014544 0 CA
[/TD]
[/TR]
[TR]
[TD="colspan: 4"]000901000079 00068796 0 CA
[/TD]
[/TR]
[TR]
[TD="colspan: 4"]000901002004 00050853 0 CA
[/TD]
[/TR]
[TR]
[TD="colspan: 4"]000901016315 00068793 0 CA
[/TD]
[/TR]
[TR]

[/TR]
[TR]
[TD="colspan: 4"]This is what I want: (only second column, remove zeros in front, add a k in front)

[TABLE="width: 64"]
<colgroup><col style="width:48pt" width="64"> </colgroup><tbody>[TR]
[TD="width: 64"]k68794[/TD]
[/TR]
[TR]
[TD]k14544[/TD]
[/TR]
[TR]
[TD]k68796[/TD]
[/TR]
[TR]
[TD]k50853[/TD]
[/TR]
[TR]
[TD]k68793[/TD]
[/TR]
[TR]

[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[TD="colspan: 5"][/TD]
[/TR]
[TR]
[TD="colspan: 5"]These are the formulas I use but would like just one formula to do it all at once.
[/TD]
[/TR]
</tbody>[/TABLE]


=RIGHT(A1, LEN(A1)-17)
=LEFT(F2, LEN(F2)-13)
add column of "1" then =I3*K3
 
can you show an example of source data and what it should look like afterwards
 
Upvote 0
Sorry, in A1 here is what I have:

000433821494 00114424 0 CA
000433821500 00114425 0 CA
000433821517 00114427 0 CA
000645000670 00234411 0 CA

I only want second column, remove zeros in front, add k to front.
Thank you.
 
Upvote 0

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