Link to home
Start Free TrialLog in
Avatar of rtod2
rtod2Flag for United States of America

asked on

remove last character

I need to remove the last character of each cell in a range.  Some cells are already empty.

Assistance is greatly appreciated.
Avatar of zorvek (Kevin Jones)
zorvek (Kevin Jones)
Flag of United States of America image

Use this formula:

   =IF(A1="","",LEFT(A1,LEN(A1)-1))

Kevin
For data in cell A1, put the following formula in cell B1:
=LEFT(A1,LEN(A1)-1)

Open in new window


This creates a string (text) equal to the length of the leftmost text in cell A1, less one.
ASKER CERTIFIED SOLUTION
Avatar of zorvek (Kevin Jones)
zorvek (Kevin Jones)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial