Excel 2007 Formulae Qestion

Soldato
Joined
17 Jan 2006
Posts
2,890
Location
Dundee
I have a small table which lists the following

Name, Played, Won, Lost, % Average

Now if when doing my calcualtion the player has played 5 game and won none then the average is 0. Excel insists in giving me #DIV/0 error. The formulae I'm using is

=IF(played/won=0,0,played/won)

What i want it to return is

played 1, won 1 =100

played 1 won 0 = 0

Sorry if this is not too clear, any ideas?

Cheers
 
Hi,

You need to use ISERROR with an additional IF to state what to do if in error and what to do if good.

So if A1 (played) = 5
And B1 (Won) = 0
Then in C1 type the formula: =IF(ISERROR(A1/B1),0,A1/B1)
 
Back
Top Bottom