+ Reply to Thread
Results 1 to 6 of 6

Using ln() function produces strange results

  1. #1
    Registered User
    Join Date
    07-25-2018
    Location
    NY
    MS-Off Ver
    365
    Posts
    7

    Using ln() function produces strange results

    I hope this makes some sense. I'm using ln(c4/c5) and the value of that formula comes out correct. But when I reference that number later in the forumla (c2*c3*c6) (c6 is the ln() formula) I get a larger number than I expected. So ln(c4/c5) is .389, and my formula is 345*9.807*.389, which should be 1316. When I plug the numbers in as a cell reference I get 1318.

    So to summarize:

    345*9.807*389 = 1316
    (c2*c3*c6) = 1318

    Why am I getting different numbers?
    Last edited by OGAngryHulk; 07-25-2018 at 05:29 PM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Using ln() function produces strange results

    What are the values in C4 and C5?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    07-25-2018
    Location
    NY
    MS-Off Ver
    365
    Posts
    7

    Re: Using ln() function produces strange results

    Actually, I wrote the formula wrong, its (c2*c3*c6). Now the values in c4 and c5 are 3.1 and 2.1 so that formula would be ln(3.1/2.1)

  4. #4
    Registered User
    Join Date
    07-25-2018
    Location
    NY
    MS-Off Ver
    365
    Posts
    7

    Re: Using ln() function produces strange results

    Here are the actual numbers
    c2 345
    c3 9.807
    c4 3.1
    c5 2.1
    c6 0.389
    c7 1318

    C7 is the total of c2*c3*c6

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Using ln() function produces strange results

    Looks like a rounding issue.

    When I have 3.1 in C4 and 2.1 in C5 I get 0.389464767 from LN(C4/C5).

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Using ln() function produces strange results

    as above

    C
    D
    E
    F
    1
    =C2*C3*C6 =LN(C4/C5)
    2
    345
    1317.720934
    0.389464767
    3
    9.807
    4
    3.1
    5
    2.1
    6
    0.389464767

+ 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. Conditional StDev Produces Erroneous Results
    By mjcarman01 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2017, 09:20 PM
  2. Strange NPV Results
    By windpowerfinance in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2017, 05:05 AM
  3. [SOLVED] Offset - same formula produces different results
    By BRISBANEBOB in forum Excel General
    Replies: 4
    Last Post: 09-23-2016, 07:40 PM
  4. Replies: 8
    Last Post: 06-07-2016, 11:28 AM
  5. [SOLVED] Formula produces unexpected results
    By furface00 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-04-2014, 02:17 PM
  6. Same vba routine produces different results
    By john1674 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-10-2013, 05:44 AM
  7. visual basic conditional formatting produces strange results
    By Carl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2006, 10:10 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