I would like to write a IF statement that says if a value in Column Q is greater then 5%, then calculate for each column (R:AQ) the average of those rows with a value greater than 5% in Column Q.
I would like to write a IF statement that says if a value in Column Q is greater then 5%, then calculate for each column (R:AQ) the average of those rows with a value greater than 5% in Column Q.
Last edited by rhudgins; 04-13-2010 at 01:28 PM.
Do you mean?
In Q18:
=AVERAGE(IF($Q$2:$Q$13>5%,Q$2:Q$13))
confirmed with CTRL+SHIFT+ENTER not just ENTER and copied across all columns.
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Thanks that works but is there a way to do it without CTRL+SHIFT+ENTER because when I hit F2 on the value it returns #VALUE
Try:
=SUMIF($Q$2:$Q$13,">5%",Q$2:Q$13)/COUNTIF($Q$2:$Q$13,">5%")
The second formula is much better but instead of having 5% embedded in the formula I would like to have it in a seperate cell so that I can change it to 4%, 3%, 2% or what ever other number I chose. When I try to replace the ">5%" with ">$M$17$" the formula will not work. Can this be fixed? Thanks so much.
Try
=SUMIF($Q$2:$Q$13,">"&$M$17,Q$2:Q$13)/COUNTIF($Q$2:$Q$13,">"&$M$17)
Perfect. Thanks for all of your help!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks