Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
delete a - if it is the last part of a string
How can I delete a - if it is the last part of a string. I have other - in the string but I only want to delete it if it is the last character. Thanks in advance!! -- deb |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
delete a - if it is the last part of a string
Try this:
=IF(RIGHT(A1,1)="-",LEFT(A1,LEN(A1)-1),A1) Hope this helps. Pete On Sep 21, 1:11*am, deb wrote: How can I delete a - if it is the last part of a string. I have other - in the string but I only want to delete it if it is the last character. Thanks in advance!! -- deb |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Search/Match/Find ANY part of string to ANY part of Cell Value | Excel Worksheet Functions | |||
Use a formula to delete part of a text string? | Excel Worksheet Functions | |||
How do I delete part of a text string in every cell it appears in | Excel Discussion (Misc queries) | |||
Filter on first part of string | Excel Discussion (Misc queries) | |||
Extract Part of String | Excel Worksheet Functions |