If average

K

Kris

I am trying to figure out a formula for excel to look at two columns and
average the data in one of them if a certain number is in column A.

Example: I want Excel to look at the contents in column A for a range of
cells and if the content is the number 1, I want it to then average the
contents of what is in column D for all rows that have a 1 in column A.

I have tried using IF and average and I just get a return of #value. I
tried =average(if(a1:a20="1",d1:d20)) but it returns the error even when I
enter it as an array formula.

Any help is appreciated.
 
K

Kris

Thank you, it worked this time, don't know what I was doing wrong, but I got
my averages!
 

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