Ok I'm stuck again. I've been using the Index/Match function and Average/IF function and not sure if I'm going to have to combine the two or what.
So I simplified my data to just show a few examples.
What I want to do is to select
month - cell D28
Department - cell E28
Indicator - cell A27
I want a formula that will then find the average for the
Month
Department
Indicator
Agent Hours (I want to be >50<250)
I also want to be able to change cells A28, A29 and A30 as I have a list. These headings are located in cells G1:L1.
So I have an IF formula in G27 (w/o the agent hours not sure how to include an IF for >50<250 for F2:F24), but I just put in H2:H24 for Accts/Hr.
=AVERAGE(IF(A2:A24=$D$28,IF(B2:B24=$E$28,IF(E2:E24=$A$27,H2:H24))))
Is there a way to replace H2:H24 so it reads what is in cell A29 and finds that in G1:L1 and uses the correct column.
Hope this makes sense and I appreciate any help.
thanks!
Try:
=AVERAGE(IF(A2:A24=$D$28,IF(B2:B24=$E$28,IF(E2:E24=$A$27,IF($G$1:$L$1=A29,G2:L24)))))
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks