Averaging a row & dividing by only the qty. of cells with a value

C

Carelle

I have a row of five cells - not all cells will be filled in. I need a
formula that will count only the cells that have a value and give me an
average of that number then multiply that average with another cell.

Ex: Cells A1, A3 have values. The formula should add A1:A5 but only divide
by 2 (number of cells with value).

If the total of A1 and A3 is divided by 5, my average will be diluted.

Thanks,
Carelle
 
R

Ron Coderre

Have you tried this?:
=AVERAGE(A1:A5)

The AVERAGE function disregards blanks and text.....

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)
 
R

Ron Coderre

I'm glad I could help.....thanks for the feedback.
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)
 

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

Top