Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=IF(AND(A2>50,B2="Yes"),"Approved","Rejected")Computed by a real spreadsheet engine on the sample data below.
| Score | Approved | Result |
| 75 | Yes | |
| 30 | Yes | |
| 80 | No | |
| 60 | Yes |
=IF(AND(A2>50,B2="Yes"),"Approved","Rejected")→Approved
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need it for your exact data?
Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.
Both AND and OR accept up to 255 conditions in a single formula.
AND returns TRUE only when every condition is true. OR returns TRUE when at least one condition is true.
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-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.
How-toUse IF with AND to return a value only when all specified conditions are simultaneously true in Excel or Google Sheets.
How-toUse IF with OR to return a value when at least one of several conditions is true in Excel or Google Sheets.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: