Data Validations for specific criteria

dougebowl

Board Regular
Joined
Feb 22, 2010
Messages
60
I need code to perform 2 data validations:

Here are the two sheets contained in my Workbook:
Sheet 1 contains 3 colums of dataColumnData Structure
Test Plan IDAOne Value
ProcessesBNo Value OR Single Value OR Concatenated IDs using semi-colon delimiter ";"
ControlsCNo Value OR Single Value OR Concatenated IDs using semi-colon delimiter ";"

Sheet 2 contains 6 columns of dataColumnData Structure
Process IDASingle Value
Process NameBSingle Value
StatusCSingle Value
Control IDDNo Value OR Single Value
Control NameENo Value OR Single Value
StatusFNo Value OR Single Value

First, I need code to first validate if ALL the values on Sheet 1 in columns B and C are Active values
  • Column B determined if "Active" is populated in column C on Sheet 2
  • Column C determined if "Active" is populated in Column F on Sheet 2
This would be looking up the value(s) in Sheet 1 for the corresponding value in Sheet 2 and determining if the value is in an Active Status
If the status is found to be "Inactive", I would like the specific value in column B or C to display in 'Red' Font color

Second, I need code to validate there are no conflicting relationships
  • Sheet 2 basically has the relationships between the Processes and Controls
  • Each row represents a relationship
  • A Process can have many Controls related to it (one-to-many relationship)
  • A Control can only be related to one Process (one-to-one Relationship)

Related Processes and Controls cannot appear in columns B and C on Sheet 1
If this conflict is identified, I would like the font color for the 2 values (the Process and the Control) to be "Dark Green"

Example: Process "123" and Control "A" are listed in columns B and C respectively
Process "123" is related to Controls "A, B, and C"
Therefore Process 123 and Control A would be in "Dark Green" color as this would be considered a conflict.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,214,875
Messages
6,122,037
Members
449,062
Latest member
mike575

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top