#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Min in array formula

Hi,

{=IF(SUM((HoleX=LoLim)*(HoleX<=HiLim)*Seal)=0,NA( ),IF(0,"Multiple",MAX((HoleX=LoLim)*(HoleX<=HiLim )*Seal)))}

The formula above is part of a spread sheet which im creating to select a
certain seal for certains holes.
The formula above works fine if its choosing the larger seal. (MAX)
But if i want the formula to choose the smaller seal then i thought this
would work.

{=IF(SUM((HoleX=LoLim)*(HoleX<=HiLim)*Seal)=0,NA( ),IF(0,"Multiple",MIN((HoleX=LoLim)*(HoleX<=HiLim )*Seal)))}

All i have done is changed the MAX to MIN. this now only results in 0.
I understand why it results in zero.
But i need to know how to make it select the smallest value other then zero.

Many Thanks,
--
Jonno
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Min in array formula

Maybe

=IF(SUM((HoleX=LoLim)*(HoleX<=HiLim)*Seal)=0,NA() ,IF(0,"Multiple",
MIN(IF((HoleX=LoLim)*(HoleX<=HiLim)*Seal<0,(Hole X=LoLim)*(HoleX<=HiLim)*Seal))))

BTW, what do you this this does

IF(0,"Multiple",...

--
__________________________________
HTH

Bob

"Jonno" wrote in message
...
Hi,

{=IF(SUM((HoleX=LoLim)*(HoleX<=HiLim)*Seal)=0,NA( ),IF(0,"Multiple",MAX((HoleX=LoLim)*(HoleX<=HiLim )*Seal)))}

The formula above is part of a spread sheet which im creating to select a
certain seal for certains holes.
The formula above works fine if its choosing the larger seal. (MAX)
But if i want the formula to choose the smaller seal then i thought this
would work.

{=IF(SUM((HoleX=LoLim)*(HoleX<=HiLim)*Seal)=0,NA( ),IF(0,"Multiple",MIN((HoleX=LoLim)*(HoleX<=HiLim )*Seal)))}

All i have done is changed the MAX to MIN. this now only results in 0.
I understand why it results in zero.
But i need to know how to make it select the smallest value other then
zero.

Many Thanks,
--
Jonno



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Min in array formula

Thanks bob this works fine!!!

Sorry my excel assistant did this formula i think i will have to have words.

Many thanks,
--
Jonno


"Bob Phillips" wrote:

Maybe

=IF(SUM((HoleX=LoLim)*(HoleX<=HiLim)*Seal)=0,NA() ,IF(0,"Multiple",
MIN(IF((HoleX=LoLim)*(HoleX<=HiLim)*Seal<0,(Hole X=LoLim)*(HoleX<=HiLim)*Seal))))

BTW, what do you this this does

IF(0,"Multiple",...

--
__________________________________
HTH

Bob

"Jonno" wrote in message
...
Hi,

{=IF(SUM((HoleX=LoLim)*(HoleX<=HiLim)*Seal)=0,NA( ),IF(0,"Multiple",MAX((HoleX=LoLim)*(HoleX<=HiLim )*Seal)))}

The formula above is part of a spread sheet which im creating to select a
certain seal for certains holes.
The formula above works fine if its choosing the larger seal. (MAX)
But if i want the formula to choose the smaller seal then i thought this
would work.

{=IF(SUM((HoleX=LoLim)*(HoleX<=HiLim)*Seal)=0,NA( ),IF(0,"Multiple",MIN((HoleX=LoLim)*(HoleX<=HiLim )*Seal)))}

All i have done is changed the MAX to MIN. this now only results in 0.
I understand why it results in zero.
But i need to know how to make it select the smallest value other then
zero.

Many Thanks,
--
Jonno




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
Array Formula Help Liz Excel Worksheet Functions 2 June 25th 08 01:43 AM
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
Array formula Constance Excel Discussion (Misc queries) 0 December 20th 05 07:16 PM
Array formula help please David Excel Worksheet Functions 3 November 4th 05 05:01 PM
Array Formula - using LEFT("text",4) in formula Andrew L via OfficeKB.com Excel Worksheet Functions 2 August 1st 05 02:36 PM


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