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

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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
e01
a01
d01
e01
b01
c02

<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 72px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]1[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]2[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]3[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]4[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]5[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]6[/TD]

</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,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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