gtd526
Well-known Member
- Joined
- Jul 30, 2013
- Messages
- 684
- Office Version
- 2019
- Platform
- Windows
Hello,
I use the following code to offset from A3:A23 to 3 columns over to D3:D23.
how can i select all from the offset ie A3:D23?
thanks
I use the following code to offset from A3:A23 to 3 columns over to D3:D23.
how can i select all from the offset ie A3:D23?
thanks
VBA Code:
Range("A3:A27").SpecialCells(xlFormulas, xlNumbers).Select
Selection.Offset(0, 3).Select
NBA.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
2 | Rank | Criteria2 | Criteria2 Percentage | Count | ||
3 | 1 | Rank2, AL & AM >60% | 80.0% | 25 | ||
4 | 2 | MOV2, AL:AM >= 60% | 64.3% | 28 | ||
5 | 3 | Q, R, S, T>0, W | 61.5% | 13 | ||
6 | 4 | MOV2 > ATS | 59.5% | 37 | ||
7 | 5 | MOV2,MOV,AL:AM >= 60% | 58.8% | 34 | ||
8 | 5 | MOV, AL:AM >= 60% | 58.8% | 34 | ||
9 | 7 | K,L,Q,R>0,S>0,T>0 | 58.3% | 12 | ||
10 | 8 | Orange - Q,S,V,X,AA | 57.1% | 28 | ||
11 | 8 | Rank2, AL >= 60% | 57.1% | 42 | ||
12 | 10 | M,N>0, Q,R>0 | 55.6% | 54 | ||
13 | 11 | Asst/Tover >=1.85 | 55.2% | 58 | ||
14 | 12 | Q>=60%, S>=6 | 54.1% | 37 | ||
15 | 13 | Green - Q,S | 53.7% | 67 | ||
16 | 13 | Aqua - L,Q,S | 53.7% | 67 | ||
17 | 15 | Purple - Q,S,X | 53.3% | 45 | ||
18 | 16 | K,L,Q,R>0,S>0,T>0,AC | 50.0% | 6 | ||
19 | 17 | Cover2% > 60% | 48.8% | 41 | ||
20 | 18 | K,L,Q,R>0,X | 48.0% | 25 | ||
21 | 19 | Navy | 47.8% | 23 | ||
22 | 19 | MOV2, MOV > ATS | 47.8% | 23 | ||
23 | 21 | K,L,Q,R>0,X,AC | 39.3% | 28 | ||
24 | #VALUE! | Pts in Paint (U:U) | 0 | |||
25 | #N/A | #N/A | #N/A | 1 | ||
26 | #N/A | #N/A | #N/A | Higher | ||
27 | #VALUE! | #VALUE! | #VALUE! | 1 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C3:C27 | C3 | =IF($B3="Navy",Favs!$M$43,IF($B3="MOV2, MOV > ATS",Favs!$M$55,IF($B3="Purple - Q,S,X",Favs!$V$43,IF($B3="Green - Q,S",Favs!$P$43,IF($B3="Aqua - L,Q,S",Favs!$S$43,IF($B3="Orange - Q,S,V,X,AA",Favs!$Y$43,IF($B3="K,L,Q,R>0,S>0,T>0,AC",Favs!$AB$43,IF($B3="Rank2, AL & AM >60%",Favs!$AH$43,IF($B3="MOV, AL:AM >= 60%",Favs!$AB$67,IF($B3="MOV2, AL:AM >= 60%",Favs!$AE$67,IF($B3="MOV2,MOV,AL:AM >= 60%",Favs!$AH$67,IF($B3="K,L,Q,R>0,S>0,T>0",Favs!$P$67,IF($B3="K,L,Q,R>0,X",Favs!$M$67,IF($B3="K,L,Q,R>0,S>0,T>0,AC",Favs!$AB$43,IF($B3="K,L,Q,R>0,X,AC",Favs!$S$55,IF($B3="M,N>0, Q,R>0",Favs!$Y$79,IF($B3="Q>=60%, S>=6",Favs!$S$67,IF($B3="Q, R, S, T>0, W",Favs!$M$79,IF($B3="EPR (AH)",Favs!$M$91,IF($B3="MOV2 > ATS",Favs!$P$55,IF($B3="Adj OFF & DEF (AI, AJ)",Favs!$P$91,IF($B3="Asst/Tover >=1.85",Favs!$S$79,IF($B3="Poss/G (AD)",Favs!$S$91,IF($B3="K, R>0, T>0",Favs!$V$79,IF($B3="Tovers (AE)",Favs!$V$91,IF($B3="Steals (AF)",Favs!$Y$91,IF($B3="Rank2, AL >= 60%",Favs!$AB$55,IF($B3="Fouls (AG)",Favs!$AB$91,IF($B3="Cover2% > 60%",Favs!$AE$43,IF($B3="Rank2, AM >= 60%",Favs!$AE$55,IF($B3="Adj Off. (AI)",Favs!$AE$91,IF($B3="AC, AL & AM>= 60%",Favs!$AH$55,IF($B3="Adj Def. (AJ)",Favs!$AH$91,IF($B3="Pts in Paint (U:U)",Favs!$V$55,"")))))))))))))))))))))))))))))))))) |
D3 | D3 | =Favs!$AH$48 |
D4 | D4 | =Favs!$AE$72 |
D5 | D5 | =Favs!$M$84 |
D6 | D6 | =Favs!$P$60 |
D7 | D7 | =Favs!$AH$72 |
D8 | D8 | =Favs!$AB$72 |
D9 | D9 | =Favs!$P$72 |
D10 | D10 | =Favs!$Y$48 |
D11 | D11 | =Favs!$AB$60 |
D12 | D12 | =Favs!$Y$84 |
D13 | D13 | =Favs!$S$84 |
D14 | D14 | =Favs!$S$72 |
D15 | D15 | =Favs!$P$48 |
D16 | D16 | =Favs!$S$48 |
D17 | D17 | =Favs!$V$48 |
D18 | D18 | =Favs!$AB$48 |
D19 | D19 | =Favs!$AE$48 |
D20 | D20 | =Favs!$M$72 |
D21 | D21 | =Favs!$M$48 |
D22 | D22 | =Favs!$M$60 |
D23 | D23 | =Favs!$S$60 |
D24 | D24 | =Favs!$V$60 |
B25:B27 | B25 | =MID($A25,FIND("""",$A25)+1,FIND("""",$A25,FIND("""",$A25)+1)-FIND("""",$A25)-1) |
D25 | D25 | =Favs!$AH$76 |
D26 | D26 | =Favs!$AH$77 |
D27 | D27 | =Favs!$AH$78 |
A3:A26 | A3 | =RANK(C3,Rank) |