Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
gezuvor
 
Posts: n/a
Default Calculate MIN excluding zero


I am trying to calculate the MIN of several non-consecutive columns, but
want the calculation to ignore columns that have no value or zero (0) in
them.

The columns being queried have calculations of their own in them, but
hopefully that isn't part of the problem.

Anyway, the calculation I am using is =MIN(G291,I291,K291,M291), which
will return a zero/null value if one of the cells is empty. I did a
search and MSFT tells me I should use =MIN(A1:A100,A1:A10), which
doesn't work for me.

Suggestions?


--
gezuvor
------------------------------------------------------------------------
gezuvor's Profile: http://www.excelforum.com/member.php...o&userid=30383
View this thread: http://www.excelforum.com/showthread...hreadid=513898

  #2   Report Post  
Posted to microsoft.public.excel.misc
gezuvor
 
Posts: n/a
Default Calculate MIN excluding zero


The search feature on this site is rubbish, but Google found this...

http://www.excelforum.com//showthread.php?t=482399

Works perfectly. Thank you bpeltzer!


--
gezuvor
------------------------------------------------------------------------
gezuvor's Profile: http://www.excelforum.com/member.php...o&userid=30383
View this thread: http://www.excelforum.com/showthread...hreadid=513898

  #3   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default Calculate MIN excluding zero

Use SMALL()


=IF(SMALL(C6:G6,1)=0,SMALL(C6:G6,2),SMALL(C6:G6,1) )
--
Gary's Student


"gezuvor" wrote:


I am trying to calculate the MIN of several non-consecutive columns, but
want the calculation to ignore columns that have no value or zero (0) in
them.

The columns being queried have calculations of their own in them, but
hopefully that isn't part of the problem.

Anyway, the calculation I am using is =MIN(G291,I291,K291,M291), which
will return a zero/null value if one of the cells is empty. I did a
search and MSFT tells me I should use =MIN(A1:A100,A1:A10), which
doesn't work for me.

Suggestions?


--
gezuvor
------------------------------------------------------------------------
gezuvor's Profile: http://www.excelforum.com/member.php...o&userid=30383
View this thread: http://www.excelforum.com/showthread...hreadid=513898


  #4   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Calculate MIN excluding zero



=MIN(IF((MOD(COLUMN(G291:M291),2)=1)*(G291:M291<0 ),G291:M291))

entered with ctrl + shift & enter

and it will only check every other cell, if the formula from the link works
then this will work as well

=MIN(IF(G291:M291<0,G291:M291))

also entered with ctrl + shift & enter, if you only want values greater than
zero change
< to



--

Regards,

Peo Sjoblom

Northwest Excel Solutions

Portland, Oregon




"gezuvor" wrote in
message ...

The search feature on this site is rubbish, but Google found this...

http://www.excelforum.com//showthread.php?t=482399

Works perfectly. Thank you bpeltzer!


--
gezuvor
------------------------------------------------------------------------
gezuvor's Profile:
http://www.excelforum.com/member.php...o&userid=30383
View this thread: http://www.excelforum.com/showthread...hreadid=513898


  #5   Report Post  
Posted to microsoft.public.excel.misc
gezuvor
 
Posts: n/a
Default Calculate MIN excluding zero


More excellent replies! Thank you!!


--
gezuvor
------------------------------------------------------------------------
gezuvor's Profile: http://www.excelforum.com/member.php...o&userid=30383
View this thread: http://www.excelforum.com/showthread...hreadid=513898

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
Calculate A Date Excluding Weekends And Holidays travelersway New Users to Excel 10 February 9th 12 07:34 PM
Calculate A Date Excluding Weekends And Holidays travelersway New Users to Excel 1 February 8th 06 08:56 PM
Calculate Hours and overtime by week gregt812 Excel Worksheet Functions 1 November 23rd 05 07:03 PM
Spreadsheet Won't Calculate Scott Excel Discussion (Misc queries) 0 September 29th 05 05:37 PM
formula to calculate # of days between dates, excluding holidays abs2299 Excel Discussion (Misc queries) 8 March 3rd 05 02:21 AM


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