+ Reply to Thread
Results 1 to 6 of 6

weird calculation issue

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    3

    weird calculation issue

    Hi,

    Unfortunately I don't have MS Excel installed in my laptop so the below was created in openoffice. I wasn't sure if people who do not use openoffice would have been been able to open the file so I'm attaching a screenshot of if as it's quite simple really.

    The attached screenshot illustrates a 2 year comparison for 2 products (Product 1 & Product 2), in terms of quantity, total cost and unit price (total cost / quantity). In row 5 I'm calculating the combined quantity, total cost and unit price for each each year.

    Lastly, column H shows the variance in the unit price for product 1 & 2 and the combined too. It's the combined that confuses the hell out of me basically..Why would the combined unit price variance be -93 when the unit price variance for product 1 is -33 and for product 2 is +466? Shouldn't the combined unit price variance fall between these two numbers??

    Any ideas??

    Thanks everyone

    Dimiliv
    Attached Images Attached Images

  2. #2
    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: weird calculation issue

    Quote Originally Posted by Dimiliv View Post
    Shouldn't the combined unit price variance fall between these two numbers??
    No, there is no mathematical reason why it should.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

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

    Re: weird calculation issue

    the unit prices should be between , and they are. as xlnitwit says there is no mathematical reason why it the variances should

  4. #4
    Registered User
    Join Date
    04-11-2012
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: weird calculation issue

    From a mathematical point of view you're right, there isn't, the calculations are correct indeed..but I just can't get my head around how can you have one product the unit price of which was reduced by 33 pounds, and another product the unit price of which increased by 466 pounds and when you calculate the combined variance you get -93?! I would have expected this result if the second product's unit price variance had been reduced too...that (in my head) would have pushed the combined unit price variance even further under 0...in -93... does that make sense at all?

  5. #5
    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: weird calculation issue

    Quote Originally Posted by Dimiliv View Post
    does that make sense at all?
    Not logically, no, I'm afraid, though it is a fairly common confusion when working with averages.

  6. #6
    Registered User
    Join Date
    04-11-2012
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: weird calculation issue

    Quote Originally Posted by xlnitwit View Post
    Not logically, no, I'm afraid, though it is a fairly common confusion when working with averages.
    haha thanks..

+ 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. weird excel issue
    By Code Flunkie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2016, 11:08 AM
  2. Weird Calculation error: First value only?!!!???
    By skyping in forum Excel General
    Replies: 2
    Last Post: 06-23-2015, 03:47 AM
  3. Weird for loop issue
    By JulyMoon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2014, 04:28 PM
  4. Weird issue with protections
    By adamjohnson182 in forum Excel General
    Replies: 3
    Last Post: 04-08-2014, 07:37 PM
  5. Really weird issue with xls being overwritten.
    By swoop99 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-16-2011, 10:54 AM
  6. Weird Sumproduct issue..
    By Timmy Mac1 in forum Excel General
    Replies: 1
    Last Post: 09-05-2006, 01:08 PM
  7. Weird interger calculation
    By Troi-Xanh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-14-2005, 01:06 PM

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