Minimum value if a column contains text

mxcman

New Member
Joined
Sep 6, 2016
Messages
2
I have a couple of data sets that I need to determine the minimum and maximum values. I have tried (and failed) to configure a formula that essentially says, IF Column A (Keys) contains "P:", then give me the minimum/maximum value of the corresponding value in Column B (Partial). The data sets are below.


Comparing "EC SFV 345"("EC") to "ECSFV345R"("KN")
Using a 10 second interval size.
Using a session duration of 78 seconds.
Keys Found: POQ1,2WY
KeysPartialExactOccrnceNonOccrn
P:100100100na
O:100100100na
Q:100100100100
1:757566.6750
,:78.8262.585.7150
2:100100100100
W:100100100100
Y:87.587.5087.5
Comparing " ECSFV310"("BW") to "EC SFV310R"("KL")
Using a 10 second interval size.
Using a session duration of 62 seconds.
Keys Found: \PO/Q1,2W
KeysPartialExactOccrnceNonOccrn
\:0000
P:96.4385.7100na
O:9571.4100na
/:0000
Q:100100100100
1:78.5771.483.3350
,:79.2142.9100100
2:92.8685.7100100
W:85.7185.78066.67

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>


I know the minimum of "P:" is 96.43 and the maximum is 100, but I will be working with several data sets.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
I think this might be what you're looking for. I'm not sure if you really mean to make reference to the entire column A, so I just included a range.

ABCDEFGHI
1KeysPartialMinMax
2P:100p:96.43100
3O:100
4Q:100
51:0075
6,:78.82
72:00100
8W:100
9Y:87.5
10
11KeysPartial
12\:0
13P:96.43
14O:95
15/:0
16Q:100
171:0078.57
18,:79.21
192:0092.86
20W:85.71

<colgroup><col style="******* 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet54

Worksheet Formulas
CellFormula
H2=1/AGGREGATE(14,6,1/((G2=A1:A20)*B1:B20),1)
I2=AGGREGATE(14,6,(G2=A1:A20)*B1:B20,1)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
I think this might be what you're looking for. I'm not sure if you really mean to make reference to the entire column A, so I just included a range.

ABCDEFGHI
1KeysPartialMinMax
2P:100p:96.43100
3O:100
4Q:100
51:0075
6,:78.82
72:00100
8W:100
9Y:87.5
10
11KeysPartial
12\:0
13P:96.43
14O:95
15/:0
16Q:100
171:0078.57
18,:79.21
192:0092.86
20W:85.71

<tbody>
</tbody>
Sheet54

Worksheet Formulas
CellFormula
H2=1/AGGREGATE(14,6,1/((G2=A1:A20)*B1:B20),1)
I2=AGGREGATE(14,6,(G2=A1:A20)*B1:B20,1)

<tbody>
</tbody>

<tbody>
</tbody>



But, is there an option to not remove the text?
 
Upvote 0

Forum statistics

Threads
1,216,074
Messages
6,128,652
Members
449,462
Latest member
Chislobog

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