+ Reply to Thread
Results 1 to 10 of 10

DAVERAGE help needed

  1. #1
    Registered User
    Join Date
    07-16-2011
    Location
    STL, MO
    MS-Off Ver
    Excel 2010
    Posts
    10

    DAVERAGE help needed

    Hey everyone...

    So I am working on this project for my information systems class, and I have become stuck on a problem for longer than I would like to admit. In this case study project, we are given a database that features 6 different vendors, the parts they sell, how many they sold to us, how much they sold it for, their A/P terms, shipping terms, and days late (or not late) for each item shipped to us.

    My teacher wants to me find the average days late for each of the 8 vendors using the DAVERAGE function, specifically the weighted average for each vendor. I have created a criteria table, attempted to leave a line blank below the column label in the criteria range so that the entire column would be applied to the average, and specified conditions that should have provided me the correct answer. Yet, every time I perform the function, the answer I am given is 1.36, when it should be .03. I am not sure if I made the criteria table incorrectly, if I am supposed to filter the results, if my field entry is wrong, or WHAT! I basically look like a mixture of this guy and this guy

    Sorry if the answer to my question is painfully obvious. Before yesterday, I could not even tell you what a criteria table is used for. I have read many different online tutorials, and none seem to provide the answer. I have attached the excel spreadsheet that I am working on and the example sheet provided by the instructor. Any help would be GREATLY appreciated.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: DAVERAGE help needed

    Field names need to match exactly, you need Vendor No. in B1.

    Also a good idea to unmerge rows 7 and 8.

    If row 8 goes, then your formula needs to be =DAVERAGE(A7:N101,"Days Late",B1:B2)

    B2 needs to contain just the vendor number as an integer.
    Martin

  3. #3
    Registered User
    Join Date
    07-16-2011
    Location
    STL, MO
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: DAVERAGE help needed

    Ah, okay, well that definitely helped, and my new answer is closer to the one I am looking for, but it is still not figuring the entire column into the equation, just the specific vendor number amount. I am trying to divide -4 by 128, not 15. Do I need to enter a blank line below the column labels in the criteria range?

    Thanks for all the help!

  4. #4
    Registered User
    Join Date
    07-16-2011
    Location
    STL, MO
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: DAVERAGE help needed

    Ah, okay, well that definitely helped, and my new answer is closer to the one I am looking for, but it is still not figuring the entire column into the equation, just the specific vendor number amount. I am trying to divide -4 by 128, not 15. Do I need to enter a blank line below the column labels in the criteria range?

    Thanks for all the help!

  5. #5
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: DAVERAGE help needed

    Confused.

    I guess the 128 comes from the sum of the values in the 'days late' column. As such this should be the numerator and not the denominator when calculating an average?

  6. #6
    Registered User
    Join Date
    07-16-2011
    Location
    STL, MO
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: DAVERAGE help needed

    The 128 should be the denominator. My instructor wants me to find the average days late for each vendor out of the entire amount of days late. The answer I have right now is -0.26667, and I need -.03. I am sure there are other ways I can come to this answer, but for the the project, I have to use the daverage function.

    I'm really not sure what to do. Do I try to make a table? Filter results? Use a sum function???? AHHH

  7. #7
    Registered User
    Join Date
    07-16-2011
    Location
    STL, MO
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: DAVERAGE help needed

    The 128 should be the denominator. My instructor wants me to find the average days late for each vendor out of the entire amount of days late. The answer I have right now is -0.26667, and I need -.03. I am sure there are other ways I can come to this answer, but for the the project, I have to use the daverage function.

    I'm really not sure what to do. Do I try to make a table? Filter results? Use a sum function???? AHHH

  8. #8
    Registered User
    Join Date
    07-16-2011
    Location
    STL, MO
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: DAVERAGE help needed

    annndd just like that, I figured it out. Thanks for all the help mrice!

  9. #9
    Registered User
    Join Date
    07-16-2011
    Location
    STL, MO
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: DAVERAGE help needed

    Another question...I found out the averages for the other vendors by using data tables, but how would I find the average for each individual vendor otherwise?

    Also, I need to use the DMAX function to rank the vendors by the best A/P terms...from highest to lowest. I use the same database, but a different criteria and field...do I need to set up another criteria table?

    Sorry for all the questions. The teacher wants us to "really learn how to do this", so he did not explain how it's done.

  10. #10
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: DAVERAGE help needed

    An other of doing this would be to use the AVERAGEIF or AVERAGEIFS functions. See Excel help for details.

    Sounds like you need an additional criteria table as the criteria will be different.

+ 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