dougf1r
asked on
If/Then to color in a cells based on classes
I am wanting to write an "If,Then" statement for the table below. I will be making several more of these similar tables but plan to use the same class ranges and plan to simply copy and paste the If,Then statement to each new table.
The table is a correlation matrix of variables that were calculated and are either correlated against themselves or are to be correlated against other variables. The resulting correlation (represented as R is therefore sometimes negative. To account for this, an absolute value of each cell in the correlation matrix will need to be calculated (i.e. "=IF(ABS(B4)....
The ranges of the class I need to find and then color respectively are 0-0.5, 0.5-0.75, 0.75-0.9, and 0.9 - 0.9999
The colors I would like are 4 different shades of grey but can change this later.
Thanks for your help!
TH-Def-SM-Corr.xlsx
The table is a correlation matrix of variables that were calculated and are either correlated against themselves or are to be correlated against other variables. The resulting correlation (represented as R is therefore sometimes negative. To account for this, an absolute value of each cell in the correlation matrix will need to be calculated (i.e. "=IF(ABS(B4)....
The ranges of the class I need to find and then color respectively are 0-0.5, 0.5-0.75, 0.75-0.9, and 0.9 - 0.9999
The colors I would like are 4 different shades of grey but can change this later.
Thanks for your help!
TH-Def-SM-Corr.xlsx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks! That seems to work fine and I was able to change colors as needed. However, I will be making several (~50-70) of these charts. Is there any way to import/export/save these rules to transfer to a new table? My thought with asking if there was an IF/THEN statement that can handle this is that the statement could then be copied from sheet to sheet.
I Suppose if there isn't a way to copy the rules from sheet to sheet I can use the one you've set up as a working sheet and then copy from there to the final destination
I Suppose if there isn't a way to copy the rules from sheet to sheet I can use the one you've set up as a working sheet and then copy from there to the final destination
Hello,
you can copy B4, then select the new table and use Paste Special - Formats. That will apply the same rules to another range of cells.
cheers, teylyn
you can copy B4, then select the new table and use Paste Special - Formats. That will apply the same rules to another range of cells.
cheers, teylyn
ASKER
Awesome that was very helpful!
cheers, teylyn
Copy-of-TH-Def-SM-Corr.xlsx