## Complicated Data Validation Criteria

I am trying to limit data input based on complicated criteria.
My goal is to only allow data that is input into each yellow cell column C that meets all 4 criteria:
1) The percentage must be less than or equal the percentage of the category to the left of the entry cell for the Facility Redirected from.
I have a table that has by facility and by category the maximum percentage allowed.
2) The TOTAL percentages in ALL of column C for each category must be less than or equal to the maximum allowed for each category.
For example, let's say that the maximum % for Surgical Center is 80%, then the 2 yellow cells next to the Surgical
Centers must combined total 80% or less.
3) All of the yellow cells must total to 100% or less
4) Each entry must be greater than or equal to zero

Below is my futile attempt to create a formula: (The cell references are to those cells in my real spreadsheet and not in the example)

=AND(VLOOKUP(\$C5,\$AA\$19:\$AB\$22,2,FALSE)<=INDEX(\$AC\$6:\$AF\$16,MATCH(\$B\$2,\$AA\$6:\$AA\$16,0),MATCH(C5,\$AC\$5:\$AF\$5,0)),SUM(\$D\$5:\$D\$9)<>1)

The Vlookup provides the total column C inputs for each category.
The Index-Match provided from a table the maximum allowed for each category per Facility Redirected from.
The Sum is the total of all the input cells in column C.
I did not even attempt
criteria 4 in my formula.

The bottom line is that I could not get it to work.
Can any of you provide me a suggestion of how to build a data validation that meets all of the above criteria? I VERY much appreciate your help.

A                                       B                        C

Category
% Redirected

Facility 1
Endo
8.00%

Facility 2
Surgical Center
35.00%

Facility 3
Surgical Center
48.00%

Facility 4
Spinal
11.00%

Facility 5
Eye
10.00%

## Use the System File Checker tool to repair corrupted or missing system files:

1. Click Start.
2. Type cmd, and then press CTRL+SHIFT+ENTER to open the elevated command prompt (I.e. Command prompt with administrative rights).
3. The User Account Control window should appear, be sure that the action it exhibits is correct, and then press the Continue button.
4. Type or copy paste the below command line into it without quotes:
5. "Sfc /scannow"

## Another Safe way to Repair the Problem: Complicated Data Validation Criteria:

### How to Fix Complicated Data Validation Criteria with SmartPCFixer?

1. You can Download SmartPCFixer here. Install it on your computer. When you open SmartPCFixer, it will perform a scan.

2. After the scan is done, you can see the errors and problems need to be repaired. Click Fix All.

3. The Repair part is done, the speed of your computer will be much higher than before and the errors have been removed. You can also use other functions in this software. Like dll downloading, windows updating and print spooler error repair.