Percentages in Excel

A

Allan H

I have a worksheet in excel where a single column which can be up to 1000
lines long contains a mixture of numbers and percentages. Depending on
whether the figure in the column is a number or a percentage, I need to
multiply the figure by either 1 or 100. Sounds simple, but I cant find any
way to make excel recognise is it a real number, or is it a percentage. You
dont seem to be able to look for the % sign, cant use ISNUMBER because both
are seen as numbers. Can anyone help please, I am getting deperate
 
N

Niek Otten

Percentages are fractions. 25% is 0.25, formatted as percentage.
So a test for <1 might be what you need, if numbers will not be smaller than 1 and percentages not greater than 100

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

|I have a worksheet in excel where a single column which can be up to 1000
| lines long contains a mixture of numbers and percentages. Depending on
| whether the figure in the column is a number or a percentage, I need to
| multiply the figure by either 1 or 100. Sounds simple, but I cant find any
| way to make excel recognise is it a real number, or is it a percentage. You
| dont seem to be able to look for the % sign, cant use ISNUMBER because both
| are seen as numbers. Can anyone help please, I am getting deperate
 
N

Niek Otten

You can also test for % format using =CELL(A1,"format")
If the result starts with a P it is formatted as %

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

|I have a worksheet in excel where a single column which can be up to 1000
| lines long contains a mixture of numbers and percentages. Depending on
| whether the figure in the column is a number or a percentage, I need to
| multiply the figure by either 1 or 100. Sounds simple, but I cant find any
| way to make excel recognise is it a real number, or is it a percentage. You
| dont seem to be able to look for the % sign, cant use ISNUMBER because both
| are seen as numbers. Can anyone help please, I am getting deperate
 
P

Pete_UK

Presumably, your percentages are all fractions (i.e. less than 1,
unless you have values like 120%), and your other numbers are greater
than 1, so you could use this to decide what you multiply with:

=IF(A1>1,A1, A1*100)

Copy down as required

Hope this helps.

Pete
 
A

Allan H

Niek,
Thanks for the prompt reply, however, here's the rub, the percentages can be
greater than 100%. All was working fine until people and departments messed
me up by overperforming by a large chunk. I have now started to go round in
circles trying to get over the <> tests
Allan
 
A

Allan H

Niek

Brilliant, I tried that, and it is actually =Cell("format",A1), but that is
perfect, many thanks.
 
A

Allan H

Pete,

As you will see from the exchange with Niek it can be greater than a hundred
%, but he has come up with a good answer that should do the job for me.
Thanks for your help

Allan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top