+ Reply to Thread
Results 1 to 19 of 19

Cannot solve simple MATH problem

  1. #1
    Registered User
    Join Date
    11-09-2006
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    200

    Cannot solve simple MATH problem

    Hello!
    I have a very simple math calculation which does not SUM up!!!! No high math involved - only averages....
    Can yo please check the attached sheet? You will see cells which are not equal but THEY SHOULD BE EQUAL...or have I missed something?
    Thank you!)
    Dave
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cannot solve simple MATH problem

    Why do you believe they should be equal?

    Yes you have missed something. You can't, or to be more precise you shouldn't average averages which seems to be what you are trying to do.

    However explain what your data represents and tell us what statistic or effect you are trying to demonstrate.

    Incidentally please update your location. It is often useful when we need to consider dates, times or regional list separators
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Cannot solve simple MATH problem

    Hi,

    Why do you think they should be equal?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Registered User
    Join Date
    11-09-2006
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    200

    Re: Cannot solve simple MATH problem

    thank you because the PRODUCT OF TWO AVERAGES OF TWP SETS OF DATA should be equal to the AVERAGE OF THE PRODUCT OF EACH DATA POINTS IN THESE SUBSETS
    OR NOT?

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Cannot solve simple MATH problem

    No. I dont think they should

    if you had
    A,B
    Please Login or Register  to view this content.
    averaging averages is virtually always bad practice, unless the groups are the same size. I would echo Richard's views

  6. #6
    Registered User
    Join Date
    11-09-2006
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    200

    Re: Cannot solve simple MATH problem

    now I CHANGED THE PERCENTAGES TO THE INTEGERS and it works!
    now sure why?????
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Cannot solve simple MATH problem

    fluke. put some other integers in and it wont work

  8. #8
    Registered User
    Join Date
    11-09-2006
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    200

    Re: Cannot solve simple MATH problem

    and yes I am not averaging averages,,,,

    I am comparing the product of averages AND average of the products...

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cannot solve simple MATH problem

    Quote Originally Posted by zealot View Post
    thank you because the PRODUCT OF TWO AVERAGES OF TWP SETS OF DATA should be equal to the AVERAGE OF THE PRODUCT OF EACH DATA POINTS IN THESE SUBSETS
    OR NOT?
    Not! As Dave has demonstrated with his example.
    In essence you are not taking into account any weighting of the data points.

    But tell us what you data represents/means. Pure numbers /%s are not much help if we don't know the context or indeed what you are trying to demonstrate.

  10. #10
    Registered User
    Join Date
    11-09-2006
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    200

    Re: Cannot solve simple MATH problem

    Quote Originally Posted by davsth View Post
    fluke. put some other integers in and it wont work
    yes this is mystery.....is this some kind of a mathematical paradox? btw I found those working integers by chance..

  11. #11
    Registered User
    Join Date
    11-09-2006
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    200

    Re: Cannot solve simple MATH problem

    those are parameters in a complex model.....which calculates the relative strengths of the sentiment storms affecting the stock markets...

  12. #12
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cannot solve simple MATH problem

    Quote Originally Posted by davsth View Post
    fluke. put some other integers in and it wont work
    or even swap two of the column A numbers around. The average doesn't change but your 'results' do. i.e you are ignoring the weighting factor as I said.

    ...and don't forget to add your location...

  13. #13
    Registered User
    Join Date
    11-09-2006
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    200

    Re: Cannot solve simple MATH problem

    This is the formula:

    ((a+b+c)/3)*((d+e+f)/3) <> ((a*d)+(b*e)+(c*f))/3

  14. #14
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cannot solve simple MATH problem

    Yes. That formula is correct, i.e. the two calculations are NOT equal

    - except in the special case that either a=b=c,c OR d=e=f

    Your point being what exactly?


    ..Location????

  15. #15
    Registered User
    Join Date
    11-09-2006
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    200

    Re: Cannot solve simple MATH problem

    this is the working set which is working but a=b=c this is not true...

    1.00 2.00
    3.00 2.00
    2.00 3.00

    My location is undefined for now...

  16. #16
    Registered User
    Join Date
    11-09-2006
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    200

    Re: Cannot solve simple MATH problem

    someone has mathcad? - can someone SYMBOLICALLY solve the above equations quick and see where the results differ?

  17. #17
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cannot solve simple MATH problem

    Quote Originally Posted by zealot View Post
    this is the working set which is working but a=b=c this is not true...

    1.00 2.00
    3.00 2.00
    2.00 3.00

    My location is undefined for now...
    You've been given all the reasons why your assumptions are wrong.
    For the last time and then I'm out. Your example is NOT working as you believe. Swap 1 & 3 around and you'll see a different result although the average remains the same.

    Why is this so difficult for you to understand and why aren't you accepting what we're saying?

    And why do you think you are a special case and shouldn't declare your location?

  18. #18
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Cannot solve simple MATH problem

    In order for the two equations to be equal

    (a+b+c)/3*(d+e+f)/3 = ((a*d)+(b*e)+(c*f))/3

    (a+b+c)*(d+e+f)/9 = ((a*d)+(b*e)+(c*f))/3

    (a+b+c)*(d+e+f)/3 = ((a*d)+(b*e)+(c*f))

    ((a*d)+(b*e)+(c*f)+(a*e)+(a*f)+(b*d)+(b*f)+(c*d)+(c*e))/3 = ((a*d)+(b*e)+(c*f))

    ((ad)+(be)+(cf)+(ae)+(af)+(bd)+(bf)+(cd)+(ce)) = (3(a*d)+3(b*e)+(c*f))

    ad+be+cf+ae+af+bd+bf+cd+ce = 3ad+3be+3cf

    2ad+2be+2cf-ae-af-bd-bf-cd-ce = 0

    Only if the last line is true will the two equations be equal, which will certainly not necessarily be the case. I imagine there is a more generic approach to this but it has been too long since I did this kind of thing!

  19. #19
    Registered User
    Join Date
    11-09-2006
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    200

    Re: Cannot solve simple MATH problem

    thank you xlnitwit- this is spectacular!)

+ 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. Replies: 4
    Last Post: 02-03-2013, 01:17 AM
  2. Interesting Math Problem to Solve in VBA
    By ExcelFinWizzard in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-22-2012, 02:14 PM
  3. How to solve this math problem?
    By Not Smart in forum Excel General
    Replies: 4
    Last Post: 03-25-2011, 02:35 PM
  4. Excel 2007 : Simple math problem
    By kingbob in forum Excel General
    Replies: 1
    Last Post: 09-10-2009, 03:21 PM
  5. Simple Math Addition
    By ssjody in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2006, 05:12 AM
  6. Replies: 3
    Last Post: 02-16-2006, 07:00 AM
  7. Replies: 1
    Last Post: 01-06-2005, 11:58 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