Removing Last 3 digits from customer ID

etheys

New Member
Joined
Mar 12, 2013
Messages
4
Hello All,

I have an issue with a report I run almost daily. The problem I have is I have a list of Customers and the website we run the numbers from always adds 3 numbers to the end of the Customers, for example. John 101, Tim 201, Steve 301. As you Can see the customers vary in length. Is there a simple way for me to remove the last 3 numbers?

Thanks
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Could this placed in a help cell do the job supposing your Customers are in column A:

=LEFT(A1,LEN(A1)-4)
 
Last edited:
Upvote 0
Hi,

If you can use a "Helper" column, then you can apply the following formula and then copy and paste special values over the original data or just leave the results in column B if you can.

Sample data.....

Excel Workbook
ABC
1DataResult
2John 101John
3Tim 201Tim
4Steve 301Steve
5Bill 401Bill
6Ed 501Ed
7
Sheet1


The formula in B2 needs to be copied down.

I hope that helps.

Ak
 
Upvote 0
If there were no spaces in the names you could also Select the column list, then from the menu "Data":

select "Text to columns"
check "Delimited"
click "Next"
check only "Space"
click "Next"
select the second column
check "Do not import"
click "Finish"
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,568
Messages
6,114,348
Members
448,570
Latest member
rik81h

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