Lowest Number >0 in a Range

AlexanderBB

Well-known Member
Joined
Jul 1, 2009
Messages
2,072
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Hunting for this I found

But oddly I can't get them working
MsgBox [min(if(a1:a100<>0,a1:a100))]

I changed this to MsgBox [min(if(y23:cp23<>0,y23:cp23))]
It results in 0 which is wrong. Is it because the intent is a vertical range and mine is horizontal?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
What exactly do you have in Y23:CP23?

Are they numbers? Or text values?

By the way, "lowest non-zero value" is not the same as "lowest number >0" if the range can include negative numbers.
 
Upvote 0
They are numbers but in text Format. no negatives. Some have trailing "=".
It's the column that's wanted. to change the Font.ColorIndex.
 
Upvote 0
Then they are text and not numbers, text is treated as greater than numbers including zero
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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