Highlighting Specific Cells In Another Table

rackem12

New Member
Joined
Jun 21, 2017
Messages
11
So I have a spreadsheet and I am trying to highlight the team name in the 2nd table, based on the next blank cell in the first table. What I am hoping for is that after i put in the score in table 1, it will change the highlight in table 2 to the next matchup. This will allow me to better see the standings move as I input each result.

Example:
Table1
Home
AwayH-PointsA-PointsH-ResultA-Result
Afghanistan
Albania0.120.62LW
Zimbabwe
Andorra0.740.07WL
Zambia
Angola0.470.22WL
Yemen
Anguilla0.980.00WL
Wales
Antigua & Barbuda

<colgroup><col style="mso-width-source:userset;mso-width-alt:5319; width:112pt" width="150" span="2"> <col style="mso-width-source:userset;mso-width-alt:2190; width:46pt" width="62" span="2"> <col style="mso-width-source:userset;mso-width-alt:2190; width:46pt" width="62" span="2"> </colgroup><tbody>
</tbody>

Table 2
Rank
Team
Conf.GPWLTGBWin %PFPAPTPDRtgRTG Diff
1
Brazil
CONMEBOL66001.0005.410.100.495.311.0000
2Colombia
CONMEBOL66001.0005.330.140.535.190.99990.0000
3Austria
Europe7700-0.51.0006.160.230.615.930.99990.0001
4ChileCONMEBOL66001.0005.050.230.724.820.99980.0001
5ItalyEurope66001.0004.990.250.764.740.99970.0001

<colgroup><col style="mso-width-source:userset;mso-width-alt:1365;width:29pt" width="38"> <col style="mso-width-source:userset;mso-width-alt:4864;width:103pt" width="137"> <col style="mso-width-source:userset;mso-width-alt:4949;width:104pt" width="139"> <col style="mso-width-source:userset;mso-width-alt:1336; width:28pt" width="38" span="2"> <col style="mso-width-source:userset;mso-width-alt:796; width:17pt" width="22" span="2"> <col style="mso-width-source:userset;mso-width-alt:1336;width:28pt" width="38"> <col style="mso-width-source:userset;mso-width-alt:1706;width:36pt" width="48"> <col style="mso-width-source:userset;mso-width-alt:1166; width:25pt" width="33" span="2"> <col style="mso-width-source:userset;mso-width-alt:1934; width:41pt" width="54" span="2"> <col style="mso-width-source:userset;mso-width-alt:2360;width:50pt" width="66"> <col style="mso-width-source:userset;mso-width-alt:2190;width:46pt" width="62"> </colgroup><tbody>
</tbody>

As I stated, My goal is that Wales and Antigua & Barbuda will be highlighted in table 2, but once I input their scores, it will automatically highlight the next matchup in the standings table.

Thanks in advance.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
1. Are the tables tabulated values ot structured tables created with Insert Table?
2. Are the tables in different sheets?
 
Upvote 0
Assumes tabulated data in 2 sheets (Table 1 and Table 2)

One way is to add a formula to determine the row to be highlighted in Table 1 and use conditional formatting in the other sheet

1. In sheet "Table 1"

Excel 2016 (Windows) 32 bit
A
B
C
D
E
F
G
H
1
HomeAwayH-PointsA-PointsH-ResultA-ResultNext Row Formula in Column G
2
AfghanistanAlbania
0.12​
0.62​
LW =IF(AND(COUNTBLANK(C1:F1)=0,COUNTBLANK(C2:F2)>0),"Next","")
3
ZimbabweAndorra
0.74​
0.07​
WL =IF(AND(COUNTBLANK(C2:F2)=0,COUNTBLANK(C3:F3)>0),"Next","")
4
ZambiaAngola
0.47​
0.22​
WL =IF(AND(COUNTBLANK(C3:F3)=0,COUNTBLANK(C4:F4)>0),"Next","")
5
YemenAnguilla
0.98​
0​
WL =IF(AND(COUNTBLANK(C4:F4)=0,COUNTBLANK(C5:F5)>0),"Next","")
6
WalesAntigua & Barbuda
0.5​
0.7​
LW =IF(AND(COUNTBLANK(C5:F5)=0,COUNTBLANK(C6:F6)>0),"Next","")
7
AlbaniaAngolaNext =IF(AND(COUNTBLANK(C6:F6)=0,COUNTBLANK(C7:F7)>0),"Next","")
8
AfghanistanAlbania =IF(AND(COUNTBLANK(C7:F7)=0,COUNTBLANK(C8:F8)>0),"Next","")
9
Sheet: Table 1


