Easy formula but not for me

H

Harvey Waxman

3 columns, A-B-C

I want to calculate the average percentage change from all the items in
A to B but only if C is blank

{IF(C1:C100=""), (SUM(A1:A100)/SUM(B1:B100))-1)}

I know this is wrong but you get the idea.
 
M

macropod

Hi Harvey,

Try:
=AVERAGE(IF((C1:C100="")*(B1:B100<>0),1-A1:A100/B1:B100))
as an array formula.

Note: I've added a test to exclude entries where B1:B100=0, otherwise these will cause an error.
 
H

Harvey Waxman

macropod said:
Try:
=AVERAGE(IF((C1:C100="")*(B1:B100<>0),1-A1:A100/B1:B100))
as an array formula.

Well done. The last calculation needed to be (A1:A100/B1:B100)-1 to
avoid a negative number but the rest was a great help.

There seem to so many different ways to do calculations. Do you have a
favorite resource for these formulas?

Thanks
 

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