Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=IF(AND(A2>0,B2>0),"Both Positive","Not Both Positive")Computed by a real spreadsheet engine on the sample data below.
| Value A | Value B | Result |
| 5 | 10 | |
| -3 | 8 | |
| 7 | -2 | |
| 4 | 6 |
=IF(AND(A2>0,B2>0),"Both Positive","Not Both Positive")→Both Positive
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
Yes. Conditions work with text, numbers, or dates: AND(A2="Yes",B2>100,C2<>"Exclude") is perfectly valid.
An empty cell evaluates to 0 or FALSE depending on context. A condition like A2>0 will be FALSE for an empty cell.
Replace #N/A, #DIV/0!, and other errors with a blank or a friendly message using IFERROR or IFNA. Works in Excel and Google Sheets.
Error fixNested IF formulas not working in Excel and Google Sheets — fix bracket mismatches, wrong evaluation order, overlapping conditions, and the 64-nesting limit.
How-toCheck if a cell contains specific text with IF + ISNUMBER + SEARCH and return any value you want — plus case-sensitive checks, multiple keywords, and wildcard alternatives.
How-toStop formulas showing 0: wrap them in IF to return an empty string, suppress zeros with a custom number format, or hide them sheet-wide — plus the VLOOKUP-returns-0 fix.
How-toUse SUMIF with wildcard criteria (*text*) to sum values in a column whenever a related column contains a specific substring.
How-toChain multiple IF functions inside each other to test several conditions and return different results for each scenario.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: