+ Reply to Thread
Results 1 to 2 of 2

Automate Data validation logic

  1. #1
    Registered User
    Join Date
    12-18-2018
    Location
    Alpharetta, GA
    MS-Off Ver
    2016
    Posts
    38

    Automate Data validation logic

    I have an excel file that is exported from the source system on a recurring basis where I do manual validation across cells (sample file attached) and it is very tedious and time consuming so I was wondering if there is a way to build in the logic I use for my validation into Excel, whether it’s a formula or Data Validation or Power Query…..anything that can help automate this validation. Thank you in advanced! Help would be much appreciated!

    Associations tab outlines which the field and value associations. Ex. The Sales unit only has 2 division: Account Management and Executive)

    Not Clean tab is the tab that has the raw data which the user has input in the source system. This data needs to be mapped against the "Associations" tab to identify the cells that do not align with the associations. Ex. Since the Sales unit only has 2 division: Account Management and Executive, it should identify Column C3 because "PR" is not a Sales unit.

    Clean tab is the final result I have after manually making the changes
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Automate Data validation logic

    This could be solved using composites (two key strings concatenated together) and MATCH.

    On the association sheet, I made a column in each table that contains the valid parings.

    On the Not Clean Sheet, I concatenated the strings and used match to see if they existed in the lookup tables. =ISNUMBER(MATCH([@Unit]&":"&[@Division],Table_Association[Composite],0)).

    Match returns the row number on which the value is found or #N/A! if the value is not found on the list. Wrapping the expression in ISNUMBER turns it into True / False.

    I applied conditional formatting to shade the cells. You can hide the helper columns if you wish.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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] Data validation with logic
    By nagesh.tvsr in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-20-2021, 07:10 AM
  2. [SOLVED] Cell Validation with IF Logic VBA
    By Gtrtim112 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-15-2020, 09:34 AM
  3. [SOLVED] How to automate data validation inside a table?
    By gerotutu in forum Excel General
    Replies: 2
    Last Post: 01-29-2017, 09:53 PM
  4. Automate conversion of rows to coumns using a certain logic.
    By EXCEL_MANIAC in forum Excel General
    Replies: 2
    Last Post: 09-26-2015, 01:04 PM
  5. Validation value cell update logic
    By shelby_335 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-08-2015, 08:21 PM
  6. [SOLVED] Automate pop-up error message for data validation purposes
    By karl8695 in forum Excel General
    Replies: 2
    Last Post: 07-21-2014, 07:08 AM
  7. [SOLVED] Need a formula to automate an Indirect Cell Validation
    By jrtulare185 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-11-2012, 01:42 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