# Checking a checkbox if one checkbox is unchecked, another is checked and falls between 2 dates

Options

How can I get the formula below to work?

=IF(AND([checkbox1]@row, 0, [checkbox2]@row, 1, [date]@row, >=DATE(2022, 4, 1), [date]@row, <=DATE(2022, 6, 30)), 1, 0)

• ✭✭✭✭✭✭
Options

=IF(AND([checkbox1]@row=0, [checkbox2]@row=1, [date]@row>=DATE(2022, 4, 1), [date]@row<=DATE(2022, 6, 30)), 1, 0)

• Options

It gives me a "#INVALID DATA TYPE" error when I use the above.

• ✭✭✭✭✭✭
Options

I hope you're well and safe!

Strange! It should work!

Can you paste the formula you have in your cell?

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.

• Options

=IF(AND([In Progress and Complete in Same Month]@row = 0, [In Progress > On Hold/Declined]@row = 1, [Date of Status Change (In Progress)]@row, >=DATE(2022, 4, 1), [Date of Status Change (In Progress)]@row, <=DATE(2022, 6, 30)), 1, 0)

• ✭✭✭✭✭✭
Options

Try this.

=IF(AND([In Progress and Complete in Same Month]@row = 0, [In Progress > On Hold/Declined]@row = 1, [Date of Status Change (In Progress)]@row >= DATE(2022, 4, 1), [Date of Status Change (In Progress)]@row <= DATE(2022, 6, 30)), 1, 0)

Did it work?

Please support the Community by marking the post(s) that helped or answered your question or solved your problem with the accepted answer/helpful, Insightful/Vote Up/Awesome. 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.

• Options

That is the same formula that I currently have and am getting the #INVALID DATA TYPE error with.

• ✭✭✭✭✭✭
Options

It's not the same. You had some misplaced commas.

Did you try copying and pasting mine?

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.

• Options

That worked! Thank you Andree! I didn't see that extra comma I had in there.

• ✭✭✭✭✭✭
Options

Excellent!

You're more than welcome!

Please support the Community by marking the post(s) that helped or answered your question or solved your problem with the accepted answer/helpful, Insightful/Vote Up/Awesome. 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.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!