Copy only part of a cell (2003 SP3)

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

Copy only part of a cell (2003 SP3)

Post by steveh »

Morning all

I am gathering information from the web using a web queery, on the site the information looks like this 38oC but when it downloads it shows as 38°C, can I copy this to another cell and omit the  without using any code? I have formatted the cell following Hans' suggesting on another topic to 0.00o.
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 only part of a cell (2003 SP3)

Post by sdckapr »

Not with copy but a formula. This will remove the "Â" (presuming the "38°C" is in cell A1, change as desired):
=SUBSTITUTE(A1,"Â","")

But if you are using a custom format with the °C included in the formatting, I would presume that you want the number (which can then be used in calculations) so you want to remove the "°C" as well:
=SUBSTITUTE(A1,"°C","")

Steve

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

Re: Copy only part of a cell (2003 SP3)

Post by steveh »

Hi Steve

Thanks for that off to give it a try now
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