Is there some reason you are not using Excel's conditional formatting to do
this?
GeorgeK
"abcd1234" wrote in
message ...
snip
Hello: I originally posted this in
microsoft.public.excel.worksheet.functions, but have not received any
responses so far ...
I wish to color a column of cells containing numerical values in Column
A, based on the statistical significance (p-values) in Column B. For
example:
-----A---B ---
1 2.00 0.01
2 -5.89 0.004
3 10.05 0.43
If the p-value in Column B is less than 0.05 (p < 0.05), then I want to
color the cell in Column A in the same row (adjacent cell) according to
the code pasted below.
If the p-value is equal to or greater than 0.05 (p = 0.05), then I
want to leave the adjacent cell (Column A) uncolored.
--
abcd1234
------------------------------------------------------------------------
abcd1234's Profile:
http://www.excelforum.com/member.php...o&userid=32376
View this thread: http://www.excelforum.com/showthread...hreadid=521381
snip