Min/Max value for certain value

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
657
Office Version
  1. 2019
Platform
  1. Windows
Hello,
Looking for the min/max value in a string of cells in a row.

if "TECL" max range = U4:ZZ4
if "SOXL" max range = U5:ZZ5
if "FNGG" max range = U6:ZZ6
these values could change rows due to sorting by G/L$ value.
X12:AC12 = your test range

thank you.

The Whole Enchilada.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACAD
2SCHWAB# ofShort vsSold
3 Symbol Sector Type Shares Price CURRENT MAX Value MIN Value CostBalanceG/L $G/L %Weight(%)Buy DateDaysLong TermCap Gain %Cap Ga CostAdj GainStatus8/19/20238/26/20239/2/20239/9/20239/16/20239/23/20239/30/202310/7/202310/14/202310/21/2023
4TECLTech 3xLong45$24.10$46.50#N/A#N/A$1,084.50$2,092.50$1,008.0092.95%#DIV/0!9/23/22386Long0%$0.00$1,008.00open61.16%71.43%94.11%82.64%69.82%56.81%54.83%66.55%92.95%92.95%
5SOXLSemis 3xLong98$20.40$18.98#N/A#N/A$1,999.20$1,860.04-$139.16-6.96%#DIV/0!10/10/234Short10%$0.00-$139.16open-6.96%-6.96%
6FNGGFANGs 2xLong27$77.07$71.14#N/A#N/A$2,080.89$1,920.78-$160.11-7.69%#DIV/0!7/25/2381Short10%$0.00-$160.11open-15.26%-10.82%-0.17%-1.63%-3.92%-13.04%-12.14%-6.11%-7.69%-7.69%
7
8
9
10              
11170 shares$5,164.59$5,873.32$708.7313.72%#DIV/0! $0.00$708.73MaxMinMaxMinMaxMin
12????????
13TECLFNGGSOXL
Sheet1
Cell Formulas
RangeFormula
F10,F4:F6F4=IF(ISTEXT($A4),VLOOKUP($A4,'All Tickers'!$I$1:$J$200,2,0),"")
G10,G4:G6G4=IF(ISBLANK($A4),"",IF($F4=0,0,MAX($F4,$G4)))
H10,H4:H6H4=IF(ISBLANK($A4),"",IF($H4=0,$F4,MEDIAN($H4,$F4,0)))
I10,I4:I6I4=IF($A4="","",D4*E4)
J10,J4:J6J4=IF($A4="","",$D4*$F4)
K10,K4:K6K4=IF($A4="","",J4-I4)
L4L4=IF($A4="","",($J4-$I4)/$I4)
M10,M4:M6M4=IF($A4="","",J4/$J$16)
L10,L5:L6L5=IF($A5="","",K5/I5)
O10,O4:O6O4=IF(A4="","",TODAY()-N4)
P10,P4:P6P4=IF(ISNUMBER($N4),IF(DATEDIF($N4,TODAY(),"d")<365,"Short","Long"),"")
Q10,Q4:Q6Q4=IF(ISTEXT($A4),IF(TODAY()-N4>365,0,0.1),"")
R10,R4:R6R4=IF(ISTEXT($A4),IF(K4>0,K4*Q4,0),"")
S10,S4:S6S4=IF(ISTEXT($A4),IF($K4=0,"$0",$K4-$R4),"")
B10,B4:B6B4=IF(COUNTIF(Sectors!$A$2:$ABW$47,$A4)=1,INDEX(Sectors!$A$2:$ABW$2,MAX((Sectors!$A$2:$ABW$47=$A4)*(COLUMN(Sectors!$A$2:$ABW$2)))),"")
AD3AD3=AC3+7
AD4:AD6AD4=$L4
I11I11=SUM($I$9:$I$15)
J11J11=SUM($J$9:$J$15)
K11K11=SUM($K$9:$K$15)
L11L11=$K$11/$I$11
M11,R11:S11M11=SUM(M4:M10)
D11D11=SUM(D4:D10) & " shares"
O11O11=IF(ISNUMBER($N11),K11-N11,"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Along these lines, perhaps?

ABCDE
1TECL1236
2SOXL7812
3FNGG15121110
4
5Results
6SOXL8
7TECL6
8X#N/A
Sheet1
Cell Formulas
RangeFormula
C6:C8C6=MAX(INDEX($B$1:$E$3,MATCH(B6,$A$1:$A$3,),))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Solution
Along these lines, perhaps?

ABCDE
1TECL1236
2SOXL7812
3FNGG15121110
4
5Results
6SOXL8
7TECL6
8X#N/A
Sheet1
Cell Formulas
RangeFormula
C6:C8C6=MAX(INDEX($B$1:$E$3,MATCH(B6,$A$1:$A$3,),))
Press CTRL+SHIFT+ENTER to enter array formulas.
Thank you!!
 
Upvote 0

Forum statistics

Threads
1,215,096
Messages
6,123,074
Members
449,093
Latest member
ripvw

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