JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,691
- Office Version
- 365
- Platform
- Windows
I often have difficulty getting table headers to display the way I want them to. Here's an example of a table the way I would like it to look.
This is how it looks if I don't use one of the "solutions" discussed below. If I turn Wrap on, Excel breaks the headers on certain characters (space, minus, ???).
I have found 2 ways to get it to look like I want, but both have problems.
This table uses the extra spaces. Notice the spaced out formulas (K6:N6).
This table used the manual line break (Alt+Enter). Notice the multi-line formulas (K19:N19).
This is how it looks if I don't use one of the "solutions" discussed below. If I turn Wrap on, Excel breaks the headers on certain characters (space, minus, ???).
I have found 2 ways to get it to look like I want, but both have problems.
- Add extra spaces where I want the line to break. This is what I did in the example, above. See first minisheet below. This has two problems.
- If I change the column width, I have to adjust the number of extra spaces to match.
- Any formulas referencing these columns show the extra spaces.
- Add a manual line break (Alt+Enter). This is independent of the column width, so I don't have to adjust the header text, but the formulas are even crazier. They cannot be displayed on a single line in the formula bar. See second minisheet below.
This table uses the extra spaces. Notice the spaced out formulas (K6:N6).
Weighted Ratings Demo.xlsx | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | L | M | N | |||
3 | Mean | 3.00 | 3.00 | 15.00 | 8.00 | ||||||||||
4 | Std Dev | 1.58 | 1.58 | 7.91 | 1.58 | ||||||||||
5 | A | B | C | D | A Z | B Z | C Z | D Z | A 0-100 | B 0-100 | C 0-100 | D 0-100 | |||
6 | 5 | 1 | 25 | 10 | +1.26 | -1.26 | +1.26 | +1.26 | 100 | 0 | 100 | 100 | |||
7 | 4 | 2 | 20 | 9 | +0.63 | -0.63 | +0.63 | +0.63 | 75 | 25 | 75 | 75 | |||
8 | 3 | 3 | 15 | 8 | =0.00 | =0.00 | =0.00 | =0.00 | 50 | 50 | 50 | 50 | |||
9 | 2 | 4 | 10 | 7 | -0.63 | +0.63 | -0.63 | -0.63 | 25 | 75 | 25 | 25 | |||
10 | 1 | 5 | 5 | 6 | -1.26 | +1.26 | -1.26 | -1.26 | 0 | 100 | 0 | 0 | |||
Z Scores |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C3 | C3 | =AVERAGE(TblZs[A]) |
D3 | D3 | =AVERAGE(TblZs[B]) |
E3 | E3 | =AVERAGE(TblZs[C]) |
F3 | F3 | =AVERAGE(TblZs[D]) |
C4 | C4 | =STDEV.S(TblZs[A]) |
D4 | D4 | =STDEV.S(TblZs[B]) |
E4 | E4 | =STDEV.S(TblZs[C]) |
F4 | F4 | =STDEV.S(TblZs[D]) |
G6:G10 | G6 | =([@A]-C$3)/C$4 |
H6:H10 | H6 | =([@B]-D$3)/D$4 |
I6:I10 | I6 | =([@C]-E$3)/E$4 |
J6:J10 | J6 | =([@D]-F$3)/F$4 |
K6:K10 | K6 | =([@[A Z]]-MIN([A Z]))/(MAX([A Z])-MIN([A Z]))*100 |
L6:L10 | L6 | =([@[B Z]]-MIN([B Z]))/(MAX([B Z])-MIN([B Z]))*100 |
M6:M10 | M6 | =([@[C Z]]-MIN([C Z]))/(MAX([C Z])-MIN([C Z]))*100 |
N6:N10 | N6 | =([@[D Z]]-MIN([D Z]))/(MAX([D Z])-MIN([D Z]))*100 |
This table used the manual line break (Alt+Enter). Notice the multi-line formulas (K19:N19).
Weighted Ratings Demo.xlsx | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
C | D | E | F | G | H | I | J | K | L | M | N | |||
18 | A | B | C | D | A Z | B Z | C Z | D Z | A 0-100 | B 0-100 | C 0-100 | D 0-100 | ||
19 | 5 | 1 | 25 | 10 | +1.26 | -1.26 | +1.26 | +1.26 | 100 | 0 | 100 | 100 | ||
20 | 4 | 2 | 20 | 9 | +0.63 | -0.63 | +0.63 | +0.63 | 75 | 25 | 75 | 75 | ||
21 | 3 | 3 | 15 | 8 | =0.00 | =0.00 | =0.00 | =0.00 | 50 | 50 | 50 | 50 | ||
22 | 2 | 4 | 10 | 7 | -0.63 | +0.63 | -0.63 | -0.63 | 25 | 75 | 25 | 25 | ||
23 | 1 | 5 | 5 | 6 | -1.26 | +1.26 | -1.26 | -1.26 | 0 | 100 | 0 | 0 | ||
Z Scores |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G19:G23 | G19 | =([@A]-C$3)/C$4 |
H19:H23 | H19 | =([@B]-D$3)/D$4 |
I19:I23 | I19 | =([@C]-E$3)/E$4 |
J19:J23 | J19 | =([@D]-F$3)/F$4 |
K19:K23 | K19 | =([@[A Z]]-MIN([A Z]))/(MAX([A Z])-MIN([A Z]))*100 |
L19:L23 | L19 | =([@[B Z]]-MIN([B Z]))/(MAX([B Z])-MIN([B Z]))*100 |
M19:M23 | M19 | =([@[C Z]]-MIN([C Z]))/(MAX([C Z])-MIN([C Z]))*100 |
N19:N23 | N19 | =([@[D Z]]-MIN([D Z]))/(MAX([D Z])-MIN([D Z]))*100 |