Min between two values without a defined nth range

voltrader

Board Regular
Joined
Dec 17, 2009
Messages
58
Office Version
  1. 2010
Platform
  1. Windows
Hey All,

Been working on this for a while and couldn't figure it out, tried offset, and Match/INDEX. I still cant get around the issue of the range not being a consistent nth row.[TABLE="width: 500"]
<tbody>[TR]
[TD]10:00[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]10:01[/TD]
[TD]95%[/TD]
[/TR]
[TR]
[TD]10:02[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]10:03[/TD]
[TD]95%[/TD]
[/TR]
[TR]
[TD]10:04[/TD]
[TD]92%[/TD]
[/TR]
</tbody>[/TABLE]

As the above table illustrates the range does not hold a pattern of every nth row.I need to create a moving "anchor" to say "from each 100% find min until the next 100%.

Thanks!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
What??? I have no idea what you are asking for...

Hey All,

Been working on this for a while and couldn't figure it out, tried offset, and Match/INDEX. I still cant get around the issue of the range not being a consistent nth row.[TABLE="width: 500"]
<tbody>[TR]
[TD]10:00[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]10:01[/TD]
[TD]95%[/TD]
[/TR]
[TR]
[TD]10:02[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]10:03[/TD]
[TD]95%[/TD]
[/TR]
[TR]
[TD]10:04[/TD]
[TD]92%[/TD]
[/TR]
</tbody>[/TABLE]

As the above table illustrates the range does not hold a pattern of every nth row.I need to create a moving "anchor" to say "from each 100% find min until the next 100%.

Thanks!
 
Upvote 0
More efficient than the single-formula approach:


Excel 2010
ABC
110:00100%1
210:0195%1
310:02100%2
410:0395%2
510:0492%2
610:0598%2
710:0694%2
810:07100%3
910:0893%3
1010:0993%3
1110:1090%3
Sheet1
Cell Formulas
RangeFormula
C1=COUNTIF($B$1:B1,1)


then you can run a pivot table or subtotaler and have the min at each group change.
 
Last edited:
Upvote 0
What??? I have no idea what you are asking for...

I need to find the MIN value for each cell between 100%. I am not looking for the amount of MIN values.[TABLE="width: 500"]
<tbody>[TR]
[TD]10:01[/TD]
[TD]100%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10:02[/TD]
[TD]95%[/TD]
[TD]92%[/TD]
[/TR]
[TR]
[TD]10:03[/TD]
[TD]92%[/TD]
[TD]92%[/TD]
[/TR]
[TR]
[TD]10:04[/TD]
[TD]100%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10:05[/TD]
[TD]91%[/TD]
[TD]80%[/TD]
[/TR]
[TR]
[TD]10:06[/TD]
[TD]80%[/TD]
[TD]80%[/TD]
[/TR]
[TR]
[TD]10:07[/TD]
[TD]100%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
If you want to repeat the min values next to each percent that isn't 100:


Excel 2010
ABCD
1timepercentgroupmin
210:00100%1 
310:0195%10.95
410:02100%2
510:0395%20.92
610:0492%20.92
710:0598%20.92
810:0694%20.92
910:07100%3
1010:0893%30.9
1110:0993%30.9
1210:1090%30.9
Sheet1
Cell Formulas
RangeFormula
C2=COUNTIF($B$2:B2,1)
D2{=IF(B2=1,"",MIN(IF($C$2:$C$12=C2,$B$2:$B$12)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
If you want to repeat the min values next to each percent that isn't 100:

Excel 2010
ABCD
timepercentgroupmin

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]10:00[/TD]
[TD="align: right"]100%[/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]10:01[/TD]
[TD="align: right"]95%[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.95[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]10:02[/TD]
[TD="align: right"]100%[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]10:03[/TD]
[TD="align: right"]95%[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.92[/TD]

[TD="align: center"]6[/TD]
[TD="align: right"]10:04[/TD]
[TD="align: right"]92%[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.92[/TD]

[TD="align: center"]7[/TD]
[TD="align: right"]10:05[/TD]
[TD="align: right"]98%[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.92[/TD]

[TD="align: center"]8[/TD]
[TD="align: right"]10:06[/TD]
[TD="align: right"]94%[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.92[/TD]

[TD="align: center"]9[/TD]
[TD="align: right"]10:07[/TD]
[TD="align: right"]100%[/TD]
[TD="align: right"]3[/TD]

[TD="align: center"]10[/TD]
[TD="align: right"]10:08[/TD]
[TD="align: right"]93%[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.9[/TD]

[TD="align: center"]11[/TD]
[TD="align: right"]10:09[/TD]
[TD="align: right"]93%[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.9[/TD]

[TD="align: center"]12[/TD]
[TD="align: right"]10:10[/TD]
[TD="align: right"]90%[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.9[/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C2[/TH]
[TD="align: left"]=COUNTIF($B$2:B2,1)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Array Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]D2[/TH]
[TD="align: left"]{=IF(B2=1,"",MIN(IF($C$2:$C$12=C2,$B$2:$B$12)))}[/TD]
[/TR]
</tbody>[/TABLE]
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself[/TD]
[/TR]
</tbody>[/TABLE]
THAT WORKS! thanks so much!
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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