if or function; please help

  • Thread starter Thread starter hdayanan
  • Start date Start date
H

hdayanan

I am new to excel so please bear with me.

I have colomn a1:a8 with numbers
A
1 5
2 4
3 7
4 3
5 2
6 0
7 1
8 0


In B1 thru B8 I want to get the minimum of A1:A8 other than zero but
if corresponding row on A is zero return zero,

for ex: B1:B5 and B7 would return a value of 1 and B6 and B8 would
return 0

somebody please help me with a macro.

Kind Regards
Dan
 
whoops - shoudl have said if you dont need the 0's delete
the 0's then use the formula in col b like =IF(a1="",0,MIN
($a$1:$a$8)) and copy it down it shoudl do the trick
Gary
OZ
 
Will this work?

In B1 enter:

=IF(A2=0,0,MIN(IF($A$2:$A$9>0,$A$2:$A$9))) and enter with
CTRL SHIFT ENTER (an array formula)
 
patti and anonymous,

Both the formulas worked, I greatly appreciate your help and time.

Kind Regards
Da
 

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