In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Divide the row count by a column in Excel

ebruarslann
5 - Atom

I will parse an XML file and export it to Excel. However, for large XML files that exceed Excel's row limit, I will split them into multiple Excel files based on the row count. Here’s the issue: the "Line Number Counter" column represents each entry. If I set the row limit to 300,000, and the last entry finishes on the 300,001st row, I want the new Excel file to start without splitting the entry. For example, if there are 3 rows for an entry starting after the 299,998th row and finishing on the 300,001st row, I want this entry to be written to the second Excel file. I need to automate this process using a macro. Could you help with that?

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@ebruarslann 
I added a few more data entries and set the limit to 6.
We first count the total number for each ""Line Number Counter" then divide them into each output group as below.

0925-ebruarslann.png

CoG
14 - Magnetar

@Qiu 

Very smart, very elegant solution!

Labels
Top Solution Authors