Can I use Index/Match and Left functions in one formula?
Hello, can someone help me with the left function within the index/match? This is what I tried but it always returns NO MATCH:
=INDEX({Master Job SO}, MATCH(LEFT([Job Number]@row,5), {Master Job #}, 0))
I also tried creating a helper column, Job Prefix, using =LEFT([Job Number]@row, 5) and using that result in the SO column formula, but it doesn't work. If I manually type my prefix, a regular INDEX/MATCH formula works, so I think the data exists correctly in the other sheet.
Best Answer
-
There we go. The [SO] column looks like it is being manually populated which is storing the data as numerical data, but the LEFT function outputs text.
Insert a column on the reference sheet and use
=SO@row + ""
plus quote quote
This will convert all entries into a text string so that data types match. You would then match on this helper column in your INDEX/MATCH.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
Can you provide a screenshot of the reference table?
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Thanks!
-
There we go. The [SO] column looks like it is being manually populated which is storing the data as numerical data, but the LEFT function outputs text.
Insert a column on the reference sheet and use
=SO@row + ""
plus quote quote
This will convert all entries into a text string so that data types match. You would then match on this helper column in your INDEX/MATCH.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Paul, so helpful! I actually needed a Job # helper column since on the job numbers are manually entered as well and is what determines what SO # is returned as a result.
Thank you very much!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!