How to get a auto numbered column in a table transform?
Asked by Ajay.Amrite:

I have several tables which are part of table excerpts, each table has a auto numbered column.

I am using a table transform to merge all these tables into one table on a different page.

I want to hide the original numbered column in the individual tables (see the image below) and create a new numbered column that is continuous across the rows across all the tables.

Any help will be much appreciated.

![Screenshot 2023-07-03 144211.png](https://community.atlassian.com/t5/image/serverpage/image-id/266362i15A3B7EF22566314/image-size/large?v=v2&px=999 "Screenshot 2023-07-03 144211.png")


Answers:
author: Katerina Rudkovskaya [Stiltsoft]
body: Hi [@Ajay.Amrite](/t5/user/viewprofilepage/user-id/2443266),  

I assume that you have smth like this coming from your Table Excerpts:  

![Thu 3-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/266576iC80A3686CF002802/image-size/large?v=v2&px=999 "Thu 3-1.png")  

So, you may use the ROWNUM() function in your [Table Transformer](https://docs.stiltsoft.com/tfac/cloud/how-to-use-table-transformer-macro-42241552.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro:  

SELECT ROWNUM() AS 'No',  
\*  
FROM T\*  

![Thu 3-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/266578iD7B1FE4894049303/image-size/large?v=v2&px=999 "Thu 3-2.png")  
Hope it helps your case.


author: Markus Fred?n
body: Hi [@Ajay.Amrite](/t5/user/viewprofilepage/user-id/2443266) ,

To achieve an auto-numbered column in a table transform in Confluence, you can follow these steps:

1. Open the page where you want to create the merged table.
2. Insert a new table on that page by clicking on the "+" button in the toolbar and selecting "Table."
3. In the new table, add the necessary columns and rows to accommodate the merged data.
4. Copy the individual tables from the source pages (the tables you want to merge) and paste them into the cells of the new table, placing each table in a separate row.
5. Once you have pasted all the tables into the new table, you will have multiple columns with auto-numbering. To create a continuous auto-numbered column, follow the next steps:
6. In the first cell of the new numbered column, enter the starting number manually (e.g., "1").
7. Select the entire column by clicking on the column header (the gray box at the top of the column).
8. Right-click on the selected column and choose "Table Cell Properties."
9. In the "Cell Properties" dialog, click on the "Advanced" tab.
10. In the "CSS class" field, enter a class name for the column, such as "continuous-numbering."
11. Click "Apply" to save the changes.
12. Repeat steps 6-11 for each subsequent table row where you want the auto-numbered column to appear.
13. After you have applied the CSS class to all the desired rows, you can hide the original numbered column in each table. To do this, follow these steps for each individual table:

* Select the original numbered column in the table.
* Right-click on the selected column and choose "Delete Column."

Once you have completed these steps for all the tables, you will have a merged table with a continuous auto-numbered column.

/Markus

comments: author: Ajay.Amrite
body: Hi Markus,

I don't want to move my data from the other tables to one table.

I am looking for a way to use a combination of 'table excerpt include' and 'table transformer'.

Currently I am using the SQL

SELECT \* FROM T\*

Regards,

Ajay.


Tags: cloud

confluence-cloud

filter

ms-excel

table