I need help with a formula.
I have 2 sheets. Both sheets have dates and names. I need to compare the names, if both match then I need to compare dates, if they match I need to return a 1 to check a box. How do I go about writing this?
Best Answer
-
Hi @Dakota
please try the following formula:
=IFERROR(IF(OR([Name 1]@row = "", [Date 1]@row = ""), 0, IF(COUNTIFS({Name 2}, @cell = [Name 1]@row, {Date 2}, @cell = [Date 1]@row) > 0, 1)), "")
the following screenshot shows the result:
Main Sheet
Second Sheet:
bassam.khalil2009@gmail.com
βοΈ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
Answers
-
Hi @Dakota
please try the following formula:
=IFERROR(IF(OR([Name 1]@row = "", [Date 1]@row = ""), 0, IF(COUNTIFS({Name 2}, @cell = [Name 1]@row, {Date 2}, @cell = [Date 1]@row) > 0, 1)), "")
the following screenshot shows the result:
Main Sheet
Second Sheet:
bassam.khalil2009@gmail.com
βοΈ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
Thank you,
After adding a reference sheet it worked perfectly.
Thank you,
-
@Dakota
Excellent, I will be happy to help you any time
bassam.khalil2009@gmail.com
βοΈ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.7K Get Help
- 371 Global Discussions
- 203 Industry Talk
- 436 Announcements
- 4.5K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 129 Community Job Board
- 448 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 282 Events
- 32 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!