cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amsrivas
Resolver I
Resolver I

Updating row number of excel in one column using power Automate Flows

Hi,

Scenario - I have one table in Excel named Table1 with 20 rows.

 

Requirements - In one of the column say SN, i need to update all the row number.

 

I.e. column SN will contains values as below

 

SN

1

2

--

--

N.

 

Note -

1.I don't have privilege to write any kind of script in source file.

2. Source Excel table Table1 contains a excel formula.

 

Please suggest

Thanks

Amit Srivastava

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @amsrivas,

 

You could initialize an integer variable named SN, set its default value to 1. Then use List rows present in a table action to get all rows:

Screenshot 2020-10-08 132648.jpg

 Then use Apply to each to loop through all rows, use Update a row action to append the variable to SN column. Then increase SN variable 1.

Screenshot 2020-10-08 132726.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-litu-msft
Community Support
Community Support

Hi @amsrivas,

 

You could initialize an integer variable named SN, set its default value to 1. Then use List rows present in a table action to get all rows:

Screenshot 2020-10-08 132648.jpg

 Then use Apply to each to loop through all rows, use Update a row action to append the variable to SN column. Then increase SN variable 1.

Screenshot 2020-10-08 132726.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (19,555)