ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Using "If" combined with "AND" statements (https://www.excelbanter.com/new-users-excel/165236-using-if-combined-statements.html)

Roger Bell

Using "If" combined with "AND" statements
 
I am trying to enter a formula as below, but it is not accepted.

=IF(G30 'AND' g3<251,G3*1.2,0)

Can anyone help with where I am going wrong. With Thanks.

Ron Coderre

Using "If" combined with "AND" statements
 
You're actually pretty close...

Try this:
=IF(AND(G30,G3<251),G3*1.2,0)

or...another variation:
=AND(G30,G3<251)*(G3*1.2)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Roger Bell" wrote in message
...
I am trying to enter a formula as below, but it is not accepted.

=IF(G30 'AND' g3<251,G3*1.2,0)

Can anyone help with where I am going wrong. With Thanks.





All times are GMT +1. The time now is 11:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com