I need a formula that generates an alphanumeric code for each shipment a vehicle makes.
eg
Shipping vehicle 1- its code would be A0001
Shipping vehicle 2 - its code would be B0001
New shipment vehicle 1 - A0002
New shipment vehicle 1 - A0003
New shipment vehicle 2 - B0002
Thanks Joseph. The link is very instructive but it does not solve my problem. I can see it is “dangerous” the use of serial numbers but… in our case they are cumpulsory.
I will keep on studing about programming which is not particulary easy for those of us who studied greak and latin in high school.
Using serial numbering is quite dangerous because this is how AppSheet is built but in one of my projects where also needed to use sequential numbers I created automation BOT which was triggered only when new row was being added. It is checking and looking for the highest number in previously existing rows in the table and then adding +1 to this value. App is runnable and still in use so I guess everything works fine. Maybe try to do it this way?
Hello Steve and thanks for all your articles. Big fan.
In my particular case the problem is not only generate one column able to create serial numbers. The problem is that every truck in our company must have its own serial number. So, depending on the truck we choose in the trucks column, the “serial number column” must assing the correct serial number according to the truck. It is driving me crazy
The formula is right itself. But I always get the same result: C0001
That is O.K. just for the truck labeled “C”, but we have 3 trucks. So I need that when in the trucks column I choose a different truck I get a different serial alfanumeric code. Each of the codes with its own serial number:
What expression does your bot use to look at the highest row and add +1 to the value? I use a bot for the same purpose, but a few times it didn’t work and the cell was left blank (no errors in the automation monitoring pane, so I never found out what went wrong).