Results 1 to 6 of 6

Check data for consistency and completeness

Threaded View

  1. #1
    Registered User
    Join Date
    09-18-2014
    Location
    Manila, Philippines
    MS-Off Ver
    Office 2016 for Windows
    Posts
    14

    Check data for consistency and completeness

    Hi,

    I am looking for a macro to check my data for consistency and completeness. Every couple of weeks I get a file with several hundreds to a thousand lines. Cells in the file contain document names, each cell may hold up to 16 document names. Document names differ at the fourth position from the right indicating a series of documents (e.g. L vs R or 0 vs 1 vs 2). Each series may consist of several duplicates indicated by the last two digits of the document number (e.g. ...-L-01 up to ...-L-04). Document names in cells are separated by line breaks. See attached sample file or below:

    623-M-AB-200003-02-1-L-01
    623-M-AB-200003-02-1-L-02
    623-M-AB-200003-02-1-R-01
    623-M-AB-200003-02-1-R-02

    What I would like the macro to be able to do is a bit tricky:
    1) for each duplicate of an L-series there should be a corresponding duplicate of an R-series (if there is ...-L-03, there must also be a document ...-R-03). Same holds for document series 1 vs. 2.
    2) the macro should identify the highest duplicate number in a cell and check that all duplicates with a lower number exist in that cell (if there is ...-1-04, there must be ...-1-03, ...-1-02, ...-1-01 duplicates)
    3) If any of the above checks results in FALSE, write FALSE into the cell in the column next to it or better still,...
    4) ... put the names of the missing documents into the cell next to the one being checked
    5) If any of the document names in a cell does differ in the digits up the the slash indicating the series, put a FALSE or the document name in an output cell two colums to the right.

    To me this is impossible. But I would appreciate even a solution to parts of the problem.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Need assistance writing macro to insert rows based on consistency of data
    By red5030 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-01-2015, 02:38 AM
  2. Check Consistency of data formats
    By Tuanfeng in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2014, 07:26 AM
  3. Replies: 4
    Last Post: 10-05-2011, 01:05 PM
  4. the best functions to determine consistency of data
    By luv2glyd in forum Excel General
    Replies: 2
    Last Post: 01-05-2010, 01:11 PM
  5. data completeness validation?
    By cashflowpro in forum Excel General
    Replies: 4
    Last Post: 06-13-2008, 07:16 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