Need a function or some VB code

A

allwork

I need a function to DELETE the rightmost characters from a cell.
RIGHT won't do it - I want to get RID of the rightmost characters, and
LEFT won't work because each cell varies in the number of leftmost
characters. I will need to delete the same number of rightmost
characters, e.g., seven characters.

I am trying to remove the blank space and five-digit item number from
cells containing an item description and its item number.

Anyone have any ideas?

Thanks
 
H

Harlan Grove

allwork said:
I need a function to DELETE the rightmost characters from a cell.
RIGHT won't do it - I want to get RID of the rightmost characters, and
LEFT won't work because each cell varies in the number of leftmost
characters. I will need to delete the same number of rightmost
characters, e.g., seven characters.

=LEFT(x,LEN(x)-7)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top