differentiating between "and"/"or" in a formula

S

Shooter

I have values in cells A1:D1. In cell F1, I would like a formula that will
print the words "Max all" if A1>B1 and A1>C1 and A1>D1.
I would also like a formula in cell G1 that will print the words "Max one or
more" if A1>B1 or A1>C1 or A1>D1.
I do not want to use the "max" command in either of the above formulas.
Thanks for the help.
 
S

Shooter

The "large" function will be helpfull but I was really just trying to
determine the difference in a basic formula between "and" and "or" scenarios.
I am a bit of a novice and would really appreciate if you could write a
simple formula for the enclosed scenario. Thanks again.
 
F

Frank Kabel

Hi
just wondering why you do not want to use the MAX function (homework??)
But try:
IF(COUNTIF(B1:D1,"<" & A1)=3,"MAX",IF(COUNTIF(B1:D1,"<" & A1)>0,"MAX
one or more","smallest"))
 
K

K.S.Warrier

hi,
try this.
for F1, put =if(and(a1>b1,a1>c1,a1>d1),"max all","")
and for G1, put =if(or(a1>b1,a1>c1,a1>d1),"max one or more","")
K.S.Warrier
 
S

Shooter

Perfect... Thanks very much. I was struggling with the "or" formula. I
thought I was missing something simple.
 

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

Top