+ Reply to Thread
Results 1 to 4 of 4

Using Sumproduct Not providing same value as Manually Averaging

  1. #1
    Registered User
    Join Date
    06-23-2022
    Location
    London
    MS-Off Ver
    16.62 Mac
    Posts
    2

    Unhappy Using Sumproduct Not providing same value as Manually Averaging

    Hi

    I realise this is a very basic question and that the explanation/answer may be glaringly obvious but I'm still not able to get it.

    Im trying to calculate the average share purchase price of a set of trades and I've tried doing this with 2 different methods that should give the same value but don't.

    Method 1: Sumproduct function multiplying cost price with the amount purchased for all the trades divided by the total amount purchased
    Method 2: Average of the Total amount purchased and the total shares purchased

    Both give different values.

    What am I missing
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux - O365
    Posts
    12,600

    Re: Using Sumproduct Not providing same value as Manually Averaging

    Would it not be
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    instead of =SUMPRODUCT(F6:F23,G6:G23)/G24

  3. #3
    Registered User
    Join Date
    06-23-2022
    Location
    London
    MS-Off Ver
    16.62 Mac
    Posts
    2

    Re: Using Sumproduct Not providing same value as Manually Averaging

    There you go, glaringly obvious indeed. Haven't had my morning coffee I guess. Thanks Pepe !

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux - O365
    Posts
    12,600

    Re: Using Sumproduct Not providing same value as Manually Averaging

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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] IFERROR is providing correct answer but not providing a blank Cell when it should
    By marshallmr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-05-2016, 01:46 PM
  2. [SOLVED] Averaging with SUMPRODUCT
    By 3345james in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2015, 11:18 AM
  3. Complicated averaging-- averaging data that matches certain intervals
    By atung in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-22-2014, 04:19 PM
  4. Sumproduct and averaging date differential
    By Josh_123456 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-21-2014, 01:40 AM
  5. Averaging last 6 parameters using sumproduct
    By Spankyf in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-30-2012, 03:45 AM
  6. Chart providing different results
    By jamesryan in forum Excel General
    Replies: 2
    Last Post: 09-29-2010, 09:52 AM
  7. Providing Toolbars to Workgroup
    By Sprinks in forum Excel General
    Replies: 2
    Last Post: 01-12-2005, 10:06 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