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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

rollis13

Active Member
Joined
Jul 30, 2012
Messages
440
Office Version
  1. 2016
Platform
  1. Windows
Could this placed in a help cell do the job supposing your Customers are in column A:

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

Akashwani

Well-known Member
Joined
Mar 14, 2009
Messages
2,911
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
 

rollis13

Active Member
Joined
Jul 30, 2012
Messages
440
Office Version
  1. 2016
Platform
  1. Windows
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:

Watch MrExcel Video

Forum statistics

Threads
1,133,524
Messages
5,659,315
Members
418,496
Latest member
WHYCHumphrey

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
Top