# IF( AND Formula with a Flag

I have a formula that I'm trying to implement, I'm saying if the year closed is prior or equal to 2021 and the finance completion % is lower and equal to 89 percent. Then flag the project. Here is my formula below

=IF(AND([Corporate Finance Completion %]@row = "", [Year Closed]@row = ""), 0, IF(AND([Corporate Finance Completion %]@row <= 0.89, [Year Closed]@row <= 2021), 1, 0))

• ✭✭✭✭✭✭

Try this:

=IF([Year Closed]@row <> "", IF(AND([Corporate Finance Completion %]@row <= 0.89, [Year Closed]@row <= 2021), 1))

• ✭✭✭✭✭✭

It looks like it should be working. Are you able to provide a screenshot of the data where it isn't working for you?

• ✭✭✭✭✭✭

I hope you're well and safe!

What happens? Do you get an error message?

Be safe, and have a fantastic week!

Best,

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

• I'm not getting an error but the flag is not turning red in all situations. Also its turning red when the year is blank and Im not wanting it to do that.

• ✭✭✭✭✭✭

Try this:

=IF([Year Closed]@row <> "", IF(AND([Corporate Finance Completion %]@row <= 0.89, [Year Closed]@row <= 2021), 1))

• Thanks that worked out perfectly!!!

• ✭✭✭✭✭✭

Happy to help. 👍️

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!