find maximum number among mixed data

LZZ

New Member
Joined
Mar 15, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am trying to condense some large data sets by finding the maximum value in a range of data that contains both numbers and text.
In my example I'd like the highlighted cell to show the highest numerical value if one exists (4 in this case), if there's none of these then show the value of the highest 'less than' (<2 here) or if there's neither of these then just return a dash.
I'm having a bit of trouble wrapping my head around this one, can anyone think of a way to get this to work?
thanks
 

Attachments

  • example.png
    example.png
    9.6 KB · Views: 7

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Give this a try:
Book4
ABCD
1valuevaluevalue
2---
3---
4---
52.5--
6---
73--
84--
9---
10<1--
11<2--
12---
13---
14---
151.4--
161.2--
17< 0.1< 0.1-
18< 0.5< 0.5b
19
204< 0.5-
Sheet1
Cell Formulas
RangeFormula
B20:D20B20=IFERROR(IF(COUNT(B$2:B$18)>0,MAX(B$2:B$18),"< "&AGGREGATE(14,6,RIGHT(B$2:B$18,LEN(B$2:B$18)-SEARCH("< ",B$2:B$18)-1)/ISTEXT(B$2:B$18),1)),"-")
 
Upvote 0
Solution
I'm happy to help...and welcome to the Board!
 
Upvote 0

Forum statistics

Threads
1,212,927
Messages
6,110,714
Members
448,294
Latest member
jmjmjmjmjmjm

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