Apply cell coloring from "conditional formatted" numerical cells to associated cells

tbbhatna

New Member
Joined
Jun 29, 2020
Messages
4
Office Version
  1. 365
Platform
  1. Windows
My application is fantasy football.

I rank football players (1-100), and am able to use conditional formatting on the ranking numbers to achieve a green-white-red spectrum from best to worst. How do I apply the same color for each ranking to the cell containing the name of the player, that is right next to the rank cell (see image)?

FF ranks.PNG


I would like to be able to show the rosters of all of the managers in my league. and have each of the players names be shaded based on their ranking, in order to visually appreciate which teams are weaker/stronger at various positions.

I am NOT proficient in VBA, and have mainly only used 'record macros' to do anything more complex than the ribbon tool abilities.

Thanks!
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
How do I apply the same color for each ranking to the cell containing the name of the player, that is right next to the rank cell (see image)?
Just extend your "Applies to " range in your conditional formatting.
 
Upvote 0
Just extend your "Applies to " range in your conditional formatting.

Thanks for the quick response, but by extending the "Applies To" region for my 'column S' rule, to include the corresponding cells in column R, the cells in column R still do not take on the color of the cells in column S.

Am I not executing your suggestion correctly?

Thanks
 
Upvote 0
Post your current data using the boards XL2BB addin (click the XL2BB icon in the reply window it is a link) so that we can copy your data and see the conditional format settings.
Make sure that you select the Conditional formatting checkbox when the pop-up below appears.

1593411495485.png
 
Upvote 0
Post your current data using the boards XL2BB addin (click the XL2BB icon in the reply window it is a link) so that we can copy your data and see the conditional format settings.
Make sure that you select the Conditional formatting checkbox when the pop-up below appears.

View attachment 17174

Thank you for your patient help and support. Here is the data, with conditional formatting, as captured by the XL2BB add-in.

LXG Updated Rosters w Ranks.xlsx
RS
2L. Jackson (3)1
3P. Mahomes (4)2
4D. Prescott (3)3
5R. Wilson (2)4
6K. Murray (NC)5
7D. Watson (3)6
8J. Allen (4)7
9M. Ryan (2)8
10C. Wentz (4)9
11D. Brees (1)10
12T. Brady (1)11
13A. Rodgers (3)12
14M. Stafford (1)13
15D. Jones (NC)14
16B. Mayfield (4)15
17R. Tannehill (NC)16
18B. Roethlisberger (2)17
19J. Goff (2)18
20J. Burrow (R)19
21K. Cousins (2)20
22J. Garoppolo (3)21
23P. Rivers (2)22
24G. Minshew (NC)23
25D. Lock (NC)24
26T. Bridgewater (NC)25
27S. Darnold (3)26
28D. Carr (2)27
29D. Haskins (NC)28
30T.Taylor (NC)29
31R. Fitzpatrick (NC)30
32N. Foles (1)31
33J. Stidham (NC)32
34T. Tagovailoa (R)33
35J. Herbert (R)34
36M. Trubisky (6)35
37J. Winston (NC)36
38C. Newton (3)37
39M. Mariota (NC)38
40T. Hill (NC)39
41A. Dalton (1)40
LXG Summary
Cells with Conditional Formatting
CellConditionCell FormatStop If True
R2:S41Other TypeColor scaleNO
R2:R41Other TypeColor scaleNO
 
Upvote 0
Ok, you appear not to be able to just extend the apply range with Color scale so try the macro below

VBA Code:
Sub colorAdja()
    Dim xCll As Range
    For Each xCll In Range("R2:R" & Range("R" & Rows.Count).End(xlUp).Row)
        xCll.Interior.Color = xCll.Offset(, 1).DisplayFormat.Interior.Color
    Next
End Sub
 
Upvote 0
Thank you for that bit of code! It works well, and since the new colored cell actually has the color as an attribute, I can copy its formatting to be used elsewhere as well.

Thank you!
 
Upvote 0
You're welcome. Just remember that you will need to rerun the macro if you change the data in column S.
 
Upvote 0
Sorry, should also have said welcome to the board :rolleyes: (y)
 
Upvote 0

Forum statistics

Threads
1,215,035
Messages
6,122,785
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top