modification required

mole999

Well-known Member
Joined
Oct 23, 2004
Messages
10,524
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
Any idea how to modify this to ignore blank cells. with the exact range encompassed it works to return the highest alphanumeric value

={INDEX(A2:A7,MATCH(MAX(COUNTIF(A2:A7,"<"&A2:A7)),COUNTIF(A2:A7,"<"&A2:A7),0))}

I want to use the value to allow SQL to import greater than the max value, from a column that is often sorted, and I can't predict where the max value might be sitting at the time of updated, currently over 24,000 rows and growing.

I could code it to return at that moment in time, but would prefer persistence of vision
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Re: modifiaction required

I might be missing something here, but I don't immediately see how your formula would be be impacted by blank cells?
 
Upvote 0
Re: modifiaction required

i don't know either but in a small test blank seems to fail it

Sheet1

A
1e01
2a01
3d01
4e01
5b01
6c02

<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 72px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
A1{=INDEX(A2:A7,MATCH(MAX(COUNTIF(A2:A7,"<"&A2:A7)),COUNTIF(A2:A7,"<"&A2:A7),0))}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4



testing again, and it works with blanks so i'm not sure whats happening

TOPTIP, check for calculation and length of selection :)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,580
Messages
6,125,654
Members
449,245
Latest member
PatrickL

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