[英]How to re-arrange the data from rows containing dates to Quarterly columns in Excel automatically either by using formulas or Macros/VBA
I want to re-arrange the data in same excel sheet.我想在同一张 excel 表中重新排列数据。 The data have a column Period Date with dates in it and corresponding ROAA Values.
数据有一个 Period Date 列,其中包含日期和相应的 ROAA 值。 I want to rearrange the ROAA values on the basis of Quarters columns picked from Period Date Column.
我想根据从 Period Date Column 中选择的 Quarters 列重新排列 ROAA 值。
So that i can have ROAA values on the basis of Quarter and can delete duplicate rows and can have data of one bank in one row only.这样我就可以根据季度获得 ROAA 值,可以删除重复的行,并且只能在一行中包含一个银行的数据。
I tried using formulas and managed to populate data quarterly, but need help in populating the same bank data in one row only and deleting the rest duplicate rows.我尝试使用公式并设法每季度填充一次数据,但需要帮助才能仅在一行中填充相同的银行数据并删除 rest 重复行。
Use Pivot Tables to resume your data:使用 Pivot 表恢复数据:
Create a PivotTable to analyze worksheet data
创建数据透视表以分析工作表数据
I took field Issuer Name
into rows section, field Value
into Values section and Date
into Columns Section.我将
Issuer Name
字段放入行部分,将Value
字段放入 Values 部分,将Date
放入 Columns 部分。
Note I created a group in the date field, grouping by year and quarter.注意我在日期字段中创建了一个组,按年和季度分组。
Pivot Tables is your best option here, because if you add new rows to your table, you just need to update your Pivot Table and it will rearrange everything. Pivot 表是您最好的选择,因为如果您向表中添加新行,则只需更新 Pivot 表,它就会重新排列所有内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.