Add auto increment number in Excel template

Hi everyone,

I create a Task to Email and attach a file in XLSX format. In Excel, I need to insert a numbering starting from number 1 for each row. Please help me to give me an idea how to fix this. Thank you.

@fteam

0 6 497
6 REPLIES 6

I don't really get it. Here I show you the formula that I wrote in Excel.

This is the formula in my Excel is

NumberNameMatrix NumberGenderClass
<<Start: SELECT(ePPC[ID], [_THISROW].[Email] = [LEmail], FALSE)>><<[Name]>><<[Matrix Number]>><<[Gender]>><<[Class]>><<End>>

The result after I run the task:

NumberNameMatrix NumberGenderClass
 Student 1123MaleClass 1
 Student 2125FemaleClass 4
 Student 3122MaleClass 5
 Student 4111MaleClass 1
 Student 5433FemaleClass 1

 

The result that I want should be like this:

NumberNameMatrix NumberGenderClass
1Student 1123MaleClass 1
2Student 2125FemaleClass 4
3Student 3122MaleClass 5
4Student 4111MaleClass 1
5Student 5433FemaleClass 1

 

I know, that's why I send you the workaround. There is no official method, unless Excel provides something like a rownumer function

It works when I insert the excel formula ROW($B2)-ROW()+1 between the <<Start:>><<End>>

row() - 1 should also work.

SEQUENCE(count([NAME])) might work as it will create a sequence 1,2........N where N is the count of NAME


@SkrOYC wrote:

unless Excel provides something like a rownumer function


There you have it