Hello All,
I have the following data sets:
Excel 2007
I want to use VBA to automatically flag data in the left table for values under the "Score", "Time", and "Place" columns that fall outside (either below the low value or above the high value) the ranges set for each person in the validation table (Righ-side table). The flag data I want to show by bolding the font and changing the font color to red.
My plan is to use this function to automatically audit my data set for good data integrity. I will have about 10,000+ lines of data so I really prefer to use VBA if possible. I know I could manually set the conditional format but I will be constantly loading new data to the sheet each week and want this feature to automatically flag the "abnormal" data after I paste it.
I have looked at some threads and I think the Find function in VBA will help locate the value, but I don't know how to tie in the ranges and conditional format.
Any help, thoughts, or comments are greatly appreciated!
I have the following data sets:
Excel Workbook | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | Name | Score | Time | Place | Validation Table | Score | Score | Time | Time | Place | Place | |||
2 | Steve | 95 | 3 | 4 | Low | High | Low | High | Low | High | ||||
3 | John | 91 | 3.5 | 5 | Steve | 80 | 100 | 1 | 5 | 8 | 2 | |||
4 | Kevin | 98 | 2 | 3 | John | 75 | 100 | 1 | 4 | 8 | 2 | |||
5 | Dennis | 100 | 1.5 | 1 | Kevin | 90 | 100 | 1 | 6 | 8 | 2 | |||
6 | Rick | 85 | 4.5 | 7 | Dennis | 95 | 100 | 2 | 6 | 8 | 2 | |||
7 | Jeff | 88 | 4 | 6 | Rick | 80 | 100 | 0.5 | 6 | 8 | 2 | |||
8 | Paul | 75 | 5 | 8 | Jeff | 80 | 90 | 0.5 | 6 | 8 | 2 | |||
9 | Peter | 99 | 1.7 | 2 | Paul | 78 | 90 | 0.5 | 6 | 7 | 1 | |||
10 | Robert | 100 | 1.5 | 1 | Peter | 87 | 90 | 2 | 4 | 7 | 1 | |||
11 | Robert | 89 | 90 | 1 | 3 | 7 | 1 | |||||||
Sheet1 |
I want to use VBA to automatically flag data in the left table for values under the "Score", "Time", and "Place" columns that fall outside (either below the low value or above the high value) the ranges set for each person in the validation table (Righ-side table). The flag data I want to show by bolding the font and changing the font color to red.
My plan is to use this function to automatically audit my data set for good data integrity. I will have about 10,000+ lines of data so I really prefer to use VBA if possible. I know I could manually set the conditional format but I will be constantly loading new data to the sheet each week and want this feature to automatically flag the "abnormal" data after I paste it.
I have looked at some threads and I think the Find function in VBA will help locate the value, but I don't know how to tie in the ranges and conditional format.
Any help, thoughts, or comments are greatly appreciated!