Assist in Auto-Numbering
Hi,
I cannot get my auto-number to work properly. The [Type of Book] can equal TB, BB, RB, or USB. I have used a similar formula before but I cannot get this one to auto-number like the others have and I am usnure what I have done incorrectly.
Thank you for any help.
=IF(AND(COUNTIFS([Row ID]:[Row ID], <[Row ID]@row, [Type of Book]:[Type of Book], =[Type of Book]@row) = 0, [Confirmed Book Number]@row = ""), LEFT([Type of Book]@row, FIND(" - ", [Type of Book]@row)) + COUNTIFS([Row ID]:[Row ID], <[Row ID]@row, [Type of Book]:[Type of Book]. <[Type of Book]@row), IF([Confirmed Book Number]@row <> "", [Confirmed Book Number]@row, LEFT([Type of Book]@row, FIND(" - ", [Type of Book]@row)) + , COUNTIFS([Row ID]:[Row ID], <[Row ID]@row, [Type of Book]:[Type of Book], =[Type of Book]@row)))
Answers
-
Hi @Pestomania
The formula will probably return an UNPARSABLE error because you have a period where a comma is expected and a comma where nothing is needed. I have tried to highlight the offending characters in bold here.
=IF(AND(COUNTIFS([Row ID]:[Row ID], <[Row ID]@row, [Type of Book]:[Type of Book], =[Type of Book]@row) = 0, [Confirmed Book Number]@row = ""), LEFT([Type of Book]@row, FIND(" - ", [Type of Book]@row)) + COUNTIFS([Row ID]:[Row ID], <[Row ID]@row, [Type of Book]:[Type of Book]. <[Type of Book]@row), IF([Confirmed Book Number]@row <> "", [Confirmed Book Number]@row, LEFT([Type of Book]@row, FIND(" - ", [Type of Book]@row)) + , COUNTIFS([Row ID]:[Row ID], <[Row ID]@row, [Type of Book]:[Type of Book], =[Type of Book]@row)))
Here is the formula without those, I've used bold here to highlight a larger portion - the area around where I made the changes:
=IF(AND(COUNTIFS([Row ID]:[Row ID], <[Row ID]@row, [Type of Book]:[Type of Book], =[Type of Book]@row) = 0, [Confirmed Book Number]@row = ""), LEFT([Type of Book]@row, FIND(" - ", [Type of Book]@row)) + COUNTIFS([Row ID]:[Row ID], <[Row ID]@row, [Type of Book]:[Type of Book], <[Type of Book]@row), IF([Confirmed Book Number]@row <> "", [Confirmed Book Number]@row, LEFT([Type of Book]@row, FIND(" - ", [Type of Book]@row)) + COUNTIFS([Row ID]:[Row ID], <[Row ID]@row, [Type of Book]:[Type of Book], =[Type of Book]@row)))
Hopefully that was the issue you were experiencing.
-
@KPH Do you ever just face palm? Thank you, this is what occurs when you are trying to modify an existing formula in the tiny box of Smartsheet!
thank you
-
😂
The more eyes, the better!
Glad we got you unstuck.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!