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
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!