最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

excel - Pivot table output tweaking - specific summary for subset of columns - Stack Overflow

programmeradmin1浏览0评论

I would like to create a pivot table with a summary of some sales orders. The sales orders include lists of hardware and software license items. The software licenses have "end dates" as they are licenses for a duration. I would like the finished table to report the numbers of each product sold for each purchase order and, for licenses only the "average" end-date. I have columns set for "hardware" and "software" so that it is easy to tell which product is in which category (product names are somewhat challenging to interpret). Original data and Pivot images attached.

Question: how can I only display the "Average of End Date" summary for the Software category, as it is not relevant to the "Hardware" category - i.e. I don't want the third column in the shown pivot table to display at all

I would like to create a pivot table with a summary of some sales orders. The sales orders include lists of hardware and software license items. The software licenses have "end dates" as they are licenses for a duration. I would like the finished table to report the numbers of each product sold for each purchase order and, for licenses only the "average" end-date. I have columns set for "hardware" and "software" so that it is easy to tell which product is in which category (product names are somewhat challenging to interpret). Original data and Pivot images attached.

Question: how can I only display the "Average of End Date" summary for the Software category, as it is not relevant to the "Hardware" category - i.e. I don't want the third column in the shown pivot table to display at all

Share Improve this question edited Feb 3 at 15:57 JetSetJim asked Feb 3 at 11:49 JetSetJimJetSetJim 781 silver badge12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You can't. Every element in the Values well will get assigned its matching column and you can't dynamically suppress it.

Consider

  • hiding the whole Excel column after a pivot table refresh
  • writing VBA that runs after pivot table refresh to automate hiding the undesired column(s)
发布评论

评论列表(0)

  1. 暂无评论