gtd526
Well-known Member
- Joined
- Jul 30, 2013
- Messages
- 684
- Office Version
- 2019
- Platform
- Windows
Hello,
Looking to replace the last cell in ($S$10:$S$21) with a formula to find the last occupied cell address in S:S. ie ($S$10:some formula here))
Thank you
Looking to replace the last cell in ($S$10:$S$21) with a formula to find the last occupied cell address in S:S. ie ($S$10:some formula here))
Thank you
The Whole Enchilada.xlsm | ||||||
---|---|---|---|---|---|---|
R | S | T | U | |||
9 | Stock %'s | Rank | ||||
10 | 2x3x | 38.26% | 4 | fix this formula T10 | ||
11 | SPDR ETFs | 2.97% | 9 | ie $S$21 | ||
12 | Technology | 42.86% | 2 | |||
13 | Pot'l Invests | 38.97% | 3 | |||
14 | NRVUS | 0.00% | 11 | |||
15 | ETNA | 0.00% | 11 | |||
16 | Retirement | 13.12% | 7 | |||
17 | Chaikin | 23.39% | 5 | |||
18 | 401k | 5.68% | 8 | |||
19 | AMTD | 0.74% | 10 | |||
20 | Roth IRA | 19.70% | 6 | |||
21 | Schwab | 57.58% | 1 | |||
22 | Last Occupied Cell (array) | |||||
23 | "S"&MATCH(2,1/(S:S<>""),1) | |||||
24 | S21 | |||||
Main |
Cell Formulas | ||
---|---|---|
Range | Formula | |
R10:R21 | R10 | =LOOKUP(2, 1/((COUNTIF($R$9:R9,$B:$B)=0)*($B:$B<>"")),$B:$B) |
S10:S21 | S10 | =INDEX(C:C,MATCH(R10,B:B,0)) |
T10 | T10 | =SUMPRODUCT((S10<=$S$10:$S$21)/COUNTIF($S$10:$S$21,$S$10:$S$21)) |
T11:T21 | T11 | =SUMPRODUCT((S11<=$S$10:$S$21)/COUNTIF($S$10:$S$21,$S$10:$S$21)) |
R24 | R24 | ="S"&MATCH(2,1/(S:S<>""),1) |
Press CTRL+SHIFT+ENTER to enter array formulas. |