Calculate 2 smallest values between 2 dynamic ranges inside single column

Galvaniser

New Member
Joined
Oct 29, 2017
Messages
5
[TABLE="width: 811"]
<tbody>[TR]
[TD="class: xl67, width: 64"][TABLE="width: 811"]
<tbody>[TR]
[TD="class: xl67, width: 64"]Open[/TD]
[TD="class: xl67, width: 64"]High[/TD]
[TD="class: xl67, width: 64"]Low[/TD]
[TD="class: xl67, width: 67"]Close[/TD]
[TD="class: xl65, width: 84"]Date[/TD]
[TD="class: xl65, width: 39"]Time[/TD]
[TD="class: xl65, width: 46"]Open[/TD]
[TD="class: xl65, width: 44"]Bias[/TD]
[TD="class: xl65, width: 64"]Combined bias[/TD]
[TD="class: xl65, width: 154"]Breaking candle[/TD]
[TD="class: xl65, width: 57"]ROW number[/TD]
[TD="class: xl66, width: 64"]Extracted Low[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="class: xl67, width: 64"][/TD]
[TD="class: xl67, width: 64"][/TD]
[TD="class: xl67, width: 67"][/TD]
[TD="class: xl65, width: 84"][/TD]
[TD="class: xl65, width: 39"][/TD]
[TD="class: xl65, width: 46"][/TD]
[TD="class: xl65, width: 44"][/TD]
[TD="class: xl65, width: 64"][/TD]
[TD="class: xl65, width: 154"][/TD]
[TD="class: xl65, width: 57"][/TD]
[TD="class: xl66, width: 64"][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 811"]
<colgroup><col span="3"><col><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]1.07801[/TD]
[TD]1.07813[/TD]
[TD]1.07739[/TD]
[TD]1.0774[/TD]
[TD]6/1/2016[/TD]
[TD]22[/TD]
[TD]Open[/TD]
[TD]bull[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1.07742[/TD]
[TD]1.07812[/TD]
[TD]1.07737[/TD]
[TD]1.07766[/TD]
[TD]6/1/2016[/TD]
[TD]23[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1.07766[/TD]
[TD]1.07829[/TD]
[TD]1.07742[/TD]
[TD]1.07776[/TD]
[TD]7/1/2016[/TD]
[TD]00[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1.07776[/TD]
[TD]1.08099[/TD]
[TD]1.07745[/TD]
[TD]1.08025[/TD]
[TD]7/1/2016[/TD]
[TD]01[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]bullish breaking candle[/TD]
[TD]77[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1.08025[/TD]
[TD]1.08174[/TD]
[TD]1.07993[/TD]
[TD]1.08151[/TD]
[TD]7/1/2016[/TD]
[TD]02[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.07993[/TD]
[/TR]
[TR]
[TD]1.08151[/TD]
[TD]1.08254[/TD]
[TD]1.08146[/TD]
[TD]1.08185[/TD]
[TD]7/1/2016[/TD]
[TD]03[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.08146[/TD]
[/TR]
[TR]
[TD]1.08187[/TD]
[TD]1.08254[/TD]
[TD]1.08153[/TD]
[TD]1.08233[/TD]
[TD]7/1/2016[/TD]
[TD]04[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.08153[/TD]
[/TR]
[TR]
[TD]1.08236[/TD]
[TD]1.08294[/TD]
[TD]1.08207[/TD]
[TD]1.08272[/TD]
[TD]7/1/2016[/TD]
[TD]05[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.08207[/TD]
[/TR]
[TR]
[TD]1.08271[/TD]
[TD]1.08277[/TD]
[TD]1.08117[/TD]
[TD]1.08166[/TD]
[TD]7/1/2016[/TD]
[TD]06[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.08117[/TD]
[/TR]
[TR]
[TD]1.08166[/TD]
[TD]1.08218[/TD]
[TD]1.0782[/TD]
[TD]1.07833[/TD]
[TD]7/1/2016[/TD]
[TD]07[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.0782[/TD]
[/TR]
[TR]
[TD]1.07833[/TD]
[TD]1.08082[/TD]
[TD]1.0771[/TD]
[TD]1.08071[/TD]
[TD]7/1/2016[/TD]
[TD]08[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]bullish breaking candle[/TD]
[TD]84[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1.08074[/TD]
[TD]1.08693[/TD]
[TD]1.08074[/TD]
[TD]1.08458[/TD]
[TD]7/1/2016[/TD]
[TD]09[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.08074[/TD]
[/TR]
[TR]
[TD]1.08457[/TD]
[TD]1.08595[/TD]
[TD]1.08348[/TD]
[TD]1.08373[/TD]
[TD]7/1/2016[/TD]
[TD]10[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.08348[/TD]
[/TR]
[TR]
[TD]1.08375[/TD]
[TD]1.08746[/TD]
[TD]1.08375[/TD]
[TD]1.08665[/TD]
[TD]7/1/2016[/TD]
[TD]11[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.08375[/TD]
[/TR]
[TR]
[TD]1.08665[/TD]
[TD]1.08696[/TD]
[TD]1.08446[/TD]
[TD]1.08584[/TD]
[TD]7/1/2016[/TD]
[TD]12[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.08446[/TD]
[/TR]
[TR]
[TD]1.08585[/TD]
[TD]1.08725[/TD]
[TD]1.08561[/TD]
[TD]1.08586[/TD]
[TD]7/1/2016[/TD]
[TD]13[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.08561[/TD]
[/TR]
[TR]
[TD]1.08586[/TD]
[TD]1.08645[/TD]
[TD]1.08366[/TD]
[TD]1.08441[/TD]
[TD]7/1/2016[/TD]
[TD]14[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.08366[/TD]
[/TR]
[TR]
[TD]1.0844[/TD]
[TD]1.08748[/TD]
[TD]1.08279[/TD]
[TD]1.08279[/TD]
[TD]7/1/2016[/TD]
[TD]15[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.08279[/TD]
[/TR]
[TR]
[TD]1.08266[/TD]
[TD]1.08619[/TD]
[TD]1.0826[/TD]
[TD]1.08599[/TD]
[TD]7/1/2016[/TD]
[TD]16[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.0826[/TD]
[/TR]
[TR]
[TD]1.08597[/TD]
[TD]1.08719[/TD]
[TD]1.08557[/TD]
[TD]1.08622[/TD]
[TD]7/1/2016[/TD]
[TD]17[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.08557[/TD]
[/TR]
[TR]
[TD]1.08623[/TD]
[TD]1.0909[/TD]
[TD]1.08623[/TD]
[TD]1.09014[/TD]
[TD]7/1/2016[/TD]
[TD]18[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.08623[/TD]
[/TR]
[TR]
[TD]1.09014[/TD]
[TD]1.0935[/TD]
[TD]1.08934[/TD]
[TD]1.0931[/TD]
[TD]7/1/2016[/TD]
[TD]19[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.08934[/TD]
[/TR]
[TR]
[TD]1.09312[/TD]
[TD]1.09401[/TD]
[TD]1.09239[/TD]
[TD]1.09345[/TD]
[TD]7/1/2016[/TD]
[TD]20[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]-[/TD]
[TD]1.09239[/TD]
[/TR]
[TR]
[TD]1.09345[/TD]
[TD]1.09398[/TD]
[TD]1.09276[/TD]
[TD]1.09292[/TD]
[TD]7/1/2016[/TD]
[TD]21[/TD]
[TD]End[/TD]
[TD]-[/TD]
[TD]Long[/TD]
[TD]-[/TD]
[TD]97[/TD]
[TD]-[/TD]
[/TR]
</tbody>[/TABLE]

Here we go. (There are actually 12xxx rows of data)

I want to find 2 smallest values of the extracted Low respectively between row number 77 and 84, and between row number 84 and 97.

The resulting values are shown in a new column at row 77 and 84 respectively.
The resulting values are 1.0782 and 1.08074.

How can I find the answers of it without using VBA? If VBA is unavoidable, Should I use do... until loop?
IF yes, how should I write it?

I have been in this dilemma for a long time and find no way to fix it by excel formulas only...... please help me...
 

Excel 2010
ABCDEFGHIJKLM
73OpenHighLowCloseDateTimeOpenBiasCombined biasBreaking candleROW numberExtracted Low
741.078011.078131.077391.07746/1/201622OpenbullLong 
751.077421.078121.077371.077666/1/201623Long
761.077661.078291.077421.077767/1/20160Long
771.077761.080991.077451.080257/1/20161Longbullish breaking candle771.0782
781.080251.081741.079931.081517/1/20162Long1.07993
791.081511.082541.081461.081857/1/20163Long1.08146
801.081871.082541.081531.082337/1/20164Long1.08153
811.082361.082941.082071.082727/1/20165Long1.08207
821.082711.082771.081171.081667/1/20166Long1.08117
831.081661.082181.07821.078337/1/20167Long1.0782
841.078331.080821.07711.080717/1/20168Longbullish breaking candle841.08074
851.080741.086931.080741.084587/1/20169Long1.08074
861.084571.085951.083481.083737/1/201610Long1.08348
871.083751.087461.083751.086657/1/201611Long1.08375
881.086651.086961.084461.085847/1/201612Long1.08446
891.085851.087251.085611.085867/1/201613Long1.08561
901.085861.086451.083661.084417/1/201614Long1.08366
911.08441.087481.082791.082797/1/201615Long1.08279
921.082661.086191.08261.085997/1/201616Long1.0826
931.085971.087191.085571.086227/1/201617Long1.08557
941.086231.09091.086231.090147/1/201618Long1.08623
951.090141.09351.089341.09317/1/201619Long1.08934
961.093121.094011.092391.093457/1/201620Long1.09239
971.093451.093981.092761.092927/1/201621EndLong970
Sheet10
Cell Formulas
RangeFormula
M74{=IF(K74="","",MIN(OFFSET(L74,,,MATCH(TRUE,$K75:$K$97<>"",0))))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

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