Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Please help with this special macro

Hi!

All i want is to take the value from the cell to the left from me
then i want to delete the first two sign/cacacters from this cell and take
the newvalue into my cell


hope someone can help

Regards alvin

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Please help with this special macro

=SUBSTITUTE(SUBSTITUTE(A21,"-",""),"+","")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"alvin Kuiper" wrote in message
...
Hi!

All i want is to take the value from the cell to the left from me
then i want to delete the first two sign/cacacters from this cell and take
the newvalue into my cell


hope someone can help

Regards alvin



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Please help with this special macro

Alvin,

Here give this formula a try. Let us say the information with the two
characters at the front of the text is in cell B8, in cell C8 you type this
formula:

=MID(B8,3,LEN(B8))


Or, if you want it in macro form for some reason, you could try this:

ActiveCell.FormulaR1C1 = "=MID(RC[-1],3,LEN(RC[-1]))"
ActiveCell.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False

HTH

Tofer


"alvin Kuiper" wrote:

Hi!

All i want is to take the value from the cell to the left from me
then i want to delete the first two sign/cacacters from this cell and take
the newvalue into my cell


hope someone can help

Regards alvin

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
PASTE SPECIAL w/ Macro Jase Excel Discussion (Misc queries) 7 February 26th 08 06:06 PM
macro to sum special to new sheets. J_J[_2_] Excel Programming 8 May 28th 05 03:45 PM
I need help with creating a special macro . JulianB Excel Worksheet Functions 9 March 4th 05 03:09 PM
Special macro Dave Peterson[_3_] Excel Programming 2 September 7th 04 08:41 PM
Macro to Paste Special MrAlMackay Excel Programming 0 July 17th 03 05:33 PM


All times are GMT +1. The time now is 05:13 PM.

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"