ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Why won't my cells change from Text to % or Numbers (https://www.excelbanter.com/excel-discussion-misc-queries/112553-why-wont-my-cells-change-text-%25-numbers.html)

Ezlpo

Why won't my cells change from Text to % or Numbers
 
I have a spreadsheet that was copied from a web page and pasted into Excel.

Each cell shows a percentage. When I go to get an average of a column using
=average(a1:a20) I do not get a result. I get #DIV/0!

I have tried to switch the column to Percentage and to a number. Changing
the number of decimal points has no affect. I have even tried a few of the
customer

If I were to guess. I would say that the problem is the 4 spaces found after
the percentage. So each cell has as an example "100.00% " (minus the
quotation marks).

There are hundreds of cells so deleteing the spaces in each cell is not an
idea I am looking to embrace.

Thanx in advance for the help.


Biff

Why won't my cells change from Text to % or Numbers
 
copied from a web page and pasted into Excel.
If I were to guess. I would say that the problem is the 4 spaces found
after
the percentage. So each cell has as an example "100.00% "


Yep, that's you're problem and copying from a web site could mean those
spaces are not standard spaces but html.

There's a macro at this site that will clean all that garbage out. I do a
lot of copying from the web and this macro saves a lot time.

http://www.mvps.org/dmcritchie/excel/join.htm#trimall

Biff

"Ezlpo" wrote in message
...
I have a spreadsheet that was copied from a web page and pasted into Excel.

Each cell shows a percentage. When I go to get an average of a column
using
=average(a1:a20) I do not get a result. I get #DIV/0!

I have tried to switch the column to Percentage and to a number. Changing
the number of decimal points has no affect. I have even tried a few of the
customer

If I were to guess. I would say that the problem is the 4 spaces found
after
the percentage. So each cell has as an example "100.00% " (minus the
quotation marks).

There are hundreds of cells so deleteing the spaces in each cell is not an
idea I am looking to embrace.

Thanx in advance for the help.




Ezlpo

Why won't my cells change from Text to % or Numbers
 
Thanx, that is exactly what I needed. !!!!

"Biff" wrote:

copied from a web page and pasted into Excel.
If I were to guess. I would say that the problem is the 4 spaces found
after
the percentage. So each cell has as an example "100.00% "


Yep, that's you're problem and copying from a web site could mean those
spaces are not standard spaces but html.

There's a macro at this site that will clean all that garbage out. I do a
lot of copying from the web and this macro saves a lot time.

http://www.mvps.org/dmcritchie/excel/join.htm#trimall

Biff

"Ezlpo" wrote in message
...
I have a spreadsheet that was copied from a web page and pasted into Excel.

Each cell shows a percentage. When I go to get an average of a column
using
=average(a1:a20) I do not get a result. I get #DIV/0!

I have tried to switch the column to Percentage and to a number. Changing
the number of decimal points has no affect. I have even tried a few of the
customer

If I were to guess. I would say that the problem is the 4 spaces found
after
the percentage. So each cell has as an example "100.00% " (minus the
quotation marks).

There are hundreds of cells so deleteing the spaces in each cell is not an
idea I am looking to embrace.

Thanx in advance for the help.





Biff

Why won't my cells change from Text to % or Numbers
 
To make things even better you could put a custom button on one of your
toolbars and assign that macro to the button.

Thanks for the feedback!

Biff

"Ezlpo" wrote in message
...
Thanx, that is exactly what I needed. !!!!

"Biff" wrote:

copied from a web page and pasted into Excel.
If I were to guess. I would say that the problem is the 4 spaces found
after
the percentage. So each cell has as an example "100.00% "


Yep, that's you're problem and copying from a web site could mean those
spaces are not standard spaces but html.

There's a macro at this site that will clean all that garbage out. I do a
lot of copying from the web and this macro saves a lot time.

http://www.mvps.org/dmcritchie/excel/join.htm#trimall

Biff

"Ezlpo" wrote in message
...
I have a spreadsheet that was copied from a web page and pasted into
Excel.

Each cell shows a percentage. When I go to get an average of a column
using
=average(a1:a20) I do not get a result. I get #DIV/0!

I have tried to switch the column to Percentage and to a number.
Changing
the number of decimal points has no affect. I have even tried a few of
the
customer

If I were to guess. I would say that the problem is the 4 spaces found
after
the percentage. So each cell has as an example "100.00% " (minus the
quotation marks).

There are hundreds of cells so deleteing the spaces in each cell is not
an
idea I am looking to embrace.

Thanx in advance for the help.








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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com