Displaying a % as a number

  • Thread starter Thread starter michael walker
  • Start date Start date
M

michael walker

Hi, First post. I have 2009 sales data in column O and 2008 sales data column
P and the the following formula in column Q = O1/P1 as have formatted it as a
% to show an increase or decease

When the sales data in column o is 0 and p is 0 the result is #DIV/0!
When the sales data in column o is 0 and p is >0 the result is a %

I want the workbook to display a % when column o is >0

If both 0 & P are 0 i want a 0 to be displayed

I appreciate you help

Thanks
Michael
 
Handle the error using ISERROR()

=IF(ISERROR(O1/P1),0,O1/P1)

If this post helps click Yes
 
Handle the error using ISERROR()

=IF(ISERROR(O1/P1),0,O1/P1)

If this post helps click Yes
 
To avoid % sign for zeros..Use the same formula with ISERROR and custom
format the cell to

0.00%;-0.00%;0

If this post helps click Yes
 
To avoid % sign for zeros..Use the same formula with ISERROR and custom
format the cell to

0.00%;-0.00%;0

If this post helps click Yes
 
Thanks, but I have found when I enter amount in column o i still get the
#div?0! message.

eg
 
Thanks, but I have found when I enter amount in column o i still get the
#div?0! message.

eg
 

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

Similar Threads

If condition to find Target 2
4 field lookup 5
Calculated Item causes undue repitition in pivot table 2
If statement 5
Combining Data on two worksheets 2
INDEX and sum 1
Index and #NA 3
Vlookup help 2

Back
Top