Split a number using LEFT and Right Formulas
I have a location number that is 6 digits long. I am trying to create a formula using LEFT and Right to add a dash after the first 4 numbers.
EX: if the location number is 123456, I want to create a formula to show 1234-56
Best Answer
-
Hi @Vincent Carranza ,
Try:
=LEFT([location]@row,4) + "-" + RIGHT([location]@row, 2)
You'll need to replace [location] with the name of your location number column.
Work?
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
Answers
-
Hi @Vincent Carranza ,
Try:
=LEFT([location]@row,4) + "-" + RIGHT([location]@row, 2)
You'll need to replace [location] with the name of your location number column.
Work?
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
That worked! Thank you Mark. I was using "&" instead of "+".
This was the final formula that worked: =LEFT([Primary Column]1, 4) + "-" + RIGHT([Primary Column]1, 2)
-
Hi Vincent,
Glad you found a solution. Thank you for contributing to the Community.
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!