Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Is there a function to perform this operation?

Let me see if I can explain this. I have these
range of cells: (D7,D37,D67,D97,D127,D157,D187,D217,D247,D277), and when I
use the MIN() function =MIN(D7,D37,D67,D97,D127,D157,D187,D217,D247,D277) I
get 0 because the values in the range are (1,5,0,5,0,0,1,3,1,2). But I want
my result to be 1 because 1 is the next higher number to zero in the range.
In the same instance, if the values in the range are
(14,14,0,14,0,0,14,0,14,14) I want my result to be 14, because 14 is the next
higher number to zero in the range. This is want I am trying to achieve.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Is there a function to perform this operation?

See cpearson website

http://www.cpearson.com/Excel/lists.htm#Functions

"Ayo" wrote:

Let me see if I can explain this. I have these
range of cells: (D7,D37,D67,D97,D127,D157,D187,D217,D247,D277), and when I
use the MIN() function =MIN(D7,D37,D67,D97,D127,D157,D187,D217,D247,D277) I
get 0 because the values in the range are (1,5,0,5,0,0,1,3,1,2). But I want
my result to be 1 because 1 is the next higher number to zero in the range.
In the same instance, if the values in the range are
(14,14,0,14,0,0,14,0,14,14) I want my result to be 14, because 14 is the next
higher number to zero in the range. This is want I am trying to achieve.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Is there a function to perform this operation?

Assuming the numbers are always positive.

Try this array formula** :

=MIN(IF((MOD(ROW(D7:D277)-ROW(D7),30)=0)*(D7:D2770),D7:D277))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Ayo" wrote in message
...
Let me see if I can explain this. I have these
range of cells: (D7,D37,D67,D97,D127,D157,D187,D217,D247,D277), and when
I
use the MIN() function =MIN(D7,D37,D67,D97,D127,D157,D187,D217,D247,D277)
I
get 0 because the values in the range are (1,5,0,5,0,0,1,3,1,2). But I
want
my result to be 1 because 1 is the next higher number to zero in the
range.
In the same instance, if the values in the range are
(14,14,0,14,0,0,14,0,14,14) I want my result to be 14, because 14 is the
next
higher number to zero in the range. This is want I am trying to achieve.




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
I cannot perform this function PLEASE HELP! Sunny Excel Worksheet Functions 5 March 10th 08 08:20 PM
perform 1 function, stop, perform different function nastech Excel Discussion (Misc queries) 0 August 22nd 06 12:21 PM
Complex Macro to perform an operation as it steps down cells? Jeni Q Excel Worksheet Functions 0 August 25th 05 04:38 PM
microsoft outlook unable to perform operation - send = receive. heibner Excel Discussion (Misc queries) 1 July 13th 05 09:05 AM
In Excel - a function or operation for "view visible cells" gpyogi Excel Discussion (Misc queries) 3 March 17th 05 06:48 PM


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