+ Reply to Thread
Results 1 to 7 of 7

Average sales per year - Averageif?

  1. #1
    Registered User
    Join Date
    03-15-2022
    Location
    Australia
    MS-Off Ver
    365
    Posts
    1

    Question Average sales per year - Averageif?

    i am trying to find a formula that will display the average sales per year.

    My data contains:

    COLUMN A = DATE
    COLUMN B = AMOUNT

    I have tried: =AVERAGEIF(A2:A17, "2001", B2:B17)
    Attached Files Attached Files
    Last edited by AliGW; 05-27-2022 at 06:14 AM. Reason: Title changed - please think more carefully about your thread titles in future!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Averageif

    I made a column C with the year

    After that.

    E2 =Averageif($C$2:$C$18,E$2,$B$2:$B$18) and drag to the right.


    I also made a pivot table, with the same data.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    03-01-2022
    Location
    Eire
    MS-Off Ver
    O365
    Posts
    57

    Re: Averageif

    or, without a helper:

    =SUMPRODUCT((YEAR(DATES_)=D$2)*AMOUNT)/SUMPRODUCT(--(YEAR(DATES_)=D$2))

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,421

    Re: Average sales per year - Averageif?

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,421

    Re: Average sales per year - Averageif?

    Here's an easy 365 solution:

    =AVERAGE(FILTER(AMOUNT,YEAR(DATES_)=D2))
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: Average sales per year - Averageif?

    Or try:

    =AVERAGE(IF(YEAR(DATES_)=D2,AMOUNT))

  7. #7
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,287

    Re: Average sales per year - Averageif?

    Power Query
    Please Login or Register  to view this content.
    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)

Similar Threads

  1. [SOLVED] Averageif Help
    By atiezzi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2018, 11:21 AM
  2. [SOLVED] AverageIf
    By r3s1n in forum Excel General
    Replies: 1
    Last Post: 03-29-2017, 05:45 AM
  3. [SOLVED] Averageif
    By jemma_d in forum Excel General
    Replies: 2
    Last Post: 03-13-2017, 07:43 AM
  4. Help With =AVERAGEIF
    By hbnathan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2015, 03:02 PM
  5. AverageIf
    By LaserDance in forum Excel General
    Replies: 3
    Last Post: 07-15-2010, 02:46 PM
  6. AverageIf
    By larryg003 in forum Excel General
    Replies: 2
    Last Post: 06-19-2010, 07:27 PM
  7. Excel 2007 : Averageif
    By PaulMc in forum Excel General
    Replies: 6
    Last Post: 09-29-2008, 03:45 AM

Tags for this Thread

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