+ Reply to Thread
Results 1 to 5 of 5

How to Count number of "Error" and "OK" after the word "Instrument" found in table row

  1. #1
    Registered User
    Join Date
    06-27-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    55

    Question How to Count number of "Error" and "OK" after the word "Instrument" found in table row

    Dear Expert,

    My company system will generate some files and put in a specified folder.
    They are 20 files in the same *folder every day.

    What I need to do for these 20 files is to count number of "OK" and number of "Error message" in the sheet.
    Table header*may start from C3 to C6.
    With Instrument, Status .....

    The word "Instrument" may start from Row 4 or even row 5. It is hard to tell

    Row 1, 2 or 3 may have some descriptions about the definition of "Errors" and "OK" and may have few words about the report status on that day.

    So, it is not Okay to count total number of *"Errors" and all "OK" words in the workbook because the comments (in row 1 or 2 or even up to 4) may distort the real figures.

    Table headers*are INSTRUMENT, STATUS, SOZON QUANTITY,SOZON PRICE, GGL QUANTITY,GGL PRICE
    Table header*may start from C3 to C6.
    Some days, may start from Row 4 or even row 5. It is hard to tell.

    Under Instruments, if it is Good deal. It would show the Deal Reference number.

    It is not Good, it would either show Error: Position do not match for XXXXXXXX or show Error: This instrument has a position in GL: XXXXXXXX
    XXXXXX is reference number.
    This error message will occupy whole row.*
    *
    Under Status, if it is Good deal, it would show "OK". If it is not a good deal, Error message will occupy the whole row.
    *
    Is it possible to count number of Error message after the table data starts on row 3 or row 4 ??
    Is it possible to count number of “OK” after the table data starts on row 3 or row 4 ??
    Is it possible to count total number data in the table?

    Thanks indeed. Thanks so much.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: How to Count number of "Error" and "OK" after the word "Instrument" found in table row

    Please Login or Register  to view this content.
    Is it possible to count total number data in the table?
    What counts as data?

  3. #3
    Registered User
    Join Date
    06-27-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: How to Count number of "Error" and "OK" after the word "Instrument" found in table row

    Hi Steve,
    I will test when I get back home. Thanks for help.
    Data ... Maybe .... The number of rows after the word 'instrument' (table header).
    Thanks so much
    Elton

  4. #4
    Registered User
    Join Date
    06-27-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: How to Count number of "Error" and "OK" after the word "Instrument" found in table row

    Hi all,
    I really want to do my myself.
    But I only know the recorder only.
    The scripts above work really well, but outcome is pop-up window.
    Is it possible to show total "Errors" after word "instrument" in the table in J1 cell please?
    Is it possible to show total "OK" after word "instrument" in the table in K1 cell please?
    Is it possible to show total data row after word "instrument" in the table in L1 cell please?
    Thanks always,
    Elton

  5. #5
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: How to Count number of "Error" and "OK" after the word "Instrument" found in table row

    Please Login or Register  to view this content.
    If you would like the totals one row lower:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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