我有一个CSV文件,我每周收到一次,格式如下:
"Item","Supplier Item","Description","1","2","3","4","5","6","7","8" ...Linefeed
"","","","Past Due","Day 13-OCT-2014","Buffer 14-OCT-2014","Week 20-OCT-2014","Week 27-OCT-2014", ...LineFeed
"Part1","P1","Big Part","0","0","0","100","50", ...LineFeed
"Part4","P4","Red Part","0","0","0","35","40", ...LineFeed
"Part92","P92","White Part","0","0","0","10","20", ...LineFeed
...
数据说明 - 第2行是表示日期部分到期的动态数据。第3行开始编号,其中包含特定日期的描述和部件数量。因此,查看以上数据:第3行第7列显示PartNo1在2014年10月20日的周上有100个部分到期,2014年10月27日那周有50个到期。
如何解析此csv以显示如下数据:
Item, Supplier Item, Description, Past Due, Due Date Amount Due
Part1 P1 Big Part 0 20 OCT 2014 100
Part1 P1 Big Part 0 27 OCT 2014 50
Part4 P4 Red Part 0 20 OCT 2014 35
Part4 P4 Red Part 0 27 OCT 2014 40
...
有没有办法在Excel中操作格式来重新排列我需要的数据或解决此问题的最佳方法是什么?