You current formula is not set up correctly (nor logically). Given only what you've shown here, this should work:

=IF(AND( D2<DATE(YEAR(TODAY()),MONTH(TODAY())-20,DAY(TODAY())), REGEXMATCH(M2,"text") ),TRUE,FALSE)

Notice that the AND( ) contains both conditions here, whereas your original formula had it only around the second condition.

However, a shorter version of this would be as follows:

=AND( D2<DATE(YEAR(TODAY()),MONTH(TODAY())-20,DAY(TODAY())), REGEXMATCH(M2,"text") )

... since the result of a properly functioning AND( ) is always TRUE or FALSE anyway.

Answer from Erik Tyler on Stack Overflow
🌐
Reddit
reddit.com › r/googlesheets › how do i include multiple conditions and outcomes in a google sheets formula
r/googlesheets on Reddit: How do I include multiple conditions and outcomes in a google sheets formula
January 23, 2025 -

I'm trying to find a formula that will check the content of a cell, and give me different outcomes depending on what is written there (or chosen in a drop down list, if that's possible).

For context, I'm keeping inventory on items I sell, and I'd like if when I chose the size in a cell ("S", "M" or "L"), the next cell showing the price will automatically show the price corresponding to that size (in order, "4$" "5$" and "6$")

I've tried using "=IF", then "=IFS" functions, and even "=IF(or", but nothing works so far. I've triple-checked my syntaxe, but I'm new to this so maybe I missed something? Would there also be a simpler way that I'm missing?

In the image I'm using =IFS(D2<5;"S", IF(D2=5;"M", IF(D2>5;"L"))) and I tried replacing the semicolons by commas, still no go

Thanks!

EDIT:

Thanks to Squishiest-Grape for solving my problem (My Google Sheet was set to a language using comma number separators)! Everyone gave really good insight, I can now trouble-shoot my formulas much better!

🌐
Coupler.io Blog
blog.coupler.io › if-and-or-ifs-formulas
Google Sheets IF, IFS, AND, OR Logical Functions
3 weeks ago - Contribute to your business growth by learning how to manipulate data in the most efficient way.
Discussions

if statement - Two conditions in Google Sheets Function - Stack Overflow
I have a question on using two functions with an if statement in Google Sheets as one complete function. Both variables have to be true, otherwise it returns false. I need one function to check the date 20 months back from today. If said cell is less than today's date 20 months back it's true, naturally. However, for the complete function to return true it also searches for another text value in another cell and has to be an exact match. Both conditions ... More on stackoverflow.com
🌐 stackoverflow.com
Formula help on IF AND with multiple conditions - Google Docs Editors Community
Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on More on support.google.com
🌐 support.google.com
October 23, 2023
How to use IF statement with multiple conditions in Google Sheets
I’m working on a Google Sheets document to monitor my sales commissions. I get paid extra commission when deals come from specific clients. I want to create a “Commission” column that shows “Earned” or “Not Earned” based on the client name. I need help with a formula that checks ... More on community.latenode.com
🌐 community.latenode.com
0
0
August 4, 2025
google sheets - How to write conditional formula for multiple conditions - Web Applications Stack Exchange
Trying to figure out how to write a formula in Google Sheets that will automatically calculate a deadline for me based on priority and an established date. I have 3 columns: Date (A), Priority (B)... More on webapps.stackexchange.com
🌐 webapps.stackexchange.com
January 30, 2018
🌐
Google Support
support.google.com › docs › answer › 7014145
IFS function - Google Docs Editors Help
Evaluates multiple conditions and returns a value that corresponds to the first true condition. Sample Usage IFS(A1>90, "A", A1>80, "B", A1>70, "C") IFS({A1:A5} > 3, "bigger", {A1:A
🌐
Google Support
support.google.com › docs › thread › 240511904 › formula-help-on-if-and-with-multiple-conditions
Formula help on IF AND with multiple conditions - Google Docs Editors Community
October 23, 2023 - Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on
Find elsewhere
🌐
Latenode
community.latenode.com › other questions › google sheets
How to use IF statement with multiple conditions in Google Sheets - Google Sheets - Latenode Official Community
August 4, 2025 - I’m working on a Google Sheets document to monitor my sales commissions. I get paid extra commission when deals come from specific clients. I want to create a “Commission” column that shows “Earned” or “Not Earned” based…
🌐
Layer
golayer.io › home › if statement in google sheets: formula & examples
IF Statement in Google Sheets: Formula & Examples | Layer Blog
July 17, 2024 - You now know how to use the IF ... the test. You also know how to use multiple conditions that all need to be TRUE by combining IF and AND....
🌐
Sheetgo
sheetgo.com › home › how to use the if function in google sheets
How to use the IF function in Google Sheets - Sheetgo
December 17, 2025 - Evaluate if B2 is less than 4, ... These two expressions are fairly self-explanatory: AND evaluates multiple criteria and returns TRUE if all of them are TRUE....
🌐
Medium
medium.com › @gaillereports › google-sheets-full-overview-of-if-ifs-and-and-or-formulas-2e7f61c6b8e9
Google Sheets - Full Overview of IF, IFS, AND and OR formulas | by Gala Ivannikova | Medium
April 25, 2025 - ... That’s pretty much the formula ... change anything. The OR formula in Google Sheets is used to test multiple conditions and returns TRUE if at least one of the conditions is met; otherwise, it returns FALSE....
🌐
W3Schools
w3schools.com › c › c_conditions.php
C If ... Else Conditions
Run different code depending on a condition in C with if, else if, and else.
🌐
Coefficient
coefficient.io › home
How to Use Multiple IF Statements in Google Sheets: A Step-by-Step Guide
September 2, 2025 - ... Start with nested IF syntax: =IF(condition1, value_if_true1, IF(condition2, value_if_true2, value_if_false2)) ... Consider using the IFS function as a cleaner alternative: =IFS(condition1, result1, condition2, result2, …) ... Using multiple ...
🌐
Owox
owox.com › blog › articles › google sheets tips › how to use the ifs function in google sheets for advanced conditional logic
Master Google Sheets IFS Function: Advanced Guide for 2025
May 14, 2026 - The IFS function in Google Sheets is a tool that automates complex conditional logic by evaluating multiple conditions within a single formula without the need for nested IF statements.
🌐
Statology
statology.org › home › how to use multiple if statements in google sheets
How to Use Multiple IF Statements in Google Sheets
November 5, 2021 - Suppose we have the following column in Google Sheets that shows the points scored by various basketball players: We can use the following syntax to write multiple IF statements to classify the players as “Bad”, “Okay”, “Good”, or “Great”:
🌐
FormulasHQ
formulashq.com › home › blog › can you put two conditions in an if statement google sheets?
Can you put two conditions in an if statement Google Sheets? — FormulasHQ
April 22, 2024 - To implement two conditions in an if statement, logical operators like AND and OR are utilized. Furthermore, nested if statements can be used to create more complex logical tests in Google Sheets.
🌐
Stack Overflow
stackoverflow.com › questions › 59978868 › google-sheets-multiple-conditions-with-nested-if-statements
Google Sheets multiple conditions with nested If statements? - Stack Overflow
What I want to happen is: If cell A1 = John AND cell B1 = Buyer then take the dollar amount in C1 and multiply it by 10% ELSE If cell A1 = John AND cell B1 = Seller then take the amount in C1 and multiple it by 25% BUT If A1 is NOT equal to John, then return a currency value of $0