+ Reply to Thread
Results 1 to 7 of 7

Highlight Inconsistent Formulas

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Highlight Inconsistent Formulas

    As a followup to my post at http://www.excelforum.com/showthread...t=#post4450869, I'm now trying to color my Inconsistent formulas (those formulas flagged by Excel as being inconsistent with their surrounding formulas. The code I'm using is below, and my problem is down at the bottom, where I check for inconsistent formulas. I want to turn them RED, but for some reason my code is NOT coloring the cell, though I can see the green triangle indicating an inconsistent formula on the cell (see Instructions tab, F27). Any help would be appreciated.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Highlight Inconsistent Formulas

    Two things I see.

    1. You appear to be looking at column A instead of F.
    2. I think you need
    Please Login or Register  to view this content.
    The line
    Please Login or Register  to view this content.
    doesn't work.
    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  3. #3
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Highlight Inconsistent Formulas

    Sorry, double post.

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: Highlight Inconsistent Formulas

    David,

    Thanks so much for pointing out the A vs F, because that helped me spot an error in my methodology. The FORMULA resides on the "Instructions" tab, in Column F, and in the first part of my code I find that (and all other formulas) then list those on my "FormulaList" sheet, in column A. So my code is right to look in ColumnA, but wrong to look in ColumnA for the "inconsistent" part; that check should have been done in this section:
    Please Login or Register  to view this content.
    Okay, back to the drawing board for me. IF I can get back to it this week I'll post my corrected code (unless someone else wants to do that for me?????)

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: Highlight Inconsistent Formulas

    Sorry it took me so long to get back. I've solved the problem. Here's my updated code, and I've also attached a sample workbook for anyone who wants to see it in operation. The code is in the attachment, you'll just have to run the "Wkbook_ListFormulas" macro.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-05-2020
    Location
    India
    MS-Off Ver
    O365
    Posts
    5

    Re: Highlight Inconsistent Formulas

    Hi there,

    I tried using this code to highlight inconsistent formulas (yellow highlighted cells) in attached spreadsheet, but its not highlighting the same. Can anyone pls help.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: Highlight Inconsistent Formulas

    AM333, it IS working. The key point to remember is that the code colors Inconsistent formulas, ie those formulas flagged by Excel as being inconsistent with their surrounding formulas. In the sample you provided Excel didn't flag those formulas as being inconsistent, possibly because there wasn't enough of a pattern to determine that the formula was inconsistent. See the example I posted.

    Also, it's considered bad form to post in an already solved, closed thread. Ideally you'd want to start a new thread. With that said, I don't mind responding, and I hope this helped you with this issue.
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

+ 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] Inconsistent formulas - horizontal Drag
    By avism in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-21-2014, 11:19 AM
  2. [SOLVED] Consistent - inconsistent formulas -- one more problem
    By wolfgang713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-28-2013, 04:17 PM
  3. [SOLVED] Combining consistent and inconsistent formulas - new problem
    By wolfgang713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2013, 04:58 PM
  4. [SOLVED] Combining consistent and inconsistent formulas
    By wolfgang713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2013, 01:53 PM
  5. Replies: 2
    Last Post: 08-12-2012, 08:42 PM
  6. Dragging Down Formulas with Inconsistent Cells
    By rylock in forum Excel General
    Replies: 11
    Last Post: 06-12-2008, 11:44 PM
  7. highlight formulas
    By sisterpete in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-17-2007, 05:34 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