If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
I'm getting the #DIV/0! error
When I'm calculating for a % I entered the IF formula =IF(B10=0,"",B10/C10)
and it worked ok when B10 was 0 but how would you modify this formula if either B10 or C10 were 0? The result can display 0 for my purposes. Thanks. |
#2
|
|||
|
|||
I'm getting the #DIV/0! error
Try it like this...
=IF(OR(B10=0,C10=0),0,B10/C10) -- Biff Microsoft Excel MVP "Reverand Mooney" wrote in message ... When I'm calculating for a % I entered the IF formula =IF(B10=0,"",B10/C10) and it worked ok when B10 was 0 but how would you modify this formula if either B10 or C10 were 0? The result can display 0 for my purposes. Thanks. |
#3
|
|||
|
|||
I'm getting the #DIV/0! error
Try
=IF(B10=0,"",IF(C10=0,0,B10/C10)) If this post helps click Yes --------------- Jacob Skaria "Reverand Mooney" wrote: When I'm calculating for a % I entered the IF formula =IF(B10=0,"",B10/C10) and it worked ok when B10 was 0 but how would you modify this formula if either B10 or C10 were 0? The result can display 0 for my purposes. Thanks. |
Thread Tools | |
Display Modes | |
|
|