ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Needing to know how to use a "and" in a formula.... (https://www.excelbanter.com/excel-worksheet-functions/5685-needing-know-how-use-%22%22-formula.html)

Eric

Needing to know how to use a "and" in a formula....
 
I'm trying to use an and statment in an if formula to only run a
formula if both cells have data in them. For simplicity lets use:

if(a1="" and a2="","Not enough data",a1+a2)

Any ideas?


hi,
try this format
=if(and(a1="",a2=""),"not enough data",A1+A2)

-----Original Message-----
I'm trying to use an and statment in an if formula to

only run a
formula if both cells have data in them. For simplicity

lets use:

if(a1="" and a2="","Not enough data",a1+a2)

Any ideas?
.



All times are GMT +1. The time now is 12:43 PM.

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