Steve;
I really appreciate your help. I have got it to work if I have everything on one
sheet. I had to change the formula a little. I will get around to trying your
method. I'll try and make what I am doing a little clearer
Sheet 1 Column 1 is numbered from 001 to 500 because I have a header row. #001
is in A2, #002 is in A3 and so on. In the adjacent column D* I can have the
value Good, Fair, Poor.
Off to the right I have a set of rows and columns pre numbered
H2 I2 J2..... AA2
001,002,003,....020
021,022.023,.....040 up to 500
My formula in cell H2 with everything on the main sheet looks like this
First Condition
=VLOOKUP($A2,Data,4,FALSE)="Poor" The colour is red
Second Condition
=VLOOKUP($A2,Data,4,FALSE)="Good" The colour is green
Third Condition
=VLOOKUP($A2,Data,4,FALSE)="Fair" The colour yellow
Now, I can leave it all on one sheet. But would like to see if I can get it to
work from 2 sheets, because I am stubborn, also easier for printing purposes
<g>.
--
Regards
Michael Koerner
Michael,
OK! Let's walk through this.
These are the formulas Haldun supplied
First Condition
=VLOOKUP($A2,Data,3,FALSE)="Poor"
Second Condition
=VLOOKUP($A3,Data,3,FALSE)="Good"
Third Condition
=VLOOKUP($A4,Data,3,FALSE)="Fair"
Now with this email opened... so you can come back and copy each
formula.
Go to Excel and select sheet 1.
Select your data range. (from you initial post this should be A1:C1000)
Go to the Insert menu and select Name and select Define.
Enter 'Data' (without the apostrophies) in the top box and click OK
Now select sheet 2.
Select the column that you want to have the format.
(click the D if you want column D)
Go to the 'Format menu and select 'Conditional Formatting'
A dialog box will open and you should see
'Condition 1 with a box under it with 'Cell Value Is'
Click on the (tiny) arrow (just to the right) and select
'Formula Is'
Go back to this email and copy the first formula and paste it into the box
(that is immediately to the right of 'Formula Is'
Click the 'Format' button and select and change Font, Border, Patterns
to your liking. For background color just go to Patterns. Select the
color for this condition and click OK.
Now you should be back to the dialog box.
Click the 'Add' button and you should see 'Condition 2'
Repeat the above process for the second condition.
And repeat again for the third condition.
Post back with your progress.