+ 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
    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?

  2. #2
    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 ?

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

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,703
    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?

  5. #5
    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

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    so using your latest example, you just need to take value in B17 and divide by COUNTIF of A

    C17: =$B17/COUNTIF($A$17:$A$26,$A17)

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

    Thumbs up

    It works!, I will try to be more precise in future.

    Thanks very much

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,703
    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