Return local minimum values within a column using several ranges

kjoey

New Member
Joined
Mar 28, 2017
Messages
2
Hello everyone-- I know that title probably made no sense, but I am hoping the presence of an actual table will help you gurus see what I am looking to do.

Within a worksheet, I have a series of values (column a) for which I would like to return the current minimum value. Further more, the ranges for which I am interested in finding minimum values are defined by the presence of a 1 value (column b). In column c, I would like to be able to return the same values as the formula i have inputted, but I would like to do this automatically as my data set is very large.


A -------------B----------------------- C
1000
91=min(a$2$:a2)
91=min(a$2$:a3)
81=min(a$2$:a4)
91=min(a$2$:a5)
81=min(a$2$:a6)
700
700
710
81=min(a$10$:a10)
91=min(a$10$:a11)
1000
91=min(a$13$:a13)
71=min(a$13:a14)
71=min(a$13$:a15)

<tbody>
</tbody>

As you can see, I need to open and fix the range at the first presence of the 1 value and close it on the final 1 value. I am familiar with VBA and some rudimentary uses, but is there any way you folks can help me in the right direction?

Thanks so much,
KJ
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,215,456
Messages
6,124,939
Members
449,197
Latest member
k_bs

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