JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,718
- Office Version
- 365
- Platform
- Windows
I discovered a couple of ways to get repeating table headers that do not need the kludgy sequence numbers that Excel will add.
In this first solution, I add my own sequence numbers and then change the color of that character to the background color so that they are not visible. It is a bit of work, and you have to be careful that references are to the right section.
The CvtOdds function is a UDF I wrote.
Another solution it to make each section a separate table.
Each one has advantages.
Any comments?
In this first solution, I add my own sequence numbers and then change the color of that character to the background color so that they are not visible. It is a bit of work, and you have to be careful that references are to the right section.
2022 NBA playoff odds.xlsx | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
4 | $100 | Wager | ||||||||||||||
5 | ||||||||||||||||
6 | 5/04/22 | Entering Round 2 | Entering Round 1 | |||||||||||||
7 | Team | Moneyline Odds3 | Rank3 | Payout3 on $100 | % Odds3 | Moneyline Odds2 | Rank2 | Payout2 on $100 | % Odds2 | Moneyline Odds1 | Rank1 | Payout1 on $100 | % Odds1 | |||
8 | Phoenix Suns | +200 | 1 | $300 | 33% | +320 | 2 | $420 | 24% | +260 | 1 | $360 | 28% | |||
9 | Golden State Warriors | +340 | 2 | $440 | 23% | +300 | 1 | $400 | 25% | +1000 | 4 | $1,100 | 9% | |||
10 | Boston Celtics | +450 | 3 | $550 | 18% | +375 | 3 | $475 | 21% | +750 | 3 | $850 | 12% | |||
11 | Miami Heat | +450 | 3 | $550 | 18% | +500 | 4 | $600 | 17% | +1000 | 4 | $1,100 | 9% | |||
12 | Milwaukee Bucks | +600 | 5 | $700 | 14% | +700 | 5 | $800 | 13% | +500 | 2 | $600 | 17% | |||
13 | Memphis Grizzlies | +1800 | 6 | $1,900 | 5% | +1300 | 6 | $1,400 | 7% | +1200 | 6 | $1,300 | 8% | |||
14 | Philadelphia 76ers | +6600 | 7 | $6,700 | 1% | +2500 | 8 | $2,600 | 4% | +1600 | 7 | $1,700 | 6% | |||
15 | Dallas Mavericks | +6600 | 7 | $6,700 | 1% | +2000 | 7 | $2,100 | 5% | +4000 | 8 | $4,100 | 2% | |||
NBA (1) |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E8:E15 | E8 | =RANK.EQ([@[Moneyline Odds3]],[Moneyline Odds3],1) |
F8:F15 | F8 | =cvtodds([@[Moneyline Odds3]],"M","$")*Wager |
G8:G15 | G8 | =cvtodds([@[Moneyline Odds3]],"M","%") |
I8:I15 | I8 | =RANK.EQ([@[Moneyline Odds2]],[Moneyline Odds2],1) |
J8:J15 | J8 | =cvtodds([@[Moneyline Odds2]],"M","$")*Wager |
K8:K15 | K8 | =cvtodds([@[Moneyline Odds2]],"M","%") |
M8:M15 | M8 | =RANK.EQ([@[Moneyline Odds1]],[Moneyline Odds1],1) |
N8:N15 | N8 | =cvtodds([@[Moneyline Odds1]],"M","$")*Wager |
O8:O15 | O8 | =cvtodds([@[Moneyline Odds1]],"M","%") |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
'NBA (1)'!Wager | ='NBA (1)'!$B$4 | J8:J15, N8:N15, F8:F15 |
The CvtOdds function is a UDF I wrote.
Another solution it to make each section a separate table.
2022 NBA playoff odds.xlsx | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
4 | $100 | Wager | ||||||||||||||
5 | ||||||||||||||||
6 | Today (5/06/22) | Entering Round 2 | Entering Round 1 | |||||||||||||
7 | Team | Moneyline Odds | Rank | Payout on $100 | % Odds | Moneyline Odds | Rank | Payout on $100 | % Odds | Moneyline Odds | Rank | Payout on $100 | % Odds | |||
8 | Phoenix Suns | +200 | 1 | $300 | 33% | +320 | 2 | $420 | 24% | +260 | 1 | $360 | 28% | |||
9 | Golden State Warriors | +340 | 2 | $440 | 23% | +300 | 1 | $400 | 25% | +1000 | 4 | $1,100 | 9% | |||
10 | Boston Celtics | +450 | 3 | $550 | 18% | +375 | 3 | $475 | 21% | +750 | 3 | $850 | 12% | |||
11 | Miami Heat | +450 | 3 | $550 | 18% | +500 | 4 | $600 | 17% | +1000 | 4 | $1,100 | 9% | |||
12 | Milwaukee Bucks | +600 | 5 | $700 | 14% | +700 | 5 | $800 | 13% | +500 | 2 | $600 | 17% | |||
13 | Memphis Grizzlies | +1800 | 6 | $1,900 | 5% | +1300 | 6 | $1,400 | 7% | +1200 | 6 | $1,300 | 8% | |||
14 | Philadelphia 76ers | +6600 | 7 | $6,700 | 1% | +2500 | 8 | $2,600 | 4% | +1600 | 7 | $1,700 | 6% | |||
15 | Dallas Mavericks | +6600 | 7 | $6,700 | 1% | +2000 | 7 | $2,100 | 5% | +4000 | 8 | $4,100 | 2% | |||
NBA |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E8:E15,M8:M15,I8:I15 | E8 | =RANK.EQ([@[Moneyline Odds]],[Moneyline Odds],1) |
F8:F15,N8:N15,J8:J15 | F8 | =cvtodds([@[Moneyline Odds]],"M","$")*Wager |
G8:G15,O8:O15,K8:K15 | G8 | =cvtodds([@[Moneyline Odds]],"M","%") |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
Wager | =NBA!$B$4 | J8:J15, N8:N15, F8:F15 |
Each one has advantages.
Any comments?