+ Reply to Thread
Results 1 to 6 of 6

Detecting "errors" in formulas

  1. #1
    Registered User
    Join Date
    01-18-2019
    Location
    Zagreb, Croatia
    MS-Off Ver
    Office 2016
    Posts
    1

    Detecting "errors" in formulas

    Hi everyone, sorry for language misstakes first, but i'll try to do my best to elaborate problem.

    I have some problem with detecting "errors" in formulas.

    I have table with simple formula, example, in cell F6 is "=ROUND(D6*E6;2)".

    How can i check that in that cell F6 are exactly D6 and E6, or to put it other way, how to check that in formula there are cells frome same row that formula is.

    I have large data tables with thousands of rows, and sometimes when copying and moving, and shifting rows, data and all, my formula has "errors" when it multiplys cells from different row.

    I'll put a picture to give example and to be more clear what i'm asking.

    vrdkhv.jpg

    Ok, so "error" in this example is in row 7 and 8. The formula is multiplying wrong cells, cells from differnet rows. How to detect this through the whole sheet.

    Thanks.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2502 Win 11
    Posts
    24,618

    Re: Detecting "errors" in formulas

    crossposted: https://www.mrexcel.com/forum/excel-...-formulas.html

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,692

    Re: Detecting "errors" in formulas

    Hello Vuko32. Welcome to the forum.

    Try Formulas > Trace Dependents.

    The arrows will show all you ask.

    Does that help?
    Dave

  4. #4
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Detecting "errors" in formulas

    Try Formulas > Trace Dependents
    The OP says he has thousands of rows to check so will trace dependents help?

    It looks like the problem is that column-F does not have the same formula all the way down the column, there's subtotals with different formulas every so often, so he can't just copy the formula all the way down the column.

    Perhaps if there was some way to filter on the non-subtotal columns (column-C not blank?) then the right formula could be pasted all the way down the filtered sheet?

  5. #5
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Detecting "errors" in formulas

    There is a worksheet posted at MrExcel.

    Filter on column-C = exclude-blanks then copy F4 and paste down to F13 seems to work, although whether this will work with the full data set isn't clear - is column-C blank if and only if it's a subtotal row?

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,692

    Re: Detecting "errors" in formulas

    Yup! Good points. Didn't read carefully.

    Helper column might work.
    OP has Excel 2016. This should work in 2013 and newer. A helper column with
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    . Filter on TRUE.

    Also this looks promising and a lot simpler. Each Subtotal line has only one or no "." in column A. Filter out the 0s and 1s.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 01-18-2019 at 06:58 PM.

+ 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: 5
    Last Post: 02-05-2019, 12:03 AM
  2. Master Summary sheet to "remember" formulae and not do "REF!" errors? (EXCEL 2003)
    By elizabethchilver in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2016, 07:08 PM
  3. [SOLVED] "ByRef:mismatch" and "Constant Expression Required" Errors
    By Mishil in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-10-2015, 06:47 PM
  4. [SOLVED] Detecting if Font/Format of cell is "Strike Through"
    By EdWoods in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-13-2014, 11:42 PM
  5. Recognize "formulas "result" as "typed data", through and through.
    By gandolff in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2009, 01:30 PM
  6. Replies: 1
    Last Post: 02-15-2005, 08:07 PM
  7. Replies: 0
    Last Post: 02-15-2005, 05:50 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