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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,226,730
Messages
6,192,699
Members
453,747
Latest member
tylerhyatt04

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