LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Deleting last letter if a cell

What I'd like to do is, if the last letter of what is inputed into a
cell is the "+" symbol. Then delete it.


I have a cell defined by:
Sheet12.Cells(11, 2) = d & "+" + l & "+" + w & "+" + s


Here's what i get fromt that cell.
..5D + 2L + 3W + 2S


if i change it and s = 0 i get
..5D + 2L + 3W +


i want to get
..5D + 2L + 3W


So i was hoping maybe there was a command, to delete a space off the
end of a cell using and IF statement.


IF last letter is a "+" , delete 1-2 spaces of the end of the cell.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting all data in cell if value starts with 3 particular letter Mary Ann Excel Discussion (Misc queries) 6 November 6th 07 05:34 PM
Deleting cell data without deleting formula Tom Hall Excel Discussion (Misc queries) 4 October 29th 06 04:07 PM
how prevent formula in cell from deleting when deleting value???? sh-boom New Users to Excel 1 September 30th 05 06:12 PM
if a cell = a particular letter or even contains that letter Brian Excel Worksheet Functions 3 February 28th 05 05:58 AM
press letter and go 2 entry begin w letter in data validation drop MCP Excel Programming 1 August 28th 04 05:07 PM


All times are GMT +1. The time now is 03:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"