Remove characters before and after, remove zero and add letter

sholleman

New Member
Joined
Mar 2, 2015
Messages
7
These are the formulas I use but would like just one formula to do it all at once.

<colgroup><col span="5"></colgroup><tbody>
This is what I have:

000901000017 00068794 0 CA
000901000024 00014544 0 CA
000901000079 00068796 0 CA
000901002004 00050853 0 CA
000901016315 00068793 0 CA
This is what I want: (only second column, remove zeros in front, add a k in front)

k68794
k14544
k68796
k50853
k68793

<colgroup><col style="width:48pt" width="64"> </colgroup><tbody>
</tbody>

<colgroup><col span="4"></colgroup><tbody>
</tbody>

</tbody>


=RIGHT(A1, LEN(A1)-17)
=LEFT(F2, LEN(F2)-13)
add column of "1" then =I3*K3
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
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

Forum statistics

Threads
1,216,337
Messages
6,130,109
Members
449,558
Latest member
andyamcconnell

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