Search code examples
excelindexingpivot-tableexcel-2013

Ignore some rows when using INDEX function on a PivotTable


In Excel 2013 I am using an INDEX function to populate a column with ticker symbols that appear in a pivot table. I find that when I do this it is also pulling in the categories that each ticker appears under - for example "Consumer Discretionary". I do not want to pull the category in at all. I only want a list of the tickers.

How would I be able to do this? Maybe INDEX is the incorrect Excel function to use.


Solution

  • I'm guessing you have something as on the left, which can be changed to as in the middle by clicking in the PT, DESIGN > Layout - Report Layout, Show in Tabular Form. The subtotals might then be removed for a result as on the right:

    SO26362244 example

    The row labels may be repeated ("filled in") under Field Settings, if desired.