+ Reply to Thread
Results 1 to 8 of 8

Count Errors in Whole Workbook

  1. #1
    Forum Contributor
    Join Date
    07-10-2020
    Location
    New Zealand
    MS-Off Ver
    365 personal
    Posts
    302

    Count Errors in Whole Workbook

    Hi

    I need to dermine the number of errors in a workbook either by formula (preferred) or by VBA.

    ege id there are 2 #REF and 3 #value then the value would be 5.

    I am using Excel 5.

    Thank You

    Allister

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

    Re: Count Errors in Whole Workbook

    If you know the range of cells that you want to test then I think the following may work for you. Here I have assumed a range of A1:D7:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This is an array formula and must be entered via CTRL-SHIFT-ENTER

    Let us know if this works for you
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  3. #3
    Forum Contributor
    Join Date
    07-10-2020
    Location
    New Zealand
    MS-Off Ver
    365 personal
    Posts
    302

    Re: Count Errors in Whole Workbook

    Thanks Geoff

    What would the range look like if I wanted to include all the Sheets in the workbook. the number of sheets may increase overtime.

    Allister

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

    Re: Count Errors in Whole Workbook

    First, there's a mistake in my post #2 formula. It needs to be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The explicit coersion (the --) from logical to numeric is needed I think

    I played around with so called 3D references like: Sheet1:Sheet3!A1:D7 but could not get it to work, so the best I can think of for now is to explicitly add the errors from each sheet, like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Do you have too many worksheets for this to be practical?

  5. #5
    Forum Contributor
    Join Date
    07-10-2020
    Location
    New Zealand
    MS-Off Ver
    365 personal
    Posts
    302
    I have about 25 sheets and likely to add and delete sheets.
    Last edited by AliGW; 07-16-2020 at 01:59 AM. Reason: Please don't quote unnecessarily!

  6. #6
    Registered User
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Count Errors in Whole Workbook

    I would suggest to use the Power Query.
    To update your data is by clicking a refresh if you done this more often.

    Hope it helps.

  7. #7
    Forum Contributor
    Join Date
    07-10-2020
    Location
    New Zealand
    MS-Off Ver
    365 personal
    Posts
    302

    Re: Count Errors in Whole Workbook

    Thanks for your suggestion.

    If all sheets have different structures how do I do what you suggest in PQ?

    Thanks

  8. #8
    Forum Contributor
    Join Date
    07-10-2020
    Location
    New Zealand
    MS-Off Ver
    365 personal
    Posts
    302

    Re: Count Errors in Whole Workbook

    On relection i think I will go with a VBA solution - something like one that find & lists the Errors in the workbook but in this case it counts them and outputs to a cell

    Does anyone have such a macro I could use?

    Thank You

+ 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] Count cell formatting errors
    By Jietoh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2018, 04:23 PM
  2. [SOLVED] Excel slowdown using sumproduct to count errors in logs
    By Kefo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-12-2013, 04:58 PM
  3. [SOLVED] Syntax Errors for VBA for Rows count
    By nironto in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2013, 02:04 AM
  4. [SOLVED] Count duplicate text entries and ignore errors
    By raaz00 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-03-2012, 01:41 PM
  5. New Workbook/Cut Errors
    By ultimastryder in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-23-2010, 05:56 PM
  6. Can I turn of all #value! errors in a workbook
    By rkjudy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2010, 01:31 AM
  7. Replies: 4
    Last Post: 01-31-2005, 10:06 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