将数据行拆分到同一工作簿中的多个工作表中
我从大约 55,000 行数据的电子表格开始,其格式为:第 1 列 - 产品 ID,第 2 列 - 产品名称,第 3 列 - 产品数量。
我希望根据产品数量将 55k 行平均分成 55 个单独的工作表。因此,我将 50K 行的原始电子表格清理为:
Product Count | Count |
---|---|
1 | 33693 |
2 | 9243 |
3 | 3955 |
4 | 2251 |
等等 因此 |
,每 55 个单独的工作表应该有大约 1000 个产品,并且在这 1000 个产品中,有一个产品的产品x 的计数应该均匀分布。因此,在 55 个工作表中的每张中,产品计数为 1 (33693/55) 的数据应有 612 行,产品计数为 2 (9243/55) 的数据应有 168 行,产品计数为 3 (3955/55) 的数据应有 71 行等等。
我已将其设置在原始工作表、这张新的清理工作表(其中我根据产品计数值计算行数)和 55 张空白工作表的位置。是否有非手动方式可以在 Google 表格中执行此操作?是否有一个宏可以帮助我减轻这个痛苦的过程?如果我需要澄清任何事情,我很乐意这样做。谢谢你!
I am starting with a spreadsheet of ~55,000 rows of data, which is formatted as: column 1 - Product ID, column 2 - Product Name, column 3 - # of Products.
I'm looking to split the 55k rows equally into 55 separate sheets, based on the # of products. So I cleaned up the original spreadsheet of 50K rows into this:
Product Count | Count |
---|---|
1 | 33693 |
2 | 9243 |
3 | 3955 |
4 | 2251 |
and so on |
So, each 55 individual sheets should have ~1000 products, and within those 1000 products, products that have a product count of x should be equally distributed. So, in each of the 55 sheets, there should be 612 rows of data where product count is 1 (33693/55), 168 where product count is 2 (9243/55), 71 where product count is 3 (3955/55) and so on and so forth.
I have it set up where I have the original sheet, this new cleaned up sheet where I'm counting rows based on the product count value, and 55 blank sheets. Is there a non-manual way of being able to do this in Google Sheets? Is there a macro that I can use to help make this a less painful process? If I need to clarify anything, happy to do so. Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试:
try: