Feb 22, 2019 08:52 AM
I have a base where I register exam questions. I class them by Subject (linked table field); I would like a formula that enumerates them by subject, for example:
…and so forth.
Can it be done?
Thanks in advance!
Feb 22, 2019 07:11 PM
The potential problem I see with trying to automate the numbering is that it would go askew if your records ever get re-ordered. For example, the second instance of Pharmacology could end up higher in the record list than the first one, meaning that the formula would cause their numbers to reverse, throwing off the reliability of the system (assuming that you want the question that ends up labeled as “Pharmacology 1” to stay that way permanently).
Believe me, I can see the benefit of having them be automatically numbered. That way you wouldn’t have to search through the list to figure out where you’re at in the numbering scheme with each subject. I just can’t think of a way to do it that would still work in the event that the record order ever shifted.
Feb 22, 2019 07:13 PM
Interestingly enough, I just discovered another user who appears to be seeking the same thing (or something very similar from what I gather):
I haven’t read the primary reply in detail yet, but considering that it begins with “You’re going to have a devil of a time,” my gut says that my initial assumption is correct.
Mar 07, 2019 01:50 PM
To add my 2 cents to this topic: I had something like this that I wanted to do, but like most of the people who have commented here, I didn’t want the values dynamically reassigned. The best solution I could come up with was a combination of grouping and sorting. For example: in the original example, you would group by Subject, then sort by Date Created (or some similar field type that’s more applicable for your purposes). You can then create a separate “int” field that you input manually, and each exam question can have “int” concatenated onto the end of the “Subject” string. Not perfect, but doesn’t change if you need to edit the ordering or add new questions.
Mar 29, 2019 04:28 PM
I found a way to pull this off, and posted details in the Show and Tell category. The post includes a link to a sample base that you can copy to see the full setup.