#1   Report Post  
sony654
 
Posts: n/a
Default divide by 0

if "a2/b2" = .17/0 = 100%, why can't I get in a formula, instead of #DIV/0!?
Thanks - Tom
--
Sony Luvy
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Because you can't divide by zero, that is what the error says as well


--
Regards,

Peo Sjoblom


"sony654" wrote in message
...
if "a2/b2" = .17/0 = 100%, why can't I get in a formula, instead of
#DIV/0!?
Thanks - Tom
--
Sony Luvy



  #3   Report Post  
Chip Pearson
 
Posts: n/a
Default

Sony,

0.17/0 does NOT equal 100%. You can't divide a number by zero.
Use a formula like

=IF(B2=0,100%,A2/B2)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"sony654" wrote in message
...
if "a2/b2" = .17/0 = 100%, why can't I get in a formula,
instead of #DIV/0!?
Thanks - Tom
--
Sony Luvy



  #4   Report Post  
sony654
 
Posts: n/a
Default

Now, what if cell A2 is negative (-), ie. -6, the outcome is -100%. How do I
use the "and" or "or" function to display 100% or -100% depending on the
value in A2?
Thanks for your help on this... Tom

"Chip Pearson" wrote:

Sony,

0.17/0 does NOT equal 100%. You can't divide a number by zero.
Use a formula like

=IF(B2=0,100%,A2/B2)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"sony654" wrote in message
...
if "a2/b2" = .17/0 = 100%, why can't I get in a formula,
instead of #DIV/0!?
Thanks - Tom
--
Sony Luvy




  #5   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Look at the ABS function

--
Regards,

Peo Sjoblom


"sony654" wrote in message
...
Now, what if cell A2 is negative (-), ie. -6, the outcome is -100%. How do
I
use the "and" or "or" function to display 100% or -100% depending on the
value in A2?
Thanks for your help on this... Tom

"Chip Pearson" wrote:

Sony,

0.17/0 does NOT equal 100%. You can't divide a number by zero.
Use a formula like

=IF(B2=0,100%,A2/B2)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"sony654" wrote in message
...
if "a2/b2" = .17/0 = 100%, why can't I get in a formula,
instead of #DIV/0!?
Thanks - Tom
--
Sony Luvy





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I divide a number by another number when there is no divis. Ursula New Users to Excel 1 April 4th 05 04:20 PM
Divide one row over other row I dont wont to divide one number Rick Excel Discussion (Misc queries) 0 March 4th 05 07:13 PM
Divide Ranks into two teams (mathematical guru challenge) Theatre Admin Excel Discussion (Misc queries) 4 February 10th 05 02:15 PM
How do I divide, what would the formula look like? I forgot. Than. Carole Excel Worksheet Functions 3 February 1st 05 08:23 PM
I need to know if there is a way to divide a cell kdwwattn Excel Discussion (Misc queries) 1 January 3rd 05 11:35 PM


All times are GMT +1. The time now is 05:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"