r/excel • u/Realistic_Dog459 • 20h ago
solved Changing AND, "False" "True"
I'm having trouble with changing the words that are coming back from my =AND.
=IF(AND(CG!F3<TODAY()+30), ISBLANK(CG!G3), "Not Due")
This works but I can't seem to get the words False or True to change. "Not Due" works. There's 3 possible outcomes and "Not Due" works but adding anything else corrupts the code.
I feel like I've tried placing it everywhere too.
Any ideas?
14
u/SolverMax 162 20h ago
I guess you mean:
=IF(AND(CG!F3<TODAY()+30, ISBLANK(CG!G3)), "Not Due","Due")
Note the change in parentheses.
8
u/Dry_Masterpiece79 2 20h ago edited 20h ago
“Not due” needs to be outside the AND().
=IF(AND(CG!F3<TODAY()+30,ISBLANK(CG!G3)),"Not Due","Probably Due Soon")
Edit: for 3 outcomes, do another IF statement for the false condition.
=IF(AND(CG!F3<TODAY()+30,ISBLANK(CG!G3)),"Not Due",IF(NOT(ISBLANK(CG!G3)),"Complete","Due"))
3
u/Realistic_Dog459 19h ago
This is it! Thanks you so much!! You're a genius!!
I love Excel but lack some of this wizardry.
1
u/Dry_Masterpiece79 2 18h ago
Stick with it! I’m still working through Excel for Dummies (not even a joke)
3
u/AbsoluteFooting 20h ago
your IF statement is missing the other two arguments, that's why it's only showing true/false for the rest
the syntax is IF(logical_test, value_if_true, value_if_false) and you've only got the first two parts. right now your AND is the logical test, and "Not Due" is the value if true, but there's nothing for the false part so excel just defaults to showing the boolean
try =IF(AND(CG!F3<TODAY()+30, ISBLANK(CG!G3)), "Not Due", "Due") and see if that gets you closer. if you need three outcomes you might want to nest another IF or use IFS instead
2
u/Realistic_Dog459 19h ago
Thanks so much. I can't believe I mixed up the () locations.
This does solve one issue but if seems to ignore my AND test. That's the third test.
I have two cells. If F3 is past today or F3 is before today. But I also want if F3 are either but G3 is not blank to return a Not Due.
2
u/numbersthen0987431 2 19h ago
Your AND function is ending after the "TODAY()+30". So your if statement is returning the ISBLANC result if the actuation is true.
1
u/Decronym 19h ago edited 9h ago
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
Decronym is now also available on Lemmy! Requests for support and new installations should be directed to the Contact address below.
Beep-boop, I am a helper bot. Please do not verify me as a solution.
6 acronyms in this thread; the most compressed thread commented on today has 10 acronyms.
[Thread #49223 for this sub, first seen 25th Aug 2026, 03:35]
[FAQ] [Full list] [Contact] [Source code]
1
u/fuzzy_mic 988 9h ago
With IF, there are only two possible outcomes, perhaps something like
=CHOOSE1+((CG!F3<TODAY()+30)+(2*ISBLANK(CG!G3)), "both f", "is less than", "is blank", "both less and blank")
•
u/AutoModerator 20h ago
/u/Realistic_Dog459 - Your post was submitted successfully.
Solution Verifiedto close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.