Question with regard to Average formula

  • Thread starter Thread starter KingCreole
  • Start date Start date
K

KingCreole

Hi all,

I have a work sheet called 'HSO Front Sheet' and another one called
'HSO Data sheet'. On the front sheet it averages 5 cells from the data
sheet using the following forumla:

='HSO Data sheet'!D4+'HSO Data sheet'!F4+'HSO Data sheet'!H4+'HSO Data
sheet'!J4+'HSO Data sheet'!L4

If no data is contained within the data sheet the cell on the front
sheet returns: #DIV/0!

This then messes up an average of the averages sum i've got elsewhere
:P

I've tried ='HSO Data sheet'!D4+'HSO Data sheet'!F4+'HSO Data
sheet'!H4+'HSO Data sheet'!J4+'HSO Data sheet'!L4,0

but this effects the actual result, ie if the 5 cells in the data sheet
all are set to 5 the average comes out at 4.2

Can anyone advise what forumla i should be using? Many thanks
 
sorry, i copy and pasted the wrong formula, the actual formula being
used is:

=AVERAGE('HSO Data sheet'!E4,'HSO Data sheet'!G4,'HSO Data
sheet'!I4,'HSO Data sheet'!K4,'HSO Data sheet'!M4)
 
KingCreole wrote...
sorry, i copy and pasted the wrong formula, the actual formula being
used is:

=AVERAGE('HSO Data sheet'!E4,'HSO Data sheet'!G4,'HSO Data
sheet'!I4,'HSO Data sheet'!K4,'HSO Data sheet'!M4)

Try

=IF(COUNT('HSO Data sheet'!E4,'HSO Data sheet'!G4,'HSO Data sheet'!I4,
'HSO Data sheet'!K4,'HSO Data sheet'!M4),AVERAGE('HSO Data sheet'!E4,
'HSO Data sheet'!G4,'HSO Data sheet'!I4,'HSO Data sheet'!K4,
'HSO Data sheet'!M4),0)
 
Harlan said:
KingCreole wrote...

Try

=IF(COUNT('HSO Data sheet'!E4,'HSO Data sheet'!G4,'HSO Data sheet'!I4,
'HSO Data sheet'!K4,'HSO Data sheet'!M4),AVERAGE('HSO Data sheet'!E4,
'HSO Data sheet'!G4,'HSO Data sheet'!I4,'HSO Data sheet'!K4,
'HSO Data sheet'!M4),0)

superb. thanks very much! :)
 

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

Back
Top