Filter alphanumeric values and find maximum

dcuthill

New Member
Joined
Sep 9, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I have a column of alphanumeric data and want to determine the maximum value in the range but only for values within the range that have a prefix of "EP".

I have been able to develop this which gives me the maximum alphanumeric but cannot figure out how to filter for only the EP prefix. The data is currently in the static column of I6 to I26 but the lower range could extend beyond row 26 in future.

=LOOKUP(2,1/(COUNTIF(I6:I26,">"&I6:I26)=0),I6:I26)

any guidance would be appreciated. Thank you
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I am not clear on what you are trying to do an some sample data using XL2BB would be useful..
Instructions on using this tool can be found here: XL2BB Add-in

In the meantime does this do what you want ?
Excel Formula:
=TAKE(SORT(FILTER($I$6:$I$26,LEFT($I$6:$I$26,2)="EP")),-1)
 
Upvote 0
Solution
Try change to:

=LOOKUP(2,1/(COUNTIFS(I6:I26,"EP*",I6:I26,">"&I6:I26)=0)/(LEFT(I6:I26,2)="EP"),I6:I26)
 
Upvote 0
=TAKE(SORT(FILTER($I$6:$I$26,LEFT($I$6:$I$26,2)="EP")),-1)
Thanks this achieves what I want. As to what I am trying to do. The column has data that starts with EP0000 and RDL0000 - if I use the formula, I posted then the RDL values are always considered as the maximum, but I wanted to know which the EP values was the greatest.
 
Upvote 0
Try change to:

=LOOKUP(2,1/(COUNTIFS(I6:I26,"EP*",I6:I26,">"&I6:I26)=0)/(LEFT(I6:I26,2)="EP"),I6:I26)
Thanks I should have also commented that this formula also achieved the desired result. Many ways to "skin a cat" so to speak.
 
Upvote 0
Thank you for testing and giving feedback on all the options offered. Glad we could help.
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,963
Members
449,094
Latest member
Anshu121

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