How to find the min number in a range?

smerrick

Active Member
Joined
Feb 10, 2009
Messages
255
How to find the min number in a range?

In column A I have a mixture of numbers and blank cells. What I need to do is to use a formula in column B that will tell me the min number in between those cells that have a number.

For example:

If Result (Min)

A1 5 B1 0
A2 Blank B2 3
A3 Blank B3 3
A4 3 B4 0
A5 Blank B5 2
A6 Blank B6 2
A7 Blank B7 2
A8 2 B8 0
A9 Blank B9 2
A10 7 B10 0


All that it is doing is to showing the user what the minimum number is between those cells that contain a number. Any help will be greatly appreciated.

Thanks
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hello,

I have tried to do that in my example above e.g. if cell A1 was 5 then the result in B1 would be zero. If cell A2 was blank then the result in B2 would be 3, and so on. For some reason it squashed everything up.

Thanks for looking
 
Upvote 0
I see. Try in B1 copied down:

=IF(ISNUMBER(A1),0,MIN(LOOKUP(2,1/A$1:A1,A$1:A1),INDEX(A1:A$10,MATCH(TRUE,INDEX(ISNUMBER(A1:A$10),),FALSE))))
 
Upvote 0
That's a perfect response, why thank you - if only I knew half what you know I could then be an 'expert'.
 
Upvote 0

Forum statistics

Threads
1,215,321
Messages
6,124,239
Members
449,149
Latest member
mwdbActuary

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