+ Reply to Thread
Results 1 to 10 of 10

Average If type of function

  1. #1
    Registered User
    Join Date
    04-08-2011
    Location
    Dalhart, Texas
    MS-Off Ver
    Excel 2010, 2003
    Posts
    21

    Average If type of function

    Alright. I'm using Excel 2003 and as far as i know it doesn't have an AVERAGEIF function. But i could use some help getting an average on certain cells if another cell meets a certain criteria?

    For example:
    I have a list of drillers in column B with the corresponding well# in column C and corresponding Pump Test Gallons Per Minute in column D.
    I have the driller i want to see the averages for in H4.

    so i need all of the pump test GPM's averaged if the drillers in column B = H4

    So i thought an AVERAGEIF function might work.
    I've tried something along the lines of =AVERAGE(IF(B4:B212=H4,D4:D212)) but somethings not right.

    Any help would be much appreciated thanks.
    Last edited by quikrich3; 05-12-2011 at 10:23 AM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Average If type of function

    That formula will work if you confirm it with Ctrl+Shift+Enter instead of just Enter.

  3. #3
    Registered User
    Join Date
    04-08-2011
    Location
    Dalhart, Texas
    MS-Off Ver
    Excel 2010, 2003
    Posts
    21

    Re: Average If type of function

    I did CTRL + SHIFT + ENTER and it does an average, but its not correct.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Average If type of function

    Post a small sample file showing what you want - manually enter expected results and note the logic behind how those results are obtained.

  5. #5
    Registered User
    Join Date
    04-08-2011
    Location
    Dalhart, Texas
    MS-Off Ver
    Excel 2010, 2003
    Posts
    21

    Re: Average If type of function

    Here is that sample file. Thanks.
    Attached Files Attached Files

  6. #6
    Forum Contributor day92's Avatar
    Join Date
    04-20-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 360
    Posts
    600

    Re: Average If type of function

    Use this function and drag down...

    =AVERAGEIF(B:B,H4,D:D)

  7. #7
    Registered User
    Join Date
    04-08-2011
    Location
    Dalhart, Texas
    MS-Off Ver
    Excel 2010, 2003
    Posts
    21

    Re: Average If type of function

    I tried it. But it gives an error because i think averageif got added in excel 2007. I'm using excel 2003. But thanks.

  8. #8
    Forum Contributor day92's Avatar
    Join Date
    04-20-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 360
    Posts
    600

    Re: Average If type of function

    Sorry I overlooked that, try this...

    Please Login or Register  to view this content.
    Confirm with CTRL Shift Enter

  9. #9
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Average If type of function

    Another option (to avoid CSE entry)

    =SUMIF(B4:B213,H4,D4:D213)/SUMPRODUCT((B4:B213=H4)*(D4:D213<>""))

  10. #10
    Registered User
    Join Date
    04-08-2011
    Location
    Dalhart, Texas
    MS-Off Ver
    Excel 2010, 2003
    Posts
    21

    Re: Average If type of function

    Hey thanks! I appreciate it.

+ 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