Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ace ace is offline
external usenet poster
 
Posts: 19
Default Range problem

Guys,

i have a data set thus,
20
21
21.5
27
24
0
0
19.5

Now the range formula will take 27-0 and give me the answer as 27
but if I want the zeros to be discounted from the range formula is it
possible??
that is i want the range formula to take the max as 27 and in this case the
minimum as 19.5, can it be done??
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Range problem

Hi,

Try this

=MIN(IF(A1:A80,A1:A8))

This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

=Max(a1:a8)

for the max

Mike

"ace" wrote:

Guys,

i have a data set thus,
20
21
21.5
27
24
0
0
19.5

Now the range formula will take 27-0 and give me the answer as 27
but if I want the zeros to be discounted from the range formula is it
possible??
that is i want the range formula to take the max as 27 and in this case the
minimum as 19.5, can it be done??

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,722
Default Range problem

Is this actually a formula question?
Try the array* function
=MAX(A2:A10)-MIN(IF(A2:A10<0,A2:A10,"x"))

*Use Ctrl+Shift+Enter to confirm formula.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"ace" wrote:

Guys,

i have a data set thus,
20
21
21.5
27
24
0
0
19.5

Now the range formula will take 27-0 and give me the answer as 27
but if I want the zeros to be discounted from the range formula is it
possible??
that is i want the range formula to take the max as 27 and in this case the
minimum as 19.5, can it be done??

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Range problem

Hi
If data is in A1:A8 then

=MIN(IF(A1:A80,A1:A8,""))

and enter as an array formula using Ctr+shift+enter

regards
Paul

On Apr 2, 5:16*pm, ace wrote:
Guys,

i have a data set thus,
20
21
21.5
27
24
0
0
19.5

Now the range formula will take 27-0 and give me the answer as 27
but if I want the zeros to be discounted from the range formula is it
possible??
that is i want the range formula to take the max as 27 and in this case the
minimum as 19.5, can it be done??


  #5   Report Post  
Posted to microsoft.public.excel.programming
ace ace is offline
external usenet poster
 
Posts: 19
Default Range problem

Luke,

your formula worked like a charm.

thanks,

appreciate it,
Ace

"Mike H" wrote:

Hi,

Try this

=MIN(IF(A1:A80,A1:A8))

This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

=Max(a1:a8)

for the max

Mike

"ace" wrote:

Guys,

i have a data set thus,
20
21
21.5
27
24
0
0
19.5

Now the range formula will take 27-0 and give me the answer as 27
but if I want the zeros to be discounted from the range formula is it
possible??
that is i want the range formula to take the max as 27 and in this case the
minimum as 19.5, can it be done??

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
Find function for a Range failing in excel 2003 and giving subscriptout of range error 9 problem but works fine in excel 2000 Prince Excel Programming 5 February 10th 09 05:47 PM
Range problem Jac Tremblay[_4_] Excel Programming 9 November 11th 08 08:53 PM
Range problem Valeria Excel Programming 4 November 30th 07 08:44 AM
Range problem Ali Baba Excel Programming 1 September 10th 05 01:10 AM
getting value of range problem Grant Excel Programming 1 September 23rd 04 06:20 AM


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