Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
joie
 
Posts: n/a
Default minimum from various columns without zeroes

Hi! Just a question:

I was computing for the minimum, using =min(f16,k16,p16,z16) but the problem
is I don't want the minimum to equal to zero (I want to see the lowest
positive number from these columns instead of zero).

Is there a way not to include zeroes from these columns in looking for the
minimum?

Thanks a lot!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default minimum from various columns without zeroes

If there is some pattern or a range it can be done by

=MIN(IF(F16:Z160,F16:Z16))

entered with ctrl + shift & enter

or with a pattern like every 5th cell like with F16, K16 and P16

=MIN(IF((MOD(COLUMN(F16:Z16),5)=1)*(F16:Z160),F16 :Z16))

entered with ctrl + shift & enter

however since you jump to Z16 from K16 one cannot use that unless you missed
out U16?

it's probably easier to check each cell since there are only 4 otherwise
this might work

=INDEX(SMALL((F16,K16,P16,Z16),ROW(INDIRECT("1:"&C OUNT(F16,K16,P16,Z16)))),MATCH(TRUE,SMALL((F16,K16 ,P16,Z16),ROW(INDIRECT("1:"&COUNT(F16,K16,P16,Z16) )))0,0))

entered with ctrl + shift & enter

or

=MIN(IF(LARGE((F16,K16,P16,Z16),ROW(INDIRECT("1:"& COUNT(F16,K16,P16,Z16))))0,LARGE((F16,K16,P16,Z16 ),ROW(INDIRECT("1:"&COUNT(F16,K16,P16,Z16))))))

entered the same way




--
Regards,

Peo Sjoblom

(No private emails please)


"joie" wrote in message
...
Hi! Just a question:

I was computing for the minimum, using =min(f16,k16,p16,z16) but the
problem
is I don't want the minimum to equal to zero (I want to see the lowest
positive number from these columns instead of zero).

Is there a way not to include zeroes from these columns in looking for the
minimum?

Thanks a lot!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
joie
 
Posts: n/a
Default minimum from various columns without zeroes

Hey! Thanks!

Actually, I just missed out U16... Sorry, my mistake...:)

But thanks! Thanks! Thanks! The formula worked like magic! :)

"Peo Sjoblom" wrote:

If there is some pattern or a range it can be done by

=MIN(IF(F16:Z160,F16:Z16))

entered with ctrl + shift & enter

or with a pattern like every 5th cell like with F16, K16 and P16

=MIN(IF((MOD(COLUMN(F16:Z16),5)=1)*(F16:Z160),F16 :Z16))

entered with ctrl + shift & enter

however since you jump to Z16 from K16 one cannot use that unless you missed
out U16?

it's probably easier to check each cell since there are only 4 otherwise
this might work

=INDEX(SMALL((F16,K16,P16,Z16),ROW(INDIRECT("1:"&C OUNT(F16,K16,P16,Z16)))),MATCH(TRUE,SMALL((F16,K16 ,P16,Z16),ROW(INDIRECT("1:"&COUNT(F16,K16,P16,Z16) )))0,0))

entered with ctrl + shift & enter

or

=MIN(IF(LARGE((F16,K16,P16,Z16),ROW(INDIRECT("1:"& COUNT(F16,K16,P16,Z16))))0,LARGE((F16,K16,P16,Z16 ),ROW(INDIRECT("1:"&COUNT(F16,K16,P16,Z16))))))

entered the same way




--
Regards,

Peo Sjoblom

(No private emails please)


"joie" wrote in message
...
Hi! Just a question:

I was computing for the minimum, using =min(f16,k16,p16,z16) but the
problem
is I don't want the minimum to equal to zero (I want to see the lowest
positive number from these columns instead of zero).

Is there a way not to include zeroes from these columns in looking for the
minimum?

Thanks a lot!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Cutter
 
Posts: n/a
Default minimum from various columns without zeroes


How about:

=IF(MIN(F16,K16,P16,Z16)=0,SMALL((F16,K16,P16,Z16) ,2),MIN(F16,K16,P16,Z16))


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=488953

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default minimum from various columns without zeroes

I must admit I thought so since the 3 first had a pattern
thanks for the feedback

--
Regards,

Peo Sjoblom

(No private emails please)


"joie" wrote in message
...
Hey! Thanks!

Actually, I just missed out U16... Sorry, my mistake...:)

But thanks! Thanks! Thanks! The formula worked like magic! :)

"Peo Sjoblom" wrote:

If there is some pattern or a range it can be done by

=MIN(IF(F16:Z160,F16:Z16))

entered with ctrl + shift & enter

or with a pattern like every 5th cell like with F16, K16 and P16

=MIN(IF((MOD(COLUMN(F16:Z16),5)=1)*(F16:Z160),F16 :Z16))

entered with ctrl + shift & enter

however since you jump to Z16 from K16 one cannot use that unless you
missed
out U16?

it's probably easier to check each cell since there are only 4 otherwise
this might work

=INDEX(SMALL((F16,K16,P16,Z16),ROW(INDIRECT("1:"&C OUNT(F16,K16,P16,Z16)))),MATCH(TRUE,SMALL((F16,K16 ,P16,Z16),ROW(INDIRECT("1:"&COUNT(F16,K16,P16,Z16) )))0,0))

entered with ctrl + shift & enter

or

=MIN(IF(LARGE((F16,K16,P16,Z16),ROW(INDIRECT("1:"& COUNT(F16,K16,P16,Z16))))0,LARGE((F16,K16,P16,Z16 ),ROW(INDIRECT("1:"&COUNT(F16,K16,P16,Z16))))))

entered the same way




--
Regards,

Peo Sjoblom

(No private emails please)


"joie" wrote in message
...
Hi! Just a question:

I was computing for the minimum, using =min(f16,k16,p16,z16) but the
problem
is I don't want the minimum to equal to zero (I want to see the lowest
positive number from these columns instead of zero).

Is there a way not to include zeroes from these columns in looking for
the
minimum?

Thanks a lot!






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default minimum from various columns without zeroes

What if there are 2 values with zero?

--
Regards,

Peo Sjoblom

(No private emails please)


"Cutter" wrote in
message ...

How about:

=IF(MIN(F16,K16,P16,Z16)=0,SMALL((F16,K16,P16,Z16) ,2),MIN(F16,K16,P16,Z16))


--
Cutter
------------------------------------------------------------------------
Cutter's Profile:
http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=488953


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 to swap rows and columns? [email protected] Excel Discussion (Misc queries) 5 September 21st 05 08:07 AM
Help with grouping columns couriced New Users to Excel 5 September 2nd 05 05:07 PM
Hiding columns and custom views problem Bettergains Excel Discussion (Misc queries) 2 April 12th 05 11:48 PM
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns foofoo Excel Discussion (Misc queries) 1 April 2nd 05 12:02 AM
Counting the Contents of Two Columns Molochi Excel Discussion (Misc queries) 6 December 22nd 04 08:13 PM


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