AD_Taylor
Well-known Member
- Joined
- May 19, 2011
- Messages
- 687
Hi,
I am trying to do some colour coding based on GCSE/KS3 levels that are entered. There is one column, column J, that stores a students target grade. The other columns (about 10) should reference that column to see whether their grade is higher or lower and colour accordingly.
As Excel doesn't like comparing 2 strings together, I have 2 lookup tables that give each grade a relevant point score, 1 for KS3 and 1 for GCSE. These point scores are then compared to each other to get a reference for the colour coding.
The problem is with all the error checking and point score comparisons the formula has become very long. So long in fact that it doesn't even seem to want to paste into the conditional formatting box.
I've tried the formula in a cell on the sheet and it works from there perfectly. Heres the formula:
If the answer comes out negative i.e. the grade is lower, red colouring should be used and green for a positive result.
I found a thread on here mentioning the use of a named formula/range to help out the size but I couldn't get that to work properly either.
Any help is greatly appreciated!
I am trying to do some colour coding based on GCSE/KS3 levels that are entered. There is one column, column J, that stores a students target grade. The other columns (about 10) should reference that column to see whether their grade is higher or lower and colour accordingly.
As Excel doesn't like comparing 2 strings together, I have 2 lookup tables that give each grade a relevant point score, 1 for KS3 and 1 for GCSE. These point scores are then compared to each other to get a reference for the colour coding.
The problem is with all the error checking and point score comparisons the formula has become very long. So long in fact that it doesn't even seem to want to paste into the conditional formatting box.
I've tried the formula in a cell on the sheet and it works from there perfectly. Heres the formula:
Code:
= IF(AND( LEN(K15) > 0, LEN($J15) > 0), IF( VLOOKUP("yearGrp", settingsLkUp, 2, FALSE) <= 8, IF( OR( ISERROR(VLOOKUP(K15, KS3Pts, 3, FALSE)), ISERROR( VLOOKUP($J15, KS3Pts, 3, FALSE))), 0, VLOOKUP(K15, KS3Pts, 3, FALSE) - VLOOKUP($J15, KS3Pts, 3, FALSE)), IF( OR( ISERROR(VLOOKUP(K15, KS4Pts, 3, FALSE)), ISERROR( VLOOKUP($J15, KS4Pts, 3, FALSE))), 0, VLOOKUP(K15, KS4Pts, 3, FALSE) - VLOOKUP($J15, KS4Pts, 3, FALSE) ) ), 0)
If the answer comes out negative i.e. the grade is lower, red colouring should be used and green for a positive result.
I found a thread on here mentioning the use of a named formula/range to help out the size but I couldn't get that to work properly either.
Any help is greatly appreciated!