Get the Row number for Matched cell value

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
695
Office Version
  1. 2019
Platform
  1. Windows
Hello,
Want to modify the formula regarding 9:9 in N6. The Row (9:9) needs to be modified due to sorting, the A9 value will change rows and may not be 9:9.
I have the following formula =MATCH(N3,A:A,0)&":"&MATCH(N3,A:A,0) that will result 9:9, but I have trouble inserting it into the formula.
Thanks

The Whole Enchilada.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAI
1MaxMinFirstLastMaxMinFirstLastMaxMinFirstLastMaxMinFirstLastMaxMinFirstLastMaxMinFirstLast
2111.8%66.7%61.2%111.8%-0.2%-18.5%-15.3%-1.0%7.4%-12.9%-12.9%7.4%5.2%0.0%0.4%5.2%6.7%0.0%6.7%5.4%0.0%-4.1%-2.0%-4.1%
3TECLTECLFNGGFNGGWEBLWEBLQTUMQTUMSRUUFSRUUFUECUEC
450.63%14.30%20.30%4.80%-1.36%-2.03%
5Weekly DiffWeekly DiffWeekly DiffWeekly DiffWeekly DiffWeekly Diff
610.8%4.2%4.2%0.0%-1.1%-2.0%
7SCHWAB
8 Symbol Sector Type Qty Price CURRENT CostBalanceG/L $G/L %8/19/20238/26/20239/2/20239/9/20239/16/20239/23/20239/30/202310/7/202310/14/202310/21/202310/28/202311/4/202311/11/2023
9TECLTech 3xLong45$24.10$51.04$1,084.50$2,296.80$1,212.30111.78%61.2%71.4%94.1%82.6%69.8%56.8%54.8%66.5%92.9%76.5%66.7%101.0%111.8%
10WEBLInternet 3xLong62$9.36$10.05$580.32$623.10$42.787.37%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%-12.9%3.2%7.4%
11SRUUFSprott Physical UraniumLong48$16.40$17.43$794.15$836.64$42.495.35%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%6.7%6.6%6.4%5.4%
12QTUMDefiance QuantumLong11$44.85$47.18$493.35$518.98$25.635.20%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.00%0.4%5.2%5.2%
13FNGGFANGs 2xLong15$75.13$74.81$1,127.01$1,116.18-$10.83-0.96%-15.3%-10.8%-0.2%-1.6%-3.9%-13.0%-12.1%-6.1%-7.7%-14.0%-18.5%-5.1%-1.0%
14UECUranium Energy CorpLong130$5.90$5.66$767.00$735.80-$31.20-4.07%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%0.0%-2.0%-4.1%
15       
16
17Row for "TECL" (N3)
189:9MATCH(N3,A:A,0)&":"&MATCH(N3,A:A,0)
19
Sheet1
Cell Formulas
RangeFormula
L2L2=MAX(INDEX(INDIRECT("U"&MATCH(L3,A:A,0)):$ZP$15,MATCH(L3,$A$9:$A$15,),))
M2M2=MIN(INDEX(INDIRECT("U"&MATCH(L$3,$A:$A,0)):$ZP$15,MATCH(L$3,$A$9:$A$15,),))
N2N2=INDEX(INDIRECT("K"&MATCH(N3,A:A,0)):$K$79,MATCH(N3,INDIRECT("A"&MATCH(N3,A:A,0)):$A$75,0))
O2O2=LOOKUP(2,1/(INDIRECT("A"&MATCH(N3,A:A,0)):(INDIRECT("ZZ"&MATCH(N3,A:A,0)))<>"")*(INDIRECT("A"&MATCH(N3,A:A,0)):(INDIRECT("ZZ"&MATCH(N3,A:A,0)))))
P2,AF2,AB2,X2,T2P2=MAX(INDEX($K$9:$ZP$15,MATCH(P3,$A$9:$A$15,),))
Q2,AG2,AC2,Y2,U2Q2=MIN(INDEX($K$9:$ZP$15,MATCH(P3,$A$9:$A$15,),))
R2R2=INDEX(INDIRECT("K"&MATCH(R3,A:A,0)):$K$15,MATCH(R3,INDIRECT("A"&MATCH(R3,A:A,0)):$A$15,0))
S2S2=LOOKUP(2,1/(INDIRECT("A"&MATCH(R3,A:A,0)):(INDIRECT("ZZ"&MATCH(R3,A:A,0)))<>"")*(INDIRECT("A"&MATCH(R3,A:A,0)):(INDIRECT("ZZ"&MATCH(N3,A:A,0)))))
V2V2=INDEX(INDIRECT("U"&MATCH(V3,A:A,0)):$U$15,MATCH(V3,INDIRECT("A"&MATCH(V3,A:A,0)):$A$15,0),0)
W2W2=LOOKUP(2,1/(INDIRECT("A"&MATCH(V3,A:A,0)):(INDIRECT("ZZ"&MATCH(V3,A:A,0)))<>"")*(INDIRECT("A"&MATCH(V3,A:A,0)):(INDIRECT("ZZ"&MATCH(V3,A:A,0)))))
Z2Z2=INDEX(INDIRECT("U"&MATCH(Z3,A:A,0)):$U$15,MATCH(Z3,INDIRECT("A"&MATCH(Z3,A:A,0)):$A$15,0),0)
AA2AA2=LOOKUP(2,1/(INDIRECT("A"&MATCH(Z3,A:A,0)):(INDIRECT("ZZ"&MATCH(Z3,A:A,0)))<>"")*(INDIRECT("A"&MATCH(Z3,A:A,0)):(INDIRECT("ZZ"&MATCH(Z3,A:A,0)))))
AD2AD2=INDEX(INDIRECT("T"&MATCH(AD3,A:A,0)):$T$15,MATCH(AD3,INDIRECT("A"&MATCH(AD3,A:A,0)):$A$15,0),0)
AE2AE2=LOOKUP(2,1/(INDIRECT("A"&MATCH(AD3,A:A,0)):(INDIRECT("ZZ"&MATCH(AD3,A:A,0)))<>"")*(INDIRECT("A"&MATCH(AD3,A:A,0)):(INDIRECT("ZZ"&MATCH(AD3,A:A,0)))))
AH2AH2=INDEX(INDIRECT("V"&MATCH(AH3,A:A,0)):$V$15,MATCH(AH3,INDIRECT("A"&MATCH(AH3,A:A,0)):$A$15,0),0)
AI2AI2=LOOKUP(2,1/(INDIRECT("A"&MATCH(AH3,A:A,0)):(INDIRECT("ZZ"&MATCH(AH3,A:A,0)))<>"")*(INDIRECT("A"&MATCH(AH3,A:A,0)):(INDIRECT("ZZ"&MATCH(AH3,A:A,0)))))
N4,AH4,AD4,Z4,V4,R4N4=O2-N2
N6N6=LOOKUP(2, 1/(INDIRECT("A"&MATCH(N3,A:A,0)):INDIRECT("ZZ"&MATCH(N3,A:A,0))<>""),INDIRECT("A"&MATCH(N3,A:A,0)):INDIRECT("ZZ"&MATCH(N3,A:A,0)))-INDEX(9:9, AGGREGATE(14, 6, COLUMN(A:ZZ)/(INDIRECT("A"&MATCH(N3,A:A,0)):INDIRECT("ZZ"&MATCH(N3,A:A,0))<>""), 2))
R6R6=LOOKUP(2, 1/(INDIRECT("A"&MATCH(R3,A:A,0)):INDIRECT("ZZ"&MATCH(R3,A:A,0))<>""),INDIRECT("A"&MATCH(R3,A:A,0)):INDIRECT("ZZ"&MATCH(R3,A:A,0)))-INDEX(13:13, AGGREGATE(14, 6, COLUMN(A:ZP)/(INDIRECT("A"&MATCH(R3,A:A,0)):INDIRECT("ZZ"&MATCH(R3,A:A,0))<>""), 2))
V6V6=LOOKUP(2, 1/(INDIRECT("A"&MATCH(V3,A:A,0)):INDIRECT("ZZ"&MATCH(V3,A:A,0))<>""),INDIRECT("A"&MATCH(V3,A:A,0)):INDIRECT("ZZ"&MATCH(V3,A:A,0)))-INDEX(10:10, AGGREGATE(14, 6, COLUMN(A:ZP)/(INDIRECT("A"&MATCH(V3,A:A,0)):INDIRECT("ZZ"&MATCH(V3,A:A,0))<>""), 2))
Z6Z6=LOOKUP(2, 1/(INDIRECT("A"&MATCH(Z3,A:A,0)):INDIRECT("ZZ"&MATCH(Z3,A:A,0))<>""),INDIRECT("A"&MATCH(Z3,A:A,0)):INDIRECT("ZZ"&MATCH(Z3,A:A,0)))-INDEX(12:12, AGGREGATE(14, 6, COLUMN(A:ZP)/(INDIRECT("A"&MATCH(Z3,A:A,0)):INDIRECT("ZZ"&MATCH(Z3,A:A,0))<>""), 2))
AD6AD6=LOOKUP(2, 1/(INDIRECT("A"&MATCH(AD3,A:A,0)):INDIRECT("ZZ"&MATCH(AD3,A:A,0))<>""),INDIRECT("A"&MATCH(AD3,A:A,0)):INDIRECT("ZZ"&MATCH(AD3,A:A,0)))-INDEX(11:11, AGGREGATE(14, 6, COLUMN(A:ZP)/(INDIRECT("A"&MATCH(AD3,A:A,0)):INDIRECT("ZZ"&MATCH(AD3,A:A,0))<>""), 2))
AH6AH6=LOOKUP(2, 1/(INDIRECT("A"&MATCH(AH3,A:A,0)):INDIRECT("ZZ"&MATCH(AH3,A:A,0))<>""),INDIRECT("A"&MATCH(AH3,A:A,0)):INDIRECT("ZZ"&MATCH(AH3,A:A,0)))-INDEX(14:14, AGGREGATE(14, 6, COLUMN(A:ZP)/(INDIRECT("A"&MATCH(AH3,A:A,0)):INDIRECT("ZZ"&MATCH(AH3,A:A,0))<>""), 2))
F9:F15F9=IF(A9<>"",VLOOKUP(A9,'All Tickers'!$I:$J,2,0),"")
G12:G15,G9:G10G9=IF($A9="","",D9*E9)
H14:H15,H9:H12H9=IF($A9="","",$D9*$F9)
I9:I15I9=IF($A9="","",H9-G9)
J9:J15J9=IF($A9="","",($H9-$G9)/$G9)
G11G11=IF($A11="","",D11*E11)+6.95
H13H13=IF($A13="","",$D13*$F13)-5.97
B9:B15B9=IF(COUNTIF(Sectors!$A$2:$ABY$47,$A9)=1,INDEX(Sectors!$A$2:$ABY$2,MAX((Sectors!$A$2:$ABY$47=$A9)*(COLUMN(Sectors!$A$2:$ABY$2)))),"")
W8W8=V8+7
W9:W15W9=$J9
U18U18=MATCH(N3,A:A,0)&":"&MATCH(N3,A:A,0)
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
You'd need to wrap that in INDIRECT:

Excel Formula:
INDIRECT(MATCH(N3,A:A,0)&":"&MATCH(N3,A:A,0))

I'd imagine all those volatile formulas will make your workbook pretty slow.
 
Upvote 0
Solution
You'd need to wrap that in INDIRECT:

Excel Formula:
INDIRECT(MATCH(N3,A:A,0)&":"&MATCH(N3,A:A,0))

I'd imagine all those volatile formulas will make your workbook pretty slow.
Thank you.
I don't see much difference in processing all those formulas. I purchased an upper-end laptop to take care of certain issues or slowness.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,116
Members
453,021
Latest member
Justyna P

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