ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how can I eliminate the last character of a cell? (https://www.excelbanter.com/excel-discussion-misc-queries/86725-how-can-i-eliminate-last-character-cell.html)

brantty

how can I eliminate the last character of a cell?
 
I have a database that was imported. Each cell in column A has the data and
a space added at the end. I need a formula to create a new column with the
data from Column A without the additional space.

EX. Presently I have [AAA12345 ]
I would like to show [AAA122345]

Dave Peterson

how can I eliminate the last character of a cell?
 
If it's exactly one character to remove:
=left(a1,len(a1)-1)

If you wanted to get rid of all the leading/trailing/multiple embedded spaces:
=trim(a1)

If you wanted to get rid of all the spaces:
=substitute(a1," ","")





brantty wrote:

I have a database that was imported. Each cell in column A has the data and
a space added at the end. I need a formula to create a new column with the
data from Column A without the additional space.

EX. Presently I have [AAA12345 ]
I would like to show [AAA122345]


--

Dave Peterson


All times are GMT +1. The time now is 11:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com