Formula help, please

M

mgoldman

I'm an Excel novice and can't seem to grasp nested formulas. Can
someone please show me how to create a formula that will do what this
logical statement does:

IF F2=0.00 and G2=0.00 and H2=0.00 and I2=0.00 and J2=0.00,
THEN "No Prices"
IF NOT (meaning if any one or more of the results is more than 0.00)
THEN "OK"

Seems simple in English.....

Thanks,
Mike
 
J

JE McGimpsey

I'm an Excel novice and can't seem to grasp nested formulas. Can
someone please show me how to create a formula that will do what this
logical statement does:

IF F2=0.00 and G2=0.00 and H2=0.00 and I2=0.00 and J2=0.00,
THEN "No Prices"
IF NOT (meaning if any one or more of the results is more than 0.00)
THEN "OK"

Seems simple in English.....

One way:

=IF(COUNTIF(F2:J2,">0"),"OK","No Prices")
 
J

JE McGimpsey

Bob Greenblatt said:
On 9/27/05 1:18 AM, in article
(e-mail address removed), "JE McGimpsey"


Or, isn't it simpler still as:
=if(sum(f2:j2)=0,"No Prices","OK")

Yup. Thanks. Only functional difference is that COUNTIF will ignore
error values and SUM() won't.
 

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