+ Reply to Thread
Results 1 to 4 of 4

Average with a criteria?

  1. #1
    Forum Contributor
    Join Date
    03-14-2005
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    329

    Average with a criteria?

    Hello.

    I have this table:

    Week Inventory
    746 100
    747 80
    747 60
    747 40
    748 100

    How can I determaine with a function which is the average inventory in week 747?


    /Anders

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try

    =Sumif(A1:A10,747,B1:B10)/Countif(A1:A10,747)

    or

    =Average(IF(A1:A10=747,B1:B10)) confirmed with CTRL+SHIFT+ENTER keys not just ENTER


    where A1:A10 is the week range and B1:B10 is the Inventory range...adjust to suit your data
    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.

  3. #3
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    Here's one way:
    =AVERAGE(IF((A1:A5=747),B1:B5))
    entered as an array formula: Ctrl+Shift+Enter.

    Or you could do a pivot table.

  4. #4
    Forum Contributor
    Join Date
    03-14-2005
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    329
    Thank you very much!
    This helps alot!

    /Anders

+ 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