range co-dependent minimums

tizdall

New Member
Joined
Apr 10, 2013
Messages
17
Let's say I have the following:

Min B
Min P
Column AColumn B
TypeValue
B170
P150
P151
B181
B100
P101

<tbody>
</tbody>


Is it possible to attribute the minimum value of the "B's" within my data range to the Min B cell and vice versa for the P value? Essentially find the minimum of each type (B or P) depending on what the cell adjacent to it is specifying? It would only be 2 types in the adjacent cells, B or P but mixed and matched within the data range as shown in the table and in no particular order. I want to report back in those 2 cells above the respective minimums for each.

Here's what I have, for finding the minimum of the values on the right, not too sure how to associate the adjacent values. FYI the reason it is set up is that I am not sure how many values I will have in a given file as it is user dependent.

=MIN(B5:OFFSET(B5|COUNT(B5:B1001)-1|0))
 

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.

Firefly2012

Well-known Member
Joined
Dec 28, 2011
Messages
3,638
Min B:

=MIN(IF(A5:A1001="B",B5:B1001))

entered with Ctrl+Shift+Enter.

Similar for P.
 

danzon

Well-known Member
Joined
Oct 11, 2010
Messages
662
edit: sorry, just realized my proposal would not work .. sorry about that
 
Last edited:
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,426
Messages
5,837,162
Members
430,480
Latest member
iangessey

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
Top