Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
TWT TWT is offline
external usenet poster
 
Posts: 3
Default When I pastespecialvalue, I get a ' or ^ at the target cell. Why

I created a formular at source cell, such that it shows an empty cell if
there are no values in it: Eg. =IF(D14<"-",COUNTIF(Data!R:R,D14),"")

When I copy the source cell, and do a PasteSpecialValue onto a target
cell, I get a ' in the target cell, instead of it being blank cell.

When I use this on my colleague's excel file, after I do a
PasteSpecialValue, the target cell on his pc shows a blank cell and not the
'.

Why is there a difference and what formatting caused it? I need the target
cell to be blank instead of having a '.

Many thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default When I pastespecialvalue, I get a ' or ^ at the target cell. Why

Those character as known as prefixcharacters.

You can see an apostrophe (') for a left-justified label, " for a
right-justified label, ^ for a centered label, \ for a repeated label, or blank.

I think they were kept so that Excel would be compatible with Lotus 123 files.


Saved from a previous post:

If you want to see what's left in that cell after you convert ="" to values,
try:
Tools|Options|Transition Tab|Toggle Transition Navigation keys on.

Then select one of those cells and look at the formula bar. You'll see an
apostrophe. (Don't forget to toggle the setting to off.)

When I want to clean up this detritus, I do this:

Select the range (ctrl-a a few times to select all the cells)
Edit|Replace
what: (leave blank)
with: $$$$$
replace all

Immediately followed by:
Edit|Replace
what: $$$$$
with: (leave blank)
replace all

In code you could do something like:

Option Explicit
Sub testme()
With ActiveSheet
With .cells 'or a specific range: With .Range("D:D")
.Replace what:="", replacement:="$$$$$", LookAt:=xlWhole, _
SearchOrder:=xlByRows, MatchCase:=False
.Replace what:="$$$$$", replacement:="", LookAt:=xlWhole, _
SearchOrder:=xlByRows, MatchCase:=False
End With
End With
End Sub

TWT wrote:

I created a formular at source cell, such that it shows an empty cell if
there are no values in it: Eg. =IF(D14<"-",COUNTIF(Data!R:R,D14),"")

When I copy the source cell, and do a PasteSpecialValue onto a target
cell, I get a ' in the target cell, instead of it being blank cell.

When I use this on my colleague's excel file, after I do a
PasteSpecialValue, the target cell on his pc shows a blank cell and not the
'.

Why is there a difference and what formatting caused it? I need the target
cell to be blank instead of having a '.

Many thanks in advance.


--

Dave Peterson
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
Excel 2003 -- Copying a formula to Paste Special into column cell FlorencePS Excel Discussion (Misc queries) 2 August 2nd 07 10:38 PM
Target cell reference moves when target is cut and pasted Illya Teideman Excel Discussion (Misc queries) 5 May 31st 07 11:34 AM
Maintain cell formatting in target cell when using Paste bbotzler Excel Discussion (Misc queries) 1 February 27th 07 12:26 AM
Copy and Paste Special (Formulas) pastes cell value if numeric [email protected] Excel Discussion (Misc queries) 2 May 2nd 06 06:24 PM
Copy Paste Special Link Cell Problem cpetta Links and Linking in Excel 6 July 2nd 05 12:58 AM


All times are GMT +1. The time now is 02:38 AM.

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"