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
- Customer Resources
- 64.5K Get Help
- 430 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!