# Auto generating column values by "Set column Values" is not working

**URL:** <https://community.glideapps.com/t/auto-generating-column-values-by-set-column-values-is-not-working/84095>\
**Category:** Ask for Help\
**Created:** [August 29, 2025, 1:35pm UTC](https://community.glideapps.com/t/auto-generating-column-values-by-set-column-values-is-not-working/84095 "2025-08-29T13:35:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hilarious\_Meanings](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hilarious_meanings/32/80489_2.png) [@Hilarious\_Meanings](https://community.glideapps.com/u/Hilarious_Meanings)\
**Post date:** [August 29, 2025, 1:35pm UTC](https://community.glideapps.com/t/auto-generating-column-values-by-set-column-values-is-not-working/84095/1 "2025-08-29T13:35:54Z")

</div>

Hello All, I want work order numbers to auto generate in my “Work Order No” columns in glide sheet whenever I raise a new work order in the next row indicated in the attached below;

 ![Date1](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/c/dc44480e7bdaae33f5ca99c62864496efeb6ee98.png)

I used the formula “WO-” & YEAR(NOW()) & “-” & TEXT(ROWNUMBER(), “000”) in the workflow to set to set Column Values but it didn’t work.

 ![Date2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/e/7e539ee946640c76439cabebd96947b40c739868.png)

Any help will be much appreciated.  
Thanks.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 29, 2025, 11:36pm UTC](https://community.glideapps.com/t/auto-generating-column-values-by-set-column-values-is-not-working/84095/2 "2025-08-29T23:36:00Z")

</div>

You’re typing text inside the set column values action. It doesn’t work that way.

First up, there’s no concept of a “row number” variable in Glide. If you wish to do it that way, you would have to:

- Create a rowID column.
- Create a lookup targeting that rowID column to return an array of rowIDs.
- Add a “Find Element Index” column, find the current rowID in the array above. It will return a 0-based list of indexes.
- Add a math column to calculate the current year: YEAR(N) with N being the Now value.
- Add an Excel Formula column and try to replicate what you did above, then on submission, wait for 5-10 seconds for the Excel Formula to not be empty, and set it to the work order no.

An issue you might want to address early on is what happens if an order is deleted. Since you seem to want to hardcode the order, deleting an order would cause a row number to be duplicated.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [August 30, 2025, 3:48am UTC](https://community.glideapps.com/t/auto-generating-column-values-by-set-column-values-is-not-working/84095/3 "2025-08-30T03:48:28Z")

</div>

What you are trying to do sounds very much like the first use case described in the post below:

> [@How do I create an auto-incrementing row number with Glide Tables?](https://community.glideapps.com/t/how-do-i-create-an-auto-incrementing-row-number-with-glide-tables/39572):
>
> This is a question that comes up a lot, so creating this topic to use as a reference. Typically, there are two distinct use cases when it comes to auto-incrementing row numbers. Use Case 1: – We need to generate a Part Number, or an Order Number, or an Employee ID. Once the number is generated, it should never change, even if rows are deleted. – The general approach for this use case is to maintain a static counter, use it to craft a suitably formatted ID, and increment it by one every time…

Just be aware that the method does not guarantee uniqueness in the case where multiple users submit at the same time.
