Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default minimum value in range

Min = Application.WorksheetFunction.Min(Range(Cells(Row% , 6), Cells(Row%,
9)))
if min=0 then.......

This command ignores blank cells , but i also want it to ignore cells
containing a value 0, or 0.0 or 0.00 , is this possible



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default minimum value in range

sStr = Cells(row,6).Resize(1,4).Address(0,0,,True)
dblMin = Evaluate("Min(if(IsNumber(" & sStr & ")*(" & _
sStr & "<0)," & sStr & "))")

--
Regards,
Tom Ogilvy



"SUNIL" wrote in message
...
Min = Application.WorksheetFunction.Min(Range(Cells(Row% , 6), Cells(Row%,
9)))
if min=0 then.......

This command ignores blank cells , but i also want it to ignore cells
containing a value 0, or 0.0 or 0.00 , is this possible





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default minimum value in range


Tom,
your solution is wonderful! Please, can you navigate me/us to othe
examples for 'Evaluate' ?

Thanks, Jarek



Tom Ogilvy Wrote:
sStr = Cells(row,6).Resize(1,4).Address(0,0,,True)
dblMin = Evaluate("Min(if(IsNumber(" & sStr & ")*(" & _
sStr & "<0)," & sStr & "))")

--
Regards,
Tom Ogilvy



"SUNIL" wrote in message
...
Min = Application.WorksheetFunction.Min(Range(Cells(Row% , 6)

Cells(Row%,
9)))
if min=0 then.......

This command ignores blank cells , but i also want it to ignor

cells
containing a value 0, or 0.0 or 0.00 , is this possible




--
Jare
-----------------------------------------------------------------------
Jarek's Profile: http://www.excelforum.com/member.php...info&userid=96
View this thread: http://www.excelforum.com/showthread.php?threadid=26759

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default minimum value in range

Evaluate will accept strings that would be valid if entered into a worksheet
cell. In this case, the string was an array formula.

--
Regards,
Tom Ogilvy


"Jarek" wrote in message
...

Tom,
your solution is wonderful! Please, can you navigate me/us to other
examples for 'Evaluate' ?

Thanks, Jarek



Tom Ogilvy Wrote:
sStr = Cells(row,6).Resize(1,4).Address(0,0,,True)
dblMin = Evaluate("Min(if(IsNumber(" & sStr & ")*(" & _
sStr & "<0)," & sStr & "))")

--
Regards,
Tom Ogilvy



"SUNIL" wrote in message
...
Min = Application.WorksheetFunction.Min(Range(Cells(Row% , 6),

Cells(Row%,
9)))
if min=0 then.......

This command ignores blank cells , but i also want it to ignore

cells
containing a value 0, or 0.0 or 0.00 , is this possible





--
Jarek
------------------------------------------------------------------------
Jarek's Profile:

http://www.excelforum.com/member.php...nfo&userid=965
View this thread: http://www.excelforum.com/showthread...hreadid=267591



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default minimum value in range


Thank you, Tom
Jare

--
Jare
-----------------------------------------------------------------------
Jarek's Profile: http://www.excelforum.com/member.php...info&userid=96
View this thread: http://www.excelforum.com/showthread.php?threadid=26759

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
Get a row number of range where a value is between minimum and max Tetsuya Oguma Excel Worksheet Functions 2 October 1st 08 01:00 AM
Sum of minimum values in a Range. BiggDC1 Excel Discussion (Misc queries) 2 June 20th 07 07:33 PM
The second minimum value in a range Manos Excel Worksheet Functions 1 December 5th 06 11:53 AM
How do I get "minimum value" in a range to NOT return zero? Blade Excel Worksheet Functions 4 February 2nd 05 02:06 AM
Minimum value in a range > 0 Barbara Excel Discussion (Misc queries) 3 January 25th 05 04:57 PM


All times are GMT +1. The time now is 09:59 AM.

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"