Formula to add leading 'zero' to IDs
I have used these formulas individually and they work, but need to combine as an OR statement
=IF(LEN(MSID@row) = 2, "00" + MSID@row, MSID@row)
=IF(LEN(MSID@row) = 3, "0" + MSID@row, MSID@row)
=IF(OR(IF(LEN(MSID@row) = 2, "00" + MSID@row, MSID@row), LEN(MSID@row) = 3, "0" + MSID@row, MSID@row))
But the combined formula gives an Incorrect Argument Set, any ideas.
Best Answer
-
Hi Kevin7859,
You can try the below formula to combine both the conditions as mentioned.
=IF(LEN(MSID@row) = 2, "00" + MSID@row, IF(LEN(MSID@row) = 3, "0" + MSID@row, MSID@row))
I Hope it will work.
Thank You!
Anjanesh Vaidya
Thanks,
Anjanesh Vaidya
Smartsheet Development, Ignatiuz Software
Did this answer help you? Show some love by marking this answer as "Insightful💡" or "Awesome❤️" and "Vote Up⬆️
Answers
-
Hi Kevin7859,
You can try the below formula to combine both the conditions as mentioned.
=IF(LEN(MSID@row) = 2, "00" + MSID@row, IF(LEN(MSID@row) = 3, "0" + MSID@row, MSID@row))
I Hope it will work.
Thank You!
Anjanesh Vaidya
Thanks,
Anjanesh Vaidya
Smartsheet Development, Ignatiuz Software
Did this answer help you? Show some love by marking this answer as "Insightful💡" or "Awesome❤️" and "Vote Up⬆️
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!