Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Delete "+" character in last cell

Hi all,

I am having a bit of trouble trying to remove the "+" sign from the
last cell with data in column A.

Column A is variable in terms of how many rows of data are present but
the number format is always 18 digits and the "+" sign

I have modified some macros found here to find the last cell ok but I
am lost on how to delete the "+" sign from the last cell only.

Would appreciate if someone could point me in the right direction.

Regards,
Dean

My data is set out like this:

HHxxxxx+
000000001100000001+
000000001100500001+
000000001101000001+
000000001102000001+
000000001102500001+
etc
etc
etc

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Delete "+" character in last cell

Dean:

Dim rLast As Range

rLast = Sheet1.Range("A65536").End(xlUp)

rLast.Value = Left$(rLast.Value, Len(rLast.Value)-1)


--
Dick Kusleika
MVP-Excel
www.dailydoseofexcel.com

Ledge wrote:
Hi all,

I am having a bit of trouble trying to remove the "+" sign from the
last cell with data in column A.

Column A is variable in terms of how many rows of data are present but
the number format is always 18 digits and the "+" sign

I have modified some macros found here to find the last cell ok but I
am lost on how to delete the "+" sign from the last cell only.

Would appreciate if someone could point me in the right direction.

Regards,
Dean

My data is set out like this:

HHxxxxx+
000000001100000001+
000000001100500001+
000000001101000001+
000000001102000001+
000000001102500001+
etc
etc
etc



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Delete "+" character in last cell

there are a couple ways,
here's one, just change the range to your needs. i added a ' so you could keep
the entire number.


Sub test()
Dim cell As Range
For Each cell In Range("A1:A200")
cell.Value = "'" & Left(cell.Value, 18)
Next

End Sub


--


Gary


"Ledge" wrote in message
oups.com...
Hi all,

I am having a bit of trouble trying to remove the "+" sign from the
last cell with data in column A.

Column A is variable in terms of how many rows of data are present but
the number format is always 18 digits and the "+" sign

I have modified some macros found here to find the last cell ok but I
am lost on how to delete the "+" sign from the last cell only.

Would appreciate if someone could point me in the right direction.

Regards,
Dean

My data is set out like this:

HHxxxxx+
000000001100000001+
000000001100500001+
000000001101000001+
000000001102000001+
000000001102500001+
etc
etc
etc



Reply
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
If 5th character="-" delete everything to the left otherwise do no Mike R. Excel Worksheet Functions 6 November 12th 08 10:00 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Excel "Move or Copy" and "Delete" sheet functions dsiama Excel Worksheet Functions 1 December 28th 07 01:57 PM
I need to count occurr. of the character "," in a single cell orchid11652 Excel Worksheet Functions 5 March 26th 07 06:27 PM
Adding "New" "Insert" "Delete" into a workbook to change from data 1 to data 2 etc Bob Reynolds[_2_] Excel Programming 0 March 4th 04 08:52 PM


All times are GMT +1. The time now is 10:04 PM.

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

About Us

"It's about Microsoft Excel"