copy cell contents but not special character

steveh
SilverLounger
Posts: 1952
Joined: 26 Jan 2010, 12:46
Location: Nr. Heathrow Airport

copy cell contents but not special character

Post by steveh »

Hi all

I have a cell which returns a temperature, for example 32oC but I need to copy it to another cell to do a calculation which will not do it with the special character. at the moment I have =B13 but can I do something to say =B13 but don't copy the oC. I have tried to do it via the cell formatting but that does not stop it either.

Editted 15:18 to correct type
Steve
http://www.freightpro-uk.com" onclick="window.open(this.href);return false;
“Tell me and I forget, teach me and I may remember, involve me and I learn.”
― Benjamin Franklin

User avatar
sdckapr
3StarLounger
Posts: 392
Joined: 25 Jan 2010, 12:21

Re: copy cell contents but not special character

Post by sdckapr »

If in B13:

=VALUE(SUBSTITUTE(B13,"°C",""))

Steve
Last edited by sdckapr on 13 Oct 2010, 14:29, edited 1 time in total.

User avatar
sdckapr
3StarLounger
Posts: 392
Joined: 25 Jan 2010, 12:21

Re: copy cell contents but not special character

Post by sdckapr »

An alternate method is NOT to put 32°C into the cell, but just 32. You could add a custom format this cell to be:
0°C

and it would remain a number, but display the °C after the rounded value...

Steve

steveh
SilverLounger
Posts: 1952
Joined: 26 Jan 2010, 12:46
Location: Nr. Heathrow Airport

Re: copy cell contents but not special character

Post by steveh »

sdckapr wrote:If in B13:

=VALUE(SUBSTITUTE(B13,"°C",""))

Steve
Thanks for both suggestions Steve, both work fine
Steve
http://www.freightpro-uk.com" onclick="window.open(this.href);return false;
“Tell me and I forget, teach me and I may remember, involve me and I learn.”
― Benjamin Franklin