so i'm trying to get mroe accurate data out of my reports. I'm looking for the Average of a column excluding anything higher then a certain mark and equaling the column next to it. Not sure if totally possible. Still new to excel
Example.
A B
10 10
15 17
20 21
35 35
40 41
47 47
So say for htis. I want the average of Column A over the A and the Average of B over B. that i have. But over those numbers. I want the Average of Column A excluding anything 35 and over that equals column B. So Average everything but the 35 and 47. ..And the same for Column B. Thanks for any assistance you can provide
Carlos
edit: i'm not stuck on the AverageIf formula if it needs to be changed, i'm all ears..or eyes....
Try:
=AVERAGE(IF((A2:A7<35)+(A2:A7<>B2:B7),A2:A7))
confirmed with CTRL+SHIFT+ENTER not just ENTER
and similarly for column B.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
awesome!! One more thing..since the amount verfies per week. sometimes its 20 ..sometimes its 30...can we add a ">=0" statment? That way i can have it out to 40 and not have to adjust the formula every week? Reall thanks! i never would ahve gotten that.
Edit: By the way, that did exactly what i was looking for!! thanks soo much!!
Last edited by los318; 03-01-2011 at 02:57 PM.
Do you mean?
=AVERAGE(IF(A2:A7>0,IF((A2:A7<35)+(A2:A7<>B2:B7),A2:A7)))
adjusting ranges to suit and re-confirming with CTRL+SHIFT+ENTER
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Exactly it. thanks again for you time!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks