+ Reply to Thread
Results 1 to 8 of 8

Formula to calculate revenue for certain products (averageif)

  1. #1
    Registered User
    Join Date
    08-20-2020
    Location
    Apeldoorn, The Netherlands
    MS-Off Ver
    MS Office 365
    Posts
    22

    Formula to calculate revenue for certain products (averageif)

    I am looking for a solution to the following problem.

    I have the following columns:

    A Product
    B # Units
    C Price

    I am looking for a function to calculate the average of the total revenue (revenue = column B multiplied by C), for certain products (A).

    If at all possible I would like to avoid adding an extra column to calculate the revenue first (that I know how to do). But I can't figure out a way to do this in one formula for each individual product. Any ideas?

    See attachment for the Excel file.

    Thanks for the help.
    Attached Files Attached Files
    Last edited by rjsnl; 08-20-2020 at 08:21 AM.

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,998

    Re: Average, if, product

    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,998

    Re: Average, if, product

    Wrong post

  4. #4
    Registered User
    Join Date
    08-20-2020
    Location
    Apeldoorn, The Netherlands
    MS-Off Ver
    MS Office 365
    Posts
    22

    Re: Average, if, product

    Thanks, I added a file.

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,998

    Re: Formula to calculate revenue for certain products (averageif)

    H3=IFERROR(AVERAGE(IF($A$2:$A$12=$G3,$B$2:$B$12*$C$2:$C$12)),"")

    Control+Shift+Enter


    Copy down

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,789

    Re: Formula to calculate revenue for certain products (averageif)

    Another option
    =AVERAGE(FILTER($B$2:$B$12,$A$2:$A$12=G3)*FILTER($C$2:$C$12,$A$2:$A$12=G3))

  7. #7
    Registered User
    Join Date
    08-20-2020
    Location
    Apeldoorn, The Netherlands
    MS-Off Ver
    MS Office 365
    Posts
    22

    Re: Formula to calculate revenue for certain products (averageif)

    Thanks a lot, this is very helpful.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,789

    Re: Formula to calculate revenue for certain products (averageif)

    Glad to help & thanks for the feedback.

+ 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] VBA: Product cost average
    By Metrazal in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-06-2019, 05:55 PM
  2. [SOLVED] IF / Search text / Average Value Product
    By adelcap in forum Excel General
    Replies: 5
    Last Post: 03-28-2012, 05:10 AM
  3. weighted average problem, using sum product
    By brotherwo in forum Excel General
    Replies: 8
    Last Post: 10-28-2010, 02:40 PM
  4. Sum product with average
    By a94andwi in forum Excel General
    Replies: 1
    Last Post: 11-07-2009, 10:50 AM
  5. average product
    By blackstar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2007, 12:50 PM
  6. Average Product Cost
    By Dean England in forum Excel General
    Replies: 2
    Last Post: 09-10-2006, 04:04 PM
  7. [SOLVED] Sum/Product/Average of a group of data
    By 0-0 Wai Wai ^-^ in forum Excel General
    Replies: 1
    Last Post: 07-22-2005, 06:05 AM

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