Range problem

  • Thread starter Thread starter ace
  • Start date Start date
A

ace

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??
 
Hi,

Try this

=MIN(IF(A1:A8>0,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
 
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.
 
Hi
If data is in A1:A8 then

=MIN(IF(A1:A8>0,A1:A8,""))

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

regards
Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top