+ Reply to Thread
Results 1 to 13 of 13

AVERAGEIF Function in Excel 2003

Hybrid View

  1. #1
    Registered User
    Join Date
    11-05-2008
    Location
    UK
    Posts
    8

    Question AVERAGEIF Function in Excel 2003

    I have data that i need to average. In Excel 2007 there seems to be a function to do this but it isnt available in 2003 version.

    In column A there is a load number in column B there is a total load time, i need to be able to calculate an average load time.

    Any help much appreciated

    Mat Brown
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    If you mean without using AVERAGEIF... you can use an AVERAGE array, commit using SHIFT + CTRL + ENTER

    =AVERAGE(IF($A$2:$A$16=$A2,$B$2:$B$16))

    Or you could combine a SUMIF & COUNTIF

    =SUMIF($A$2:$A$16,$A2,$B$2:$B$16)/COUNTIF($A$2:$A$16,$A2)

    (or use a Pivot Table)

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Not much going on at Mr.E, I guess...
    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.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    OK I'm going...

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by DonkeyOte View Post
    OK I'm going...
    Didn't mean anything by it.. just noticed that there are lots fewer of your posts there and that you are now an MVP there too (congratulations by the way).

    I do lurk over there every once in a while, so I notice things. I used to post a lot, but don't post much there anymore... mixed reasons....

  6. #6
    Registered User
    Join Date
    11-05-2008
    Location
    UK
    Posts
    8
    Thanks for your reply, I have tried the formula but it returned the same value as in column B not an average load time/load number?

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    confused... in the sample your values for each load number are identical.

    can you post up your file again but this time detail expected results ?

  8. #8
    Registered User
    Join Date
    11-05-2008
    Location
    UK
    Posts
    8
    I would expect the results to be as follows
    Attached Files Attached Files

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699
    That wouldn't be an average by normal standards, usually you total all the entries and divide by the number so you have 5 * 10 hours = 50 hours divided by 5 = 10 hours.

    If every load took 10 hours then the average time is also 10 hours......or is there something here I don't understand?

  10. #10
    Registered User
    Join Date
    11-05-2008
    Location
    UK
    Posts
    8
    Hi I have included more info to try and help in the attachment.

    The load 01000 for eg appears 5 times in the table, the total load time is the sum of all the individual car times.

    The average that i need help with is partly because of how the data presented which is shown in bottom table. To get the average it will need to = the total load time / 5 (number of replicants or times the same load appears in table)

    Thanks for your patience.
    Attached Files Attached Files

  11. #11
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699
    Perhaps try like this (see attached)

    I amended Donkey's formula to only display on the first row of each section, i.e. this formula in C2

    =IF(A1<>A2,AVERAGE(IF($A$2:$A$16=$A2,$B$2:$B$16)),"")
    Attached Files Attached Files

+ 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