+ Reply to Thread
Results 1 to 3 of 3

Getting excel to return a zero instead of gobbledygook

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    Wirral
    MS-Off Ver
    Excel 2016
    Posts
    31

    Getting excel to return a zero instead of gobbledygook

    Does anybody know if there's a setting somewhere that stops excel producing the likes of 2.182737657735E-13 instead of a zero? I can convert to number to display a zero, but it's still all that gobbledygook in the cell and it's interfering with my formatting when I want something to happen based upon a cell having a zero value.

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

    Re: Getting excel to return a zero instead of gobbledygook

    The "gobbledygook" as you call it is a result of "floating point error" which is an inherent part of the way computer's do calculations. Here are some links discussing floating point error: https://www.excelforum.com/groups/ma...nd-errors.html

    The usual solution is to nest the existing function inside of an appropriate rounding function. Something like =ROUND(existing function, expected precision).
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    10-26-2012
    Location
    Wirral
    MS-Off Ver
    Excel 2016
    Posts
    31

    Re: Getting excel to return a zero instead of gobbledygook

    Thanks for that.

    Regards

+ 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: 3
    Last Post: 11-02-2018, 11:59 AM
  2. Replies: 9
    Last Post: 06-27-2018, 12:15 PM
  3. Run multiple queries using excel macros and return the output in excel format
    By Vishnu26 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-03-2014, 07:13 AM
  4. Excel VBA Run Crystal Reports from Excel and Return Results
    By infiltraitor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-15-2013, 04:15 PM
  5. Paste graph from Excel into word and return to Excel
    By Claremdh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2012, 05:46 PM
  6. use excel info to search website and return web-result to excel
    By jmhan2209 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2012, 11:45 PM
  7. Excel 2007 sheet UDF return #Name in Excel 2003
    By narenkumar in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-03-2010, 09:30 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