multi-conditional If Statements

J

Jennifer

I'm doing a spreadsheet that I need excel to return a
value if a given cell is between stated values. How do I
write the if statement with multiple conditions?
Basically, I need it to read:

If cell#1 >=1 and <50 then return x else return 0.

anybody? Anybody? Bueller?

Jenn
 
A

AO

-----Original Message-----
I'm doing a spreadsheet that I need excel to return a
value if a given cell is between stated values. How do I
write the if statement with multiple conditions?
Basically, I need it to read:

If cell#1 >=1 and <50 then return x else return 0.

anybody? Anybody? Bueller?

Jenn
.
 
L

Leo Heuser

Jennifer

One way:

=IF(AND(cell#1>=1, cell#1<50), x, 0)

--
Best Regards
Leo Heuser
MVP Excel

Followup to newsgroup only, please.
 

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