Automate formula
Is there a formula that can do the picture below.... the Blue unlined column is provided in the form request, The Black underline column needs to recognise the contract id, then find the last V number allocated and allocated the next number.... so that the Red underlined column, when joined creates the variation ID number.... Any suggestions?
Best Answer
-
Hi @SharonR ,
This is a hard one. You have to avoid creating a circular reference. To do that, I recommend adding an auto number system column to record the order rows are added. You'll use the auto number column [row ID] to determine which rows existed prior to the new row.
Your formula for Variation would be:
=IF(ISBLANK([Contract ID]@row), "", IF(COUNTIFS([Contract ID]:[Contract ID], [Contract ID]@row, [Row ID]:[Row ID], <[Row ID]@row) = 0, "V00", IF(COUNTIFS([Contract ID]:[Contract ID], [Contract ID]@row, [Row ID]:[Row ID], <[Row ID]@row) < 10, "V0" + COUNTIFS([Contract ID]:[Contract ID], [Contract ID]@row, [Row ID]:[Row ID], <[Row ID]@row), "V" + (COUNTIFS([Contract ID]:[Contract ID], [Contract ID]@row, [Row ID]:[Row ID], <[Row ID]@row)))))
This will make your contract variation numbering dynamic. If a row is deleted all will be renumbered. That could cause you problems.
Work for you?
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
Answers
-
Hi @SharonR ,
This is a hard one. You have to avoid creating a circular reference. To do that, I recommend adding an auto number system column to record the order rows are added. You'll use the auto number column [row ID] to determine which rows existed prior to the new row.
Your formula for Variation would be:
=IF(ISBLANK([Contract ID]@row), "", IF(COUNTIFS([Contract ID]:[Contract ID], [Contract ID]@row, [Row ID]:[Row ID], <[Row ID]@row) = 0, "V00", IF(COUNTIFS([Contract ID]:[Contract ID], [Contract ID]@row, [Row ID]:[Row ID], <[Row ID]@row) < 10, "V0" + COUNTIFS([Contract ID]:[Contract ID], [Contract ID]@row, [Row ID]:[Row ID], <[Row ID]@row), "V" + (COUNTIFS([Contract ID]:[Contract ID], [Contract ID]@row, [Row ID]:[Row ID], <[Row ID]@row)))))
This will make your contract variation numbering dynamic. If a row is deleted all will be renumbered. That could cause you problems.
Work for you?
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
Thank you this helps heaps.
-
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
- 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!