+ Reply to Thread
Results 1 to 16 of 16

Convert function gives different results in Excel 2007 and 2013

  1. #1
    Registered User
    Join Date
    10-01-2015
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    7

    Convert function gives different results in Excel 2007 and 2013

    Hi,
    I'm using the Excel convert function to convert pounds "lbm" in grams "g"
    =convert(1,"lbm","g")
    I get different results on Excel 2007 and Excel 2013
    Is it a setting or an international convention update?
    Can it be modified?
    The conversion results of 1 pound are:
    Excel 2007: 453.59230970
    Excel 2013: 453.59237000
    Thanks!

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Convert function gives different results in Excel 2007 and 2013

    Hi, welcome to the forum.

    I never used 2007, so can't comment on that - all I can tell you is that the 2013 result (which is the same as 2010) is correct. As far as I know, this is hard-coded and can't be changed.

    Edit: the correct result comes from international standards from the 1960s or so, so well before Excel.
    Last edited by Aardigspook; 10-01-2015 at 04:59 PM. Reason: Add comment
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Convert function gives different results in Excel 2007 and 2013

    Are you literally doing this
    =convert(1,"lbm","g")

    Or are you doing
    =convert(A1,"lbm","g")
    Where A1 = 1

    I would guess that A1 is not EXACTLY 1.
    Format A1 to show 15 decimals

    If I put this into A1
    0.999999867061257

    Then the formula returns 453.59230970

  4. #4
    Registered User
    Join Date
    10-01-2015
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    7

    Re: Convert function gives different results in Excel 2007 and 2013

    I wish it would be that simple Jonmo1!
    But no, it is a pure "1", and enter...
    I'm using the formula in a tracking document where we receive truck loads in LBS, and we need to convert those LBS in Grams to use in Dynamics MRP system which uses gram as based unit.
    This tracking document is shared, with all formulas active. We started to note variances in results and found out that, when a user opens it with Excel 2007, Excel shows 1 set of results. When it is opened with 2013, the results are all of by aprox 2 grams. This was validated on 3 different computers.
    I pushed the test a little. Created a brand new book, used the value "1" in A1 and converted in B1, with 2013 version. Emailed the document to a 2007 user. Upon opening, the result is right, 453.59237000, and we can see the formula.
    Then, the 2007 user enters the number 1 in A2, keys in the convert formula in B2, and gets a different result, within the same document! Now, if we change the value in A1 and hit enter, then excel sorts of "refresh" and both results are "wrongly" the same 453.59230970.

  5. #5
    Registered User
    Join Date
    10-01-2015
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    7

    Re: Convert function gives different results in Excel 2007 and 2013

    Thanks Aardigspook,
    Feels like I'll have to update all my users to 2010 or 13, but it feels unreal that there would be that big of a mistake within the Excel code...

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Convert function gives different results in Excel 2007 and 2013

    I can confirm the OP's observation in Excel 2007: =convert(1,"lbm","g") gives 453.592309748811. According to Wikipedia, the correct answer (since the 1960's) should be 453.59237, as given by the 2013 version. As noted, this is hard coded into the function and not the result of any user selectable options. It appears to be an error hard coded into the CONVERT() function in 2007. I would be curious if this error also applies to earlier versions. It has apparently been corrected by 2010. As JonMo indicates, the error is well under 1 ppm (even less than 200 ppb), but it still seems like a careless error.

    Take home message, if the gram-pound conversion factor is critical to your application, and you need this to function correctly in 2007, it might be preferable to not use the CONVERT() function.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    Registered User
    Join Date
    10-01-2015
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    7

    Re: Convert function gives different results in Excel 2007 and 2013

    Thanks for the validation MrShorty!
    I was starting to doubt myself
    You're right, I'll modify our document to use the conversion factor as a numerical data, as oppose to the function.

    Thanks everyone for your time and help
    PS I'm new, should we consider this, resolved?

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Convert function gives different results in Excel 2007 and 2013

    Quote Originally Posted by MrShorty View Post
    I would be curious if this error also applies to earlier versions.
    It's in Excel 2002...

    2002 - 453.592309748811
    2007 - 453.592309748811
    2010 - 453.592370000000
    2013 - 453.592370000000

    I would assume it's also in Excel 2003.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  9. #9
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Convert function gives different results in Excel 2007 and 2013

    You are the thread starter, so, if you feel the question is resolved, then go ahead and mark it solved.

    I personally would be interested if anyone knows the history of this error. Out of curiosity, I put the same function into my old version of Quattro Pro (8), and got the same error. I know that there is a calendar error that got started in early Lotus spreadsheets, and Excel and other spreadsheets perpetuated the error to be compatible with Lotus, which was the dominant spreadsheet in the market at the time. I wonder if this is a similar situation.

  10. #10
    Registered User
    Join Date
    10-01-2015
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    7

    Re: Convert function gives different results in Excel 2007 and 2013

    Thanks Tony!

  11. #11
    Registered User
    Join Date
    10-01-2015
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    7

    Re: Convert function gives different results in Excel 2007 and 2013

    I will leave the post "open" hoping MrShorty will get his answer.
    I'll chage it to solve in a few days.
    Again, thanks everyone!

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Convert function gives different results in Excel 2007 and 2013

    From time to time the Système International d'Unités examines the standard units of measurement and makes adjustments to the definitions as measuring technologies become more accurate. I can't find a history of the definitions of the kilogram which might be at play here if the definition has changed.

    At one time 1 kilogram was the mass of one cubic decimetre of water. Now it is based upon a platinum-iridium mass.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  13. #13
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Convert function gives different results in Excel 2007 and 2013

    Good observation, newdoverman. Further research on Wikipedia notes that the 2013 value seems to be based on the international definition agreed on in 1959 (by the US). The 2007 and earlier value is very close to the 1893/94 definition adopted in the US of 2.20462 or 2.20462234 lbm/kg. Still not sure why microsoft and other spreadsheet programmers/developers would choose the older US definition which was superseded in the 1950's and 60's by the international definition. Maybe there is another definition that they were considering, or perhaps they picked a value and figured that the differences among the definitions was small enough to be insignificant, and they did not deem it important enough to choose the 1950's value.

    References: mostly here, https://en.wikipedia.org/wiki/Pound_%28mass%29 see the "current use" section and the "historic use -- in the united states" section.
    Last edited by MrShorty; 10-01-2015 at 09:08 PM.

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Convert function gives different results in Excel 2007 and 2013

    @ MrShorty
    Your message #9 reminded me of a period during my working career when the International Standards Organization were reviewing many standards used throughout the world in various areas. Being employed in a scientific research organization this was important to many who worked in the organization. I just wondered if mass was one of the items under review.

    An international agreement concerning standards was signed sometime in 1960.

    You did a nice bit of research on this. Congratulations.

    Yesterday I read, was the 30th anniversary of the start of Excel. This makes me think that the value was taken from other spreadsheets of the time.

  15. #15
    Registered User
    Join Date
    10-01-2015
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    7

    Re: Convert function gives different results in Excel 2007 and 2013

    Gentlemen,
    Thank you so much for your help, as well as your knowledge and research.
    I did set the standard for my questions quite high with this one...!
    I hope to intereact with you all soon.

    PS, when I click the "star", is it suppose to change or show that I did?

  16. #16
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Convert function gives different results in Excel 2007 and 2013

    Thank you for the feedback.
    When you click the star at the bottom left of a message, that is to give reputation points to the person who wrote the message. A popup will appear and it has a field where you can add a comment. A short messeage is sent to the person along with the thread title and your handle. It is a type of appreciation for the help.

    The star isn't supposed to do anything if you click the one at the bottom of one of your own messages.

    I hope that helps you.

+ 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] XLSM with excel 2013 does not work with 2007
    By rodich in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-23-2015, 04:40 AM
  2. Just upgraded to excel 2013 from excel 2007 much slower in excel 2013 why?
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-07-2015, 04:25 PM
  3. excel version 2013 and 2007
    By dealer in forum Excel General
    Replies: 3
    Last Post: 06-10-2014, 08:22 AM
  4. [SOLVED] Excel 2007 to 2013 Calendar or DTPicker
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2014, 04:19 PM
  5. Works in Excel 2007, does not work in 2013
    By froggy50 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2014, 06:42 AM
  6. [SOLVED] Excel 2007: How to Convert "5/2/2013" to "May" then subtract a Month so it's "Apr"
    By Golom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-19-2013, 02:00 AM
  7. Replies: 3
    Last Post: 03-31-2010, 11:47 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