Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10
Default using min function without calculating 0 as minimum

I have a column with different values like this and so on I want to
calculate =Min(B1:B20) but I do not want to have 0 as minimum value.
I this function not to calculate 0 and tell me 2 as minimum value.
here is the example:
2
6
54
4
0
5
8
87
54
56
12
0

answer here is "0" but i want to have "2" as minimum value.

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,118
Default using min function without calculating 0 as minimum

Here are a couple options:

This one is an ARRAY FORMULA (committed with Ctrl+Shift+Enter, instead of
just Enter):
=MIN(IF(A1:A10,A1:A10))

This longer one is a regular formula:
=MIN(INDEX(A1:A10+(A1:A10=0)*10^99,0))

Adjust range references to suit your situation.

Is that something you can work with?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)


"chusu" wrote in message
ps.com...
I have a column with different values like this and so on I want to
calculate =Min(B1:B20) but I do not want to have 0 as minimum value.
I this function not to calculate 0 and tell me 2 as minimum value.
here is the example:
2
6
54
4
0
5
8
87
54
56
12
0

answer here is "0" but i want to have "2" as minimum value.



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,572
Default using min function without calculating 0 as minimum

Try this:

=SMALL(B1:B20,COUNTIF(B1:B20,0)+1)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"chusu" wrote in message
ps.com...
I have a column with different values like this and so on I want to
calculate =Min(B1:B20) but I do not want to have 0 as minimum value.
I this function not to calculate 0 and tell me 2 as minimum value.
here is the example:
2
6
54
4
0
5
8
87
54
56
12
0

answer here is "0" but i want to have "2" as minimum value.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I set a minimum value to be returned from IF function KW Excel Discussion (Misc queries) 1 June 27th 07 04:14 PM
Minimum function bikemrh Excel Discussion (Misc queries) 5 March 9th 07 08:25 PM
minimum function cutyfurby Excel Worksheet Functions 3 March 11th 06 06:47 PM
Can I retrieve a value and its format using the minimum function? daled Excel Worksheet Functions 1 November 2nd 05 09:38 PM
calculating the minimum value ignoring o jo jo Excel Worksheet Functions 1 June 29th 05 11:36 PM


All times are GMT +1. The time now is 06:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"