+ Reply to Thread
Results 1 to 8 of 8

Aggregate Formulas

Hybrid View

  1. #1
    Registered User
    Join Date
    03-22-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    47

    Aggregate Formulas

    I uploaded the workbook.

    1. I need to calculate the average prices when quantity in stock is at 20 units and when price is at least $10
    =AVERAGEIFS(E12:E63;B12:B63;"20";E12:E63;">=10")

    I used the above formula and got an error : #DIV/!0
    Please help

    2. I also need to calculate the number 32 oz. Items that has a price of at least $7
    =COUNTIFS(F12:F63;"32 oz";E12:E63;">=7")

    I used the above formula and got 0 which is incorrect


    Please assist with both formulas
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,943

    Re: Aggregate Formulas

    1. You do not have any data with a quantity of exactly 20 and a price >=10. So it divides by zero and produces an error.

    2. Change "32 oz" to "32 oz."
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Aggregate Formulas

    For the average, there are no entries that meet both conditions. There are a couple of cells in column B that =20 but none of the corresponding cells in column E are >=10.

    For the count, you need to add a period after the "oz":

    =COUNTIFS(F12:F63;"32 oz.";E12:E63;">=7")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    03-22-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    47

    Re: Aggregate Formulas

    Thanks a lot, to get the error off what would i have to do since it doesn't meet the condition for average?

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Aggregate Formulas

    This will return a blank instead of any errors...

    =IFERROR(AVERAGEIFS(E12:E63;B12:B63;"20";E12:E63;">=10");"")

  6. #6
    Registered User
    Join Date
    03-22-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    47

    Re: Aggregate Formulas

    Thanks everyone.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Aggregate Formulas

    You're welcome!

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,943

    Re: Aggregate Formulas

    You're welcome! Thanks for the rep, and thanks for marking your thread Solved!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Aggregate forumla help
    By seanyc in forum Excel General
    Replies: 13
    Last Post: 06-15-2012, 02:42 PM
  2. Functions-help for aggregate tab
    By kmsoni in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2011, 03:10 AM
  3. Best way to aggregate?
    By gnome_core in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2009, 04:38 PM
  4. [SOLVED] how do I aggregate dates
    By Johnopp in forum Excel General
    Replies: 6
    Last Post: 03-05-2006, 06:26 PM
  5. [SOLVED] aggregate calculations
    By i_makino@yahoo.com in forum Excel General
    Replies: 0
    Last Post: 05-26-2005, 05:15 PM

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