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))
 

Some videos you may like

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

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
655
edit: sorry, just realized my proposal would not work .. sorry about that
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,122,469
Messages
5,596,328
Members
414,054
Latest member
Sameer50

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