+ Reply to Thread
Results 1 to 4 of 4

Hide error value in spreadsheet?

  1. #1
    Registered User
    Join Date
    07-06-2013
    Location
    Florida, US
    MS-Off Ver
    Excel 2003
    Posts
    4

    Hide error value in spreadsheet?

    I have a simple spreadsheet to track my mileage. It has a column calculating miles driven since the last fill-up. The “miles driven” formula is simply =B4-B3 (current odometer reading minus previous odometer reading.)

    Until I input my current odometer reading, the following row’s “miles driven” column displays the previous odometer reading as negative value. Example:
    ROW 2: Current Odometer Reading = 53,000
    ROW 3: Current Odometer Reading = 53,200; Miles Driven = 200
    ROW 4: Current Odometer Reading = blank (awaiting input); Miles Driven displays as -53,200
    ROW 5: Current Odometer Reading = blank (awaiting input); Miles Driven = blank

    How do I hide that negative value & just display a blank cell?

    I know how to keep other types of error values from displaying (zero values, #DIV0!, etc.)
    But I can’t figure out how to hide this single pesky negative! Any ideas?
    Non impediti ratione cogitationis

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Hide error value in spreadsheet?

    Use this as your miles driven formula:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Hide error value in spreadsheet?

    here are a few

    this checks to see if the A2 is greater than zero so you won't get a #DIV/0 error

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    these are very generic answers for your dataset....HTH
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  4. #4
    Registered User
    Join Date
    07-06-2013
    Location
    Florida, US
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Hide error value in spreadsheet?

    Thank you both! I appreciate your clear-cut, simple solutions - exactly what I needed!

+ 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. Can You Hide The Actual Spreadsheet?
    By Fenway55 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2013, 12:40 PM
  2. Excel 2007 : Can I hide a section of a spreadsheet?
    By MSSHANIE in forum Excel General
    Replies: 1
    Last Post: 06-26-2011, 05:45 PM
  3. A button on the spreadsheet to hide cells??
    By telcotech in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2007, 12:14 AM
  4. [SOLVED] How do I hide a formula so it will not show on the spreadsheet?
    By Brenda in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-05-2006, 09:20 AM
  5. [SOLVED] how do you hide the #DIV/0! in a blank spreadsheet?
    By John Gentile in forum Excel General
    Replies: 2
    Last Post: 02-09-2006, 06:10 PM

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