2. Select column B in sheet "Table 2" \ Conditional Formatting \ use formula \ this formula

=COUNTIFS('Table 1'!A:A,B1,'Table 1'!G:G,"Next")+COUNTIFS('Table 1'!B:B,B1,'Table 1'!G:G,"Next")

Excel 2016 (Windows) 32 bit
A
B
1
RankTeam
2
1​
Brazil
3
2​
Colombia
4
3​
Austria
5
4​
Chile
6
5​
Italy
7
6​
Afghanistan
8
7​
Zimbabwe
9
8​
Zambia
10
9​
Yemen
11
10​
Wales
12
11​
Albania
13
12​
Andorra
14
13​
Angola
15
14​
Anguilla
16
15​
Antigua & Barbuda
Sheet: Table 2
 
Upvote 0
Yongle,

Thanks for the reply. They next function worked like a charm but the conditional formatting seems to be stuck highlighting the wrong cell. For example, the next line is showing up for my Columbia vs Swaziland match up, but yet it is highlighting Ireland and Comoros for some reason.

they tables are on the same sheet, with a buffer in between.
 
Upvote 0
the tables are on the same sheet, with a buffer in between
This is what is causing the problem - Excel is finding things in the wrong table!

I need the row numbers..
Table 1 - Header row
Table 1 - Last row
Table 2 - Header row

Are you familiar with named ranges?
 
Last edited:
Upvote 0
Somewhat familiar with named ranges. May need a crash course.

I keep the results and standings on the same sheet in so that way I don't have to keep going back and forth to see the standings as they update.
 
Upvote 0
and the row numbers ???
Table 1 - Header row
Table 1 - Last row
Table 2 - Header row
 
Upvote 0
Sorry. Forgot to add.

The headers are all in row 1. the current last row for the entire table is 833 (but will get longer as I add more matches). The current match I am working on (where next is being shown) is 765
 
Upvote 0
If I have understood you correctly, your tables are SIDE-By-SIDE (in which case I do not need row numbers - in fact I should have asked for the column for team name in Table 2 - I have assumed it is in column J)

Conditional Formatting (delete previous rule)
I selected column J and used this as the CF formula
=COUNTIFS(A:A,J1,G:G,"Next")+COUNTIFS(B:B,J1,G:G,"Next")

Amend J to the column that contains team names in Table 2


Excel 2016 (Windows) 32 bit
A
B
C
D
E
F
G
H
I
J
K
1
HomeAwayH-PointsA-PointsH-ResultA-ResultNext RowRankTeamConf.
2
AfghanistanAlbania
0.12​
0.62​
LW
1​
BrazilCONMEBOL
3
ZimbabweAndorra
0.74​
0.07​
WL
2​
ColombiaCONMEBOL
4
ZambiaAngola
0.47​
0.22​
WL
3​
AustriaEurope
5
YemenAnguilla
0.98​
0​
WL
4​
ChileCONMEBOL
6
WalesAntigua & Barbuda
0.5​
0.7​
LW
5​
ItalyEurope
7
AlbaniaAngola
0.5​
0.7​
LW
6​
Afghanistanetc
8
AfghanistanAlbania
0.5​
0.7​
LW
7​
Zimbabwe
9
AfghanistanAlbania
0.5​
0.7​
LW
8​
Zambia
10
ZimbabweAndorra
0.5​
0.7​
LW
9​
Yemen
11
ZambiaAngola
0.5​
0.7​
LW
10​
Wales
12
YemenAnguillaNext
11​
Albania
13
WalesAntigua & Barbuda
12​
Andorra
14
AlbaniaAngola
13​
Angola
15
AfghanistanAlbania
14​
Anguilla
16
AfghanistanAlbania
15​
Antigua & Barbuda
Sheet: Both Tables
 
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,367
Members
449,080
Latest member
Armadillos

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