Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
OkieViking
 
Posts: n/a
Default minimum greater than zero

I have a table populated with equations. I need to write a function to find
the smallest value in that table. However, I want to ignore the zero values.
From a dataset containing 8, 5, 0, 7 I want to find 5, not zero.

How do you do that?
  #2   Report Post  
Don Guillett
 
Posts: n/a
Default

This question seems to be going around today. Homework?

non array enter with enter only
=SMALL(C1:C10,COUNTIF(C1:C10,0)+1)

array - enter with control+shift+enter
=MIN(IF(C1:C100,C1:C10))


--
Don Guillett
SalesAid Software

"OkieViking" wrote in message
...
I have a table populated with equations. I need to write a function to

find
the smallest value in that table. However, I want to ignore the zero

values.
From a dataset containing 8, 5, 0, 7 I want to find 5, not zero.

How do you do that?



  #3   Report Post  
N Harkawat
 
Posts: n/a
Default

=min(if(a1:a10<0,a1:a10))
array entered (control+shift+enter)

will find the smallest of all non-zero values

"OkieViking" wrote in message
...
I have a table populated with equations. I need to write a function to
find
the smallest value in that table. However, I want to ignore the zero
values.
From a dataset containing 8, 5, 0, 7 I want to find 5, not zero.

How do you do that?



  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

=LARGE(A1:A5,COUNTIF(A1:A5,"0"))


Regards,

Peo Sjoblom

"OkieViking" wrote:

I have a table populated with equations. I need to write a function to find
the smallest value in that table. However, I want to ignore the zero values.
From a dataset containing 8, 5, 0, 7 I want to find 5, not zero.

How do you do that?

  #5   Report Post  
OkieViking
 
Posts: n/a
Default

No, not for me anyway. This is for work.

Thanks

"Don Guillett" wrote:

This question seems to be going around today. Homework?

non array enter with enter only
=SMALL(C1:C10,COUNTIF(C1:C10,0)+1)

array - enter with control+shift+enter
=MIN(IF(C1:C100,C1:C10))


--
Don Guillett
SalesAid Software

"OkieViking" wrote in message
...
I have a table populated with equations. I need to write a function to

find
the smallest value in that table. However, I want to ignore the zero

values.
From a dataset containing 8, 5, 0, 7 I want to find 5, not zero.

How do you do that?






  #6   Report Post  
OkieViking
 
Posts: n/a
Default

The cells I am looking at are all on one row, but every other column. How do
I make the below work?

"Don Guillett" wrote:

This question seems to be going around today. Homework?

non array enter with enter only
=SMALL(C1:C10,COUNTIF(C1:C10,0)+1)

array - enter with control+shift+enter
=MIN(IF(C1:C100,C1:C10))


--
Don Guillett
SalesAid Software

"OkieViking" wrote in message
...
I have a table populated with equations. I need to write a function to

find
the smallest value in that table. However, I want to ignore the zero

values.
From a dataset containing 8, 5, 0, 7 I want to find 5, not zero.

How do you do that?




  #7   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

OkieViking wrote:
The cells I am looking at are all on one row, but every other column. How do
I make the below work?

[...]

=MIN(IF((MOD(ROW(A3:A8)-CELL("Row",A3:A8)+0,2)=0)*A3:A8,A3:A8))

which you need to confirm with control+shift+enter instead of the usual
enter.

Adjust the range to suit.
  #8   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Make that...

=MIN(IF((MOD(ROW(A3:A8)-CELL("Row",A3:A8)+0,2)=0)*(A3:A8)0,A3:A8))

OkieViking wrote:
The cells I am looking at are all on one row, but every other column. How do
I make the below work?

"Don Guillett" wrote:


This question seems to be going around today. Homework?

non array enter with enter only
=SMALL(C1:C10,COUNTIF(C1:C10,0)+1)

array - enter with control+shift+enter
=MIN(IF(C1:C100,C1:C10))


--
Don Guillett
SalesAid Software

"OkieViking" wrote in message
...

I have a table populated with equations. I need to write a function to


find

the smallest value in that table. However, I want to ignore the zero


values.

From a dataset containing 8, 5, 0, 7 I want to find 5, not zero.

How do you do that?




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Hecwill
 
Posts: n/a
Default minimum greater than zero

Hi, I found this formula very helpful, but how can I make it to work in a
conditional formating ?Gives error.

array - enter with control+shift+enter
=MIN(IF(C1:C100,C1:C10))



"OkieViking" wrote:

No, not for me anyway. This is for work.

Thanks

"Don Guillett" wrote:

This question seems to be going around today. Homework?

non array enter with enter only
=SMALL(C1:C10,COUNTIF(C1:C10,0)+1)

array - enter with control+shift+enter
=MIN(IF(C1:C100,C1:C10))


--
Don Guillett
SalesAid Software

"OkieViking" wrote in message
...
I have a table populated with equations. I need to write a function to

find
the smallest value in that table. However, I want to ignore the zero

values.
From a dataset containing 8, 5, 0, 7 I want to find 5, not zero.

How do you do that?




  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default minimum greater than zero

Hi!

Assume you want to conditionally format the range C1:C10.

Select the range C1:C10
Goto FormatConditional Formatting
Formula is: =C1=MIN(IF(C$1:C$100,C$1:C$10))
Click the Format button
Select the desired style(s)
OK out

Biff

"Hecwill" wrote in message
...
Hi, I found this formula very helpful, but how can I make it to work in a
conditional formating ?Gives error.

array - enter with control+shift+enter
=MIN(IF(C1:C100,C1:C10))



"OkieViking" wrote:

No, not for me anyway. This is for work.

Thanks

"Don Guillett" wrote:

This question seems to be going around today. Homework?

non array enter with enter only
=SMALL(C1:C10,COUNTIF(C1:C10,0)+1)

array - enter with control+shift+enter
=MIN(IF(C1:C100,C1:C10))


--
Don Guillett
SalesAid Software

"OkieViking" wrote in message
...
I have a table populated with equations. I need to write a function
to
find
the smallest value in that table. However, I want to ignore the zero
values.
From a dataset containing 8, 5, 0, 7 I want to find 5, not zero.

How do you do that?





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
Minimum value in a range > 0 Barbara Excel Discussion (Misc queries) 3 January 25th 05 04:57 PM
lookup - return minimum value Steve R Excel Worksheet Functions 7 December 30th 04 04:44 AM
Sum minimum values in a pivot table AK Excel Worksheet Functions 1 December 22nd 04 08:55 PM
If Greater than when a formula Results in N/A John Excel Worksheet Functions 2 December 15th 04 08:19 PM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 02:06 AM


All times are GMT +1. The time now is 12:10 PM.

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

About Us

"It's about Microsoft Excel"