Custom auto-number system
We would like to create a reference, auto- number system that takes the Facility ID entered, and the date of incident, to look something like this. (####- 05/15/2020)
Does anyone know if its possible to do this?
Thanks in Advance!
Best Answers
-
It is definitely possible. Do you currently have those two columns created? If so, try something like this...
=[Facility ID]@row + "- " + [Date Column]@row
-
It looks like there is a space between your first COUNTIFS and the following open parenthesis. Try a copy/paste of this one. I have updated the column names to match what you have in your above screenshot. I also recommend leaving the @row reference in. It basically replaces the row number with whatever row the formula happens to be on. It is a little more efficient on the back-end and helps avoid typos.
=[Facility ID]@row + "- " + [Date Column]@row + IF(COUNTIFS([Facility ID]$1:[Facility ID]@row, [Facility ID]@row, [Date of Incident]$1:[Date of Incident]@row, [Date of Incident]@row) > 1, "-" + COUNTIFS([Facility ID]$1:[Facility ID]@row, [Facility ID]@row, [Date of Incident]$1:[Date of Incident]@row, [Date of Incident]@row))
Answers
-
It is definitely possible. Do you currently have those two columns created? If so, try something like this...
=[Facility ID]@row + "- " + [Date Column]@row
-
@Paul Newcome That worked! Say there is more than 1 incident in the same day.. would you happen to know a function to add -2, -3...and so on, to the end ?
-
Try something like this...
=[Facility ID]@row + "- " + [Date Column]@row + IF(COUNTIFS([Facility ID]$1:[Facility ID]@row, [Facility ID]@row, [Date Column]$1:[Date Column]@row, [Date Column]@row) > 1, "-" + COUNTIFS([Facility ID]$1:[Facility ID]@row, [Facility ID]@row, [Date Column]$1:[Date Column]@row, [Date Column]@row))
-
@Paul Newcome Hi Paul, do i use the same column 2 column fields to fill the rest of the bolded area?
-
You should only be referencing two columns throughout the formula. The [Facility ID] and the [Date Column].
-
Coming up unparseable... do you see any issues? or any other tips?
-
@Paul Newcome forgot to tag
-
It looks like there is a space between your first COUNTIFS and the following open parenthesis. Try a copy/paste of this one. I have updated the column names to match what you have in your above screenshot. I also recommend leaving the @row reference in. It basically replaces the row number with whatever row the formula happens to be on. It is a little more efficient on the back-end and helps avoid typos.
=[Facility ID]@row + "- " + [Date Column]@row + IF(COUNTIFS([Facility ID]$1:[Facility ID]@row, [Facility ID]@row, [Date of Incident]$1:[Date of Incident]@row, [Date of Incident]@row) > 1, "-" + COUNTIFS([Facility ID]$1:[Facility ID]@row, [Facility ID]@row, [Date of Incident]$1:[Date of Incident]@row, [Date of Incident]@row))
-
@Paul Newcome Always so helpful! That worked.. thank you so much!
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!