how do i exclude division by zero....

S

sokevin

Hi.

I want to divide ColumnA by ColumnB.

Howerver columnB includes zeros and texts (letters)

i can exclude zeros by

=if(ColB<>0, A/B, 0)

how do i also exclude division the text.

thanks :)
 
B

Bob Phillips

=IF(AND(B1<>0,ISNUMBER(B1)),A1/B1,"")

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
J

Jason Morin

Oops...use this instead. I need to go home.

=IF(OR(COUNT(A1:B1)<>2,B1=0),"",A1/B1)

HTH
Jason
Atlanta, GA
 
Top