Finding a MAX and MIN value with criteria within a ALPHA-Numeric cloumnm

JChaney17

New Member
Joined
Feb 25, 2013
Messages
18
I am looking for a couple of formulas that will return a MAX and MIN value from a Alpha-numeric column with criteria. This is what I am looking at:

No.</SPAN>Tag No</SPAN>Type</SPAN>
1</SPAN>A001678</SPAN>P</SPAN>
2</SPAN>A001679</SPAN>S</SPAN>
3</SPAN>A001680</SPAN>S</SPAN>
4</SPAN>A001681</SPAN>P</SPAN>
5</SPAN>A001682</SPAN>E</SPAN>
6</SPAN>A001683</SPAN>E</SPAN>
7</SPAN>A001684</SPAN>S</SPAN>
8</SPAN>A001685</SPAN>S</SPAN>
9</SPAN>A001686</SPAN>S</SPAN>
10</SPAN>A001687</SPAN>S</SPAN>
11</SPAN>A001688</SPAN>S</SPAN>
12</SPAN>A001689</SPAN>P</SPAN>
13</SPAN>A001690</SPAN>P</SPAN>
14</SPAN>A001691</SPAN>P</SPAN>
15</SPAN>A001692</SPAN>E</SPAN>
16</SPAN>A001693</SPAN>E</SPAN>
17</SPAN>A001694</SPAN>S</SPAN>
18</SPAN>A001695</SPAN>S</SPAN>
19</SPAN>A001696</SPAN>S</SPAN>
20</SPAN>A001697</SPAN>S</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL><COL></COLGROUP>

I am wanting to look for "S" in the "TYPE" column, and then have MAX and MIN formula's look for the MAX and MIN values in the "Tag No" column. I can get the number to display, but I would like to have the MAX and MIN values displayed as "A00####".

Any help would be appreciated.

Thanks.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi

One formula option:


Excel 2007
ABCDEFGH
1No.Tag NoTypeSPE
21A001678PMaxA001697A001691A001693
32A001679SMinA001679A001678A001682
43A001680S
54A001681P
65A001682E
76A001683E
87A001684S
98A001685S
109A001686S
1110A001687S
1211A001688S
1312A001689P
1413A001690P
1514A001691P
1615A001692E
1716A001693E
1817A001694S
1918A001695S
2019A001696S
2120A001697S
Sheet3
Cell Formulas
RangeFormula
F2{=TEXT(MAX(IF($C$2:$C$21=F$1,MID($B$2:$B$21,2,255)+0)),"\A000000")}
F3{=TEXT(MIN(IF($C$2:$C$21=F$1,MID($B$2:$B$21,2,255)+0)),"\A000000")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Thanks...that worked great. Since I am not real familiar with these formula's, can you tell me what the MID and the "2,255" are doing?
 
Upvote 0
The MID is used to remove the "A" from the value (leaving just numeric digits):

MID(A1,2,255)

Says take all characters from the second character (255 used because it will always be longer than the actual Tag No so will always capture the remaining characters).
 
Upvote 0

Forum statistics

Threads
1,215,633
Messages
6,125,929
Members
449,274
Latest member
mrcsbenson

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