Format Error using "IF" with "AND"

Mike Slattery

Board Regular
Joined
Dec 11, 2004
Messages
101
Hi:

Excel Mac 2011 wants to correct the following formula by adding a times symbol (*) between two elements of the formula?

Can someone tell me the correct format for the following formula?

=IF(AND(CO3>0,CK3<3,)CA3,"",)

I want the value in CA3 if both conditions are true and nothing if neither or only one condition is true.

Thanks for you help,

Michael
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi Michael

Try:

=IF(AND(CO3>0,CK3<3),CA3,"")


I want the value in CA3 if both conditions are true and nothing if neither or only one condition is true.

Remark: it's not possible to have the cell with nothing (empty) as a result of a formula. In this case the formula returns a null string if the conditions are not met.
 
Upvote 0
Mike, looks like misplaced commas, try….


=IF(AND(CO3>0,CK3<3),CA3,"")
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top