Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Return the minimum number in a range excluding zero

Hi

I am currently using the following to find the maximum value in a
range($G$120:$G$219), when the corresponding value in range ($H$120:$H$219)
is equal to a specific value.
=SUMPRODUCT(MAX(($H$120:$H$219=DF120)*($G$120:$G$2 19)))

My problem is that when i try to find the minimum by substuting the MAX()
for MIN() i always get a Zero.

Can anyone suggest how to return the lowest value that is not zero
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Return the minimum number in a range excluding zero

One way with an ARRAY formula. You may have to use .000001
=INDEX(J2:J22,MATCH(MIN(IF(H2:H220.00001,H2:H22)) ,H2:H22))


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Jive" wrote in message
...
Hi

I am currently using the following to find the maximum value in a
range($G$120:$G$219), when the corresponding value in range
($H$120:$H$219)
is equal to a specific value.
=SUMPRODUCT(MAX(($H$120:$H$219=DF120)*($G$120:$G$2 19)))

My problem is that when i try to find the minimum by substuting the MAX()
for MIN() i always get a Zero.

Can anyone suggest how to return the lowest value that is not zero


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Return the minimum number in a range excluding zero

Try:
=MIN(IF(($G$120:$G$219)<0,($H$120:$H$219=DF120)*$ G$120:$G$219))

Entered as an array formula using Ctrl+Shift+Enter.

You should get {} brackets round the formula if it is entered correctly.

"Jive" wrote:

Hi

I am currently using the following to find the maximum value in a
range($G$120:$G$219), when the corresponding value in range ($H$120:$H$219)
is equal to a specific value.
=SUMPRODUCT(MAX(($H$120:$H$219=DF120)*($G$120:$G$2 19)))

My problem is that when i try to find the minimum by substuting the MAX()
for MIN() i always get a Zero.

Can anyone suggest how to return the lowest value that is not zero

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Return the minimum number in a range excluding zero

Try this ARRAY FORMULA, committed with CTRL+SHIFT+ENTER, instead of just
ENTER:
=MIN(IF($H$120:$H$219=DF120,$G$120:$G$219))

or....maybe this (to exclude any Col_G zero values:
=MIN(IF(($H$120:$H$219=DF120)*($G$120:$G$219<0),$ G$120:$G$219))

Does that help?
Post back if you have more questions.
--------------------------

Regards,

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

"Jive" wrote in message
...
Hi

I am currently using the following to find the maximum value in a
range($G$120:$G$219), when the corresponding value in range
($H$120:$H$219)
is equal to a specific value.
=SUMPRODUCT(MAX(($H$120:$H$219=DF120)*($G$120:$G$2 19)))

My problem is that when i try to find the minimum by substuting the MAX()
for MIN() i always get a Zero.

Can anyone suggest how to return the lowest value that is not zero



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
finding minimum value excluding zero bookman3 Excel Discussion (Misc queries) 6 January 31st 07 03:31 AM
Finding Minimum Value in series, excluding zero values [email protected] Excel Worksheet Functions 5 January 30th 07 08:21 PM
average of several cells excluding the minimum Ashley32 Excel Discussion (Misc queries) 1 March 10th 06 06:30 PM
Return minimum POSITVE value from range TheRobsterUK Excel Discussion (Misc queries) 7 September 27th 05 02:23 PM
How do I get "minimum value" in a range to NOT return zero? Blade Excel Worksheet Functions 4 February 2nd 05 02:06 AM


All times are GMT +1. The time now is 09:29 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"