+ Reply to Thread
Results 1 to 3 of 3

Changing Zero values and adding or subtracting small amounts from values in other cells

  1. #1
    Registered User
    Join Date
    09-05-2015
    Location
    San Diego, CA
    MS-Off Ver
    Office 13
    Posts
    2

    Changing Zero values and adding or subtracting small amounts from values in other cells

    Dear Sir / Madam,

    i) I get zero values in some cells when I download live data to an Excel spreadsheet. I would like to replace these zeros with a very low number such as 0.01 by searching all cells in the columns populated by the downloaded data for zero values.

    ii) If two adjacent values in two adjacent columns in the same row are equal (identical) and are subsequently used in a formula using subtraction it generates a zero, which can result in #DIV/0 in subsequent formulas. The equal value in the second column needs to be increased by a very small quantity such as 0.01 in some instances or decreased by 0.01 in other instances. Only a few relevant columns need to scanned and changes made where necessary.

    The relevant columns in the spreadsheet need to be scanned for these two issues and changes made as necessary.

    With Thanks,

    Best Regards,

    Michael
    Moderators note: phone and email info removed
    Last edited by FDibbins; 09-05-2015 at 11:38 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Changing Zero values and adding or subtracting small amounts from values in other cell

    Hi, welcome to the forum

    I have removed your phone no. and email addy, it is never a good idea to put sensitive data on a public forum
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Changing Zero values and adding or subtracting small amounts from values in other cell

    If two adjacent values in two adjacent columns in the same row are equal (identical) and are subsequently used in a formula using subtraction it generates a zero, which can result in #DIV/0 in subsequent formulas.
    Instead of manipulating the values, why not add error-trapping to the subsequent formulas? Your profile indicates you are using office 2013, so perhaps try something like...

    =IFERROR(your-formula,"")
    or...
    =IF(cell-generating-error=0,"",your-formula)

    There are a few others, so there is no need to fiddle with the data

+ 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] HELP - This Macro works on small amounts of data but fails on large amounts
    By BookmanNLA in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-18-2015, 12:40 AM
  2. Replies: 0
    Last Post: 02-14-2015, 09:52 AM
  3. Subtracting from cells with values from VBA userform
    By iPAPKE in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-08-2014, 01:56 AM
  4. HELP Subtracting averages when some cells have no values
    By ztaylor0 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2013, 08:20 PM
  5. Continuous changing cell values - record highest and lowest values in seperate cells
    By attienel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2013, 05:12 PM
  6. Adding a small perturbation to duplicate values in two columns
    By ftcnt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-25-2012, 12:43 PM
  7. Replies: 3
    Last Post: 01-19-2012, 07:02 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