Как отформатировать окно выбора фильтра даты для сводной таблицы Excel

8364
RWL01

Я создал сводную таблицу в Excel 2013 и использовал значение даты в качестве фильтра. Когда я хочу фильтровать по диапазону, я должен выбрать отдельные дни. Опция выглядит так:

  • 1/1/2013
  • 1/2/2013
  • 1/3/2013

Когда я фильтрую дату в таблице записей, выбор даты намного более интуитивно понятен:

[x]2013 -[ ]January -[ ]1 -[ ]2 -[ ]3  

Есть ли способ получить этот формат в фильтре даты поля сводной таблицы?

2

1 ответ на вопрос

4
mtone

Nope. (Is this even an acceptable answer?)

You'll find that some "shared" functionalities between Tables and PivotTables aren't always identical - Custom Filters is another one.

But there's an alternative: you can create a few extra columns in your source records table to deal with that. You just have to fill them with a simple formula based on your date cells. That would be Year:

=YEAR(Date) 

and Month,to your liking:

=MONTH(Date) ' shows 1 (January) =TEXT(MONTH(Date), "mmm") ' shows "Jan" =TEXT(MONTH(Date), "mmmm") ' shows "January" 

You can then use those 2 fields in the "Report Filter" area of your PivotTable as a handy and quick access for filtering your dates.

Another huge benefit of adding these fields is that you can also use them for breaking down your PivotTables by year or month without having to mess with pivot groupings.

Отличный вариант, кроме написания кода VBA, с которым у меня минимальный опыт работы. Благодарю. RWL01 11 лет назад 0

Похожие вопросы