Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
DMC DMC is offline
external usenet poster
 
Posts: 3
Default Can I paste in only absolute value of a measure (no units)?

I am trying paste in a large series of values that have a unit of measure
designator attached, therfore, is pasting in a text, rathe than a number.
Example: 120h, where I would like to paste in only 120. Is ther way to
convert text to number, or drop the "h" when pasting?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Can I paste in only absolute value of a measure (no units)?

I cannot think of a Paste trick to do this (would be nice).

Is it always a SINGLE letter on the right?
then use a helper column with =--MID(A1,1,LEN(A1)-1); do a copy followed by
paste special - values. Now the helper column can replace the original
column.
The double negation converts text to number

If there are a limited number of units (say H, KM or DAYS):
=--SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"h",""),"km"," "),"days","")

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"DMC" wrote in message
...
I am trying paste in a large series of values that have a unit of measure
designator attached, therfore, is pasting in a text, rathe than a number.
Example: 120h, where I would like to paste in only 120. Is ther way to
convert text to number, or drop the "h" when pasting?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Can I paste in only absolute value of a measure (no units)?

Is this what you want?

Sub copypart()
range("e6").Value = Left(range("e5"), 3)
End Sub

--
Don Guillett
SalesAid Software

"DMC" wrote in message
...
I am trying paste in a large series of values that have a unit of measure
designator attached, therfore, is pasting in a text, rathe than a number.
Example: 120h, where I would like to paste in only 120. Is ther way to
convert text to number, or drop the "h" when pasting?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 266
Default Can I paste in only absolute value of a measure (no units)?

"DMC" skrev i en meddelelse
...
I am trying paste in a large series of values that have a unit of measure
designator attached, therfore, is pasting in a text, rathe than a number.
Example: 120h, where I would like to paste in only 120. Is ther way to
convert text to number, or drop the "h" when pasting?


Another possibility:

=MAX(IF(ISNUMBER(VALUE(LEFT(A1,ROW(INDIRECT("1:"&L EN(A1)))))),VALUE(LEFT(A1,ROW(INDIRECT("1:"&LEN(A1 )))))))

To be confirmed with <Shift<Ctrl<Enter, also if edited later.

Works with any number of characters in the designator.


--
Best regards
Leo Heuser

Followup to newsgroup only please.



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
absolute paste link BorisS Excel Discussion (Misc queries) 1 December 7th 06 04:36 PM
Paste Linking with Absolute Reference MikeDH Excel Discussion (Misc queries) 6 September 6th 06 06:37 PM
Excel 2003 ~ How to change the default units of measure? Robin Blackwell Setting up and Configuration of Excel 0 February 22nd 06 11:42 AM
Excel 2003 ~ How to change the default units of measure? Robin Blackwell Excel Discussion (Misc queries) 2 February 21st 06 04:53 PM
cut & paste with short cut keys (ctrl C V) with absolute cell refe Modeller Dave Excel Discussion (Misc queries) 1 December 7th 04 11:14 PM


All times are GMT +1. The time now is 06:02 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"