Match Statement with Multiple Sheets
Hi,
Due to the limited restraints on the # of rows (5,000) in Smartsheet - I need to create a formula that references multiple sheets for a match statement. See below:
=IFERROR(IF(MATCH(([Employee ID]1 + [Current Position]1 + [Training Name]1), {Completions(1) Range 1}, 0) > 0, "YES", "NO"), "NO")
I have another sheet (exactly the same format as the Completions(1) sheet) named Completions(2). I need to include that range within the above formula to search employee completion records in sheet 1 OR sheet 2.
Someone help! Much appreciated.
Comments
-
Try replicating your MATCH statement referencing the second sheet. Then drop that into an OR statement inside of your IF.
=IFERROR(IF(OR(MATCH(......................, {Sheet 1}) > 0, MATCH(.................., {Sheet 2}) > 0), .............)
-
Thanks for the help - it looks like it's reading as an error. If i change the "NO" at the end of the IFERROR to N/A, it's changing all of the orginal "YES" answer to "N/A" as if there's an error. Below is the formula
=IFERROR(IF(OR(MATCH([Employee ID]1+ [Current Position]2 + [Training Name]2, {Completions Range 1}, 0) > 0, MATCH([Employee ID]1+ [Current Position]2 + [Training Name]2, {Completions (2) Range 1}, 0) > 0), "YES", "NO"), "NO")
-
Double check your row references. You are referring to two different rows.
-
Same issue - throwing an N/A. I adjusted the formulas:
=IFERROR(IF(OR(MATCH([Employee ID]1+ [Current Position]1 + [Training Name]1, {Completions Range 1}, 0) > 0, MATCH([Employee ID]1+ [Current Position]1 + [Training Name]1, {Completions (2) Range 1}, 0) > 0), "YES", "NO"), "NO")
Thoughts?
-
Check your MATCH statements individually. For testing...
Create two columns. In one column put the formula for sheet one. In the other column the formula for sheet two.
What are the results of that? DO not use the IFERROR portion. That way if there is an error being thrown, we can see exactly what error it is and trouble shoot from there.
-
Looks like they work independently.
Formula 1: =IF(MATCH(([Employee ID]1 + [Current Position]1 + [Training Name]1), {Training Completions Range 1}, 0) > 0, "YES", "NO")
Formula 2: =IF(MATCH(([Employee ID]1+ [Current Position]1 + [Training Name]1), {Training Completions (2) Range 1}, 0) > 0, "YES", "NO")
Combined: =IF(OR(MATCH(([Employee ID]1 + [Current Position]1 + [Training Name]1), {Training Completions Range 1}, 0) > 0,(MATCH(([Employee ID]1 + [Current Position]1 + [Training Name]1), {Training Completions (2) Range 1}, 0) > 0, "YES", "NO"), "YES", "NO")
Issue is when we try to add the OR() statement.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!