Skip to main content
Solved

Split Excel at specific Number

  • August 19, 2020
  • 2 replies
  • 123 views

I have a Excel with 290 Rows and i want to Split that Excel at row 42 into different Pages. Result would be 42 Rows at Page 1. Next 42 Rows Page 2 and so on.

I thought i could do it with a loop like count till 42 and then count again and filter by <= 42 but its not working.

Best answer by bartjannink

In the excel writer as a sheet name use:

Page@Evaluate(@floor(@Count()/42)+1)

It will create sheets called Page1, Page2 etc... with 42 rows each.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+61

There's a Grouper custom transformer on the FME Hub that you can use to do that.


Forum|alt.badge.img
  • Best Answer
  • August 19, 2020

In the excel writer as a sheet name use:

Page@Evaluate(@floor(@Count()/42)+1)

It will create sheets called Page1, Page2 etc... with 42 rows each.