# Substitute for min, max,small,large..

#### kralimarko

##### Board Regular
I have some arrays, and i want to get the max value, but in some arrays instead of numbers i have text like BA12, BA14 and this formulas returns errors or 1. So i want formula that works for numbers and text values, that returns biggest value ,(1 value in descending order for text), thanks in advance.

### Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
I have some arrays, and i want to get the max value, but in some arrays instead of numbers i have text like BA12, BA14 and this formulas returns errors or 1. So i want formula that works for numbers and text values, that returns biggest value ,(1 value in descending order for text), thanks in advance.

Could you post small samples along with the desired results?

Col Col Col Col
I j k q
100938 200345 "empty" =MAXA(I2:K2;1), (200345)
100950 "empty" 200463 200463
"empty" BA12 BA14 BA14

In col.Q i need the formula that returns the results.(ex. 200345,200463,BA14)

Hi

If there is only "BA" before the number:
Code:
{=MAX(SUBSTITUTE(I1:K1&0,"BA","")*1)/10}
Array formula!
Do not enter the curly brackets {}.
Enter the formular with CTRL-SHIFT-ENTER instead of just ENTER.

Last edited:
Col Col Col Col
I j k q
100938 200345 "empty" =MAXA(I2:K2;1), (200345)
100950 "empty" 200463 200463
"empty" BA12 BA14 BA14

In col.Q i need the formula that returns the results.(ex. 200345,200463,BA14)

Without a test for text or numeric data...

Q1, control+shift+enter, not just enter, and copy down:

=INDEX(I1:K1,MATCH(MAX(COUNTIF(I1:K1,"<="&I1:K1)),COUNTIF(I1:K1,"<="&I1:K1),0))

Replies
7
Views
223
Replies
4
Views
305
Replies
1
Views
120
Replies
6
Views
115
Replies
1
Views
287

1,216,100
Messages
6,128,824
Members
449,470
Latest member
Subhash Chand

### 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.

### Which adblocker are you using?

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

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