LEFT Formula
I'm looking to capture the characters to the left of the space "-". Is there a way to do it so that when there are only 2 characters I need that it doesn't give me "MO -"
=LEFT([Job Name]@row, 4)
GSID - South Warren Ave PH1
MO - Haydinger Kitchen
Best Answer
-
I think using the FIND function inside your LEFT function would work.
FIND Function | Smartsheet Learning Center
This formula should find the starting position of the " - " portion of the Job Name: =FIND(" - ",[Job Name]@row)
So if you put that inside the left function, you should get the characters to the left of that.
=LEFT([Job Name]@row,(FIND(" - ",[Job Name]@row)-1))
Answers
-
Hi @ginamt3
try
=LEFT([Job Name]@row, FIND(" ", [Job Name]@row) - 1)
*Just make sure there is a space between the two quote marks
-
I think using the FIND function inside your LEFT function would work.
FIND Function | Smartsheet Learning Center
This formula should find the starting position of the " - " portion of the Job Name: =FIND(" - ",[Job Name]@row)
So if you put that inside the left function, you should get the characters to the left of that.
=LEFT([Job Name]@row,(FIND(" - ",[Job Name]@row)-1))
-
It worked like a charm! thank you.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 444 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!