Excel - Dynamic Pivot Table that ignores blank rows and subtotal rows - excel

So, I have this dynamic pivot table grabbing data from another sheet/tab called Data Import. In Name Manager, this is what I have for the pivot table:
=OFFSET('Data Import'!$A$6,0,0,(COUNTA('Data Import'!$A:$A)),14)
The pivot table work beautifully when I don't have blank rows or rows that have subtotals throughout the middle of the record (Data Import tab), but when I do, my dynamic pivot table doesn't show the last 10 or 12 rows of data.
Is there a way of getting around this without adding "+20" at the end of the COUNTA() function in my name manager.
Thanks!

Related

How to transpose Excel Pivot table

I have source table where I have every number category in separate column (something like already pivoted).
I would like to create pivot table, where division are in columns and number category in rows.
I need to transpose columns with rows from this layout:
to something like this:
Is it possible within standard pivot without Power query and unpivoting my data? (I guess with PQ it would be bigger and took longer to refresh).
In the pivot field pane, drag Values from the Columns box to the Rows box, and drag Divisions from the Rows box to the Columns box.

Pivot Table sorting - category instead of "Values"

Below is the extract of a table i want to sort
I'd like to create two Pivot Table in two separate sheets so that I only have the start and end Dates corresponding to only one of the two categories, i.e AC156 or AC157
Extract of the result tables
Since the source list keeps getting updated, I'd really like to do this using Pivot Tables so that I can keep refreshing it.
It seems simple enough but I'm admittedly quite new to Pivot Tables. Any help would be appreciated.
Highlight your data table;
Insert a pivot table;
Put all three columns into Rows field;
Right click somewhere within the pivot table, go to PivotTable Options, go to Display, select Classic PivotTable layout (enables dragging of fields in the grid);
If your pivot table has grouped the dates by month, un-check Months2 in the data fields but leave Months if you want to sort by Start date;
If you pivot table has shown the subtotal for start date, right click the subtotal row and deselect Subtotal 'Start'.
You can make a copy of the pivot table, filter the Cat, sort the Months and then Start, then you should have:

Power Pivot, Pivot Table can't expand field after Filtering

I'm having problems with my pivot table, the data is created from Power Pivot.
I filtered my main field by a specific Name, and lose the + expand field and all of the rows not in my filter become hidden (please see example screenshot).
I tested created a regular pivot table and this error doesn't show up.
Please advise, thanks!
The blue row heading indicates that the filtering is not done with the pivot table tools. If you filter the pivot table headings, you can still expand and collapse the pivot rows and the row headings stay black. If, however, you have a spreadsheet filter outside of the pivot table, that filter will turn filtered row headings blue and may hide the rows into which the pivot table expands.

Excel Pivot move result row to first row

I am primarly a programmer and dont work often with Excel, but no I have to build a Report. I guess this is a very easy Problem or not possible at all, but i could find nothing by myself
I made a Pivotreport, and now I want to move the Overall-Sum to the front of the Report, so that if somebody reads it, he sees the overallnumbers first.
I only have a german Excel, so I dont know the english names here, I hope the screenshot makes it clear:
This is possible to do using Slicers, running two pivot tables, and hiding unnecessary columns.
I built a sample table to work with that can be applied to your data:
Select your pivot table to open the Pivottable Tools menu, then click on "Insert Slicer":
Select the fields you would like to be able to filter:
Copy and paste your entire pivot table into a new sheet. Ensure it remains a pivot table when you paste it.
In the newly copied pivot table, remove all columns so that you have just Row Labels and Grand Totals remaining:
Return to the original pivot table and insert three columns to the left of the pivot table:
Navigate back to the copy of your pivot table and copy this trimmed down pivot table:
Return to the original pivot table and paste it into the range to the left of the pivot table (leaving a blank column in between):
Hide the Row Labels on the pivot table on the right side, shrink the blank column between the two pivot tables, and rearrange your slicers:
You now have the Grand Total at the beginning of the pivot table and it can be filtered via the slicers.

Excel 2013: Table Slicers selection not changing values for calculated field (without VBA)

I have a ODBC query in Excel that I have attached slicers to in order to filter the data.
Those slicers are on the main page along with a series of formulas to analyze the data.
i.e. Table on Sheet 2 contains rows with a unique ID, state, county, zip, and other fields.
I have Slicers on Sheet 1 that filter the data in the Table in Sheet 2. On sheet one I also have a series of calculations in Sheet 1 such as:
=count(Sheet2!A:A)
=countif(Sheet2!B:B,1)/count(Sheet2!A:A)
So with no slicers selected, the formulas should count the total in Sheet2!A:A, however when I select a value from the slicer to filter the table, it shows the same calculated value essentially ignoring the filters.
Is there anyway to ensure that the calculated fields are based on the filtered data without using VBA?
Figured it out:
Need to use the SUBTOTAL function then the corresponding function # (i.e. 2 is count, 9 is sum etc.)
so the calculation looks like this
=count(Sheet2!A:A) becomes =subtotal(2,Sheet2!A:A)

Resources