Create a formula that auto numbers
Hi I'm in need of a formula to execute the following:
I have a Project tracker that has auto numbering that I now need to change. When a new Project is added to the worksheet containing a Project ID with the letters "P" or "HR" I need to retain that Project ID instead of the next auto number Project ID. When a project is added to the worksheet that does not contain a Project ID then I need the auto numbering to continue from the last auto number. I'm in dire need of a solution.
Best Answer
-
The following formula would work (in Output column):
=IF(OR(CONTAINS("P", Project@row), CONTAINS("HR", Project@row)), Project@row, Autonumber@row)
This assumes that your projects with "P" or "HR" don't have longer chains containing these characters.
You can set the Autonumber column to start from a later value if you're pasting in data that already exists.
For visibility you could hide the Autonumber to have only the Output column showing.
Hope this helps - if you've any questions just ask.
Answers
-
The following formula would work (in Output column):
=IF(OR(CONTAINS("P", Project@row), CONTAINS("HR", Project@row)), Project@row, Autonumber@row)
This assumes that your projects with "P" or "HR" don't have longer chains containing these characters.
You can set the Autonumber column to start from a later value if you're pasting in data that already exists.
For visibility you could hide the Autonumber to have only the Output column showing.
Hope this helps - if you've any questions just ask.
-
Hi Nick
Thanks for your speedy response I was so thrilled it worked that I completely forgot to thank you.
Kind regards
Marcy
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67K Get Help
- 441 Global Discussions
- 154 Industry Talk
- 501 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 79 Community Job Board
- 512 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!