+ Reply to Thread
Results 1 to 2 of 2

Average/IF function problem

  1. #1
    Registered User
    Join Date
    04-30-2006
    Posts
    62

    Average/IF function problem

    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!
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    Please Login or Register  to view this content.
    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1