# Formula to check a box if it meets multiple criteria in another sheet

Options
✭✭✭✭✭✭

Hi!

I have two sheets:

Sheet A: ID#, Date, and a checkbox

Sheet B: ID#, Date

Can someone please tell me what should the formula be if I want to Sheet A checkbox to check if Sheet A's ID# and Date match with Sheet B's ID# and Date.

I tried a few different formula and it seems like it doesn't work:

=IF(AND(MATCH([ID #]@row, {Health Care Survey ID #}), MATCH(Date@row, {Health Care Survey Date}, 0)), 1)

=IF(INDEX(COLLECT({Health Care Survey ID #}, {Health Care Survey People #}, [ID #]@row, {Health Care Survey Date}, Date@row), 1), 1)

Thank you!

Tags:

• ✭✭✭✭✭✭
Options

Try this

=IF(Date@row = INDEX({Health Care Survey Date},MATCH([ID #]@row, {Health Care Survey ID #},0)),1)

Does it work for you?

• ✭✭✭✭✭✭
Options

Try this

=IF(Date@row = INDEX({Health Care Survey Date},MATCH([ID #]@row, {Health Care Survey ID #},0)),1)

Does it work for you?

• ✭✭✭✭✭✭
Options

Hi @KDM ,

Thank you so much for replying me. You saved my life!!

This works perfectly!!

• ✭✭✭✭✭✭
Options

So glad I could help. Have a great weekend

cheers

Kelly

• ✭✭✭✭✭✭
Options

I might need your help again. The formula works if there isn't the same ID# for different dates.

For example:

ID#1111 Date 8/10

ID#2222 Date 8/10

ID#3333 Date 8/10

ID#1111 Date 8/11

ID#2222 Date 8/11

The check box will be check for ID#1111 Date 8/11, ID#2222 Date 8/11, and ID#3333 8/10 since there isn't a duplicate ID# even though the date is different.

Hope this makes sense.

Thanks.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!