Sorting Ecommerce Option Values

New Contributor

Hello Everyone,


We've got an excel file from our eCommerce site with 10,000 rows of option values sorted by the product ID. There are multiple rows for each product ID but the number of rows for product ID each varies. We would like to insert a 1 in a new row / column every time the product ID changes.


Is there a formula we could use to do this?


I've attached a screen shot.


Any help would be appreciated. Thanks.

2 Replies



You may use in A2


select column A starting from A2 till end of your range and Ctrl+D


Thank you Sergei!

Related Conversations
Please Fix File Sorting by Name in Ms Teams
HYPERVELOCITY in Microsoft Teams on
11 Replies
Pivot table
gabriellerocha in Excel on
5 Replies
Pivot Table not sorting
FRobinson25 in Excel on
1 Replies
JRoy-55 in Excel on
1 Replies
Multiple files in different column order
PPDD129056 in Excel on
2 Replies