ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   comparing a percentage (https://www.excelbanter.com/excel-programming/314271-comparing-percentage.html)

tom1646

comparing a percentage
 
i have a row with a set of percentage values that have to be formatted as
percentages. How do i compare these to boundary figures in an if loop ie. If
.....value 50% then

I have got it working if they are not formatted as % but changing it causes
it not to work. The only way round it i can think of is to create a copy of
the row to be displayed and not fomat that row as %'s, then compare against
that row. That sounds a bit messy though.

Tom

Tom Ogilvy

comparing a percentage
 
if ActiveCell.Value .5 then

--
Regards,
Tom Ogilvy


"tom1646" wrote in message
...
i have a row with a set of percentage values that have to be formatted as
percentages. How do i compare these to boundary figures in an if loop ie.

If
....value 50% then

I have got it working if they are not formatted as % but changing it

causes
it not to work. The only way round it i can think of is to create a copy

of
the row to be displayed and not fomat that row as %'s, then compare

against
that row. That sounds a bit messy though.

Tom





All times are GMT +1. The time now is 10:04 PM.

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