Keep spacing between pivots

gman23

New Member
Joined
May 10, 2016
Messages
3
Hello,
I am beginning to make a dashboard with multiple pivot tables. A few pivot tables will show details by date so as the month goes on the pivot will grow with each date. I need to keep the pivot tables one below the other to keep formatting can't put it next to the other. I need to keep the spacing the same between the pivots as they grow. there are 3 empty rows between the end of one pivot and the beginning of the other. I need to keep 3 blank rows as new dates are added, as of right now if I add a date the spacing narrows to 2.

Thank you for your help. :)
Excel 2016 (Windows) 64 bit
[TABLE="class: head"]
<tbody>[TR="bgcolor: #888888"]
[TH][/TH]
[TH]
A
[/TH]
[TH]
B
[/TH]
[TH]
C
[/TH]
[TH]
D
[/TH]
[TH]
E
[/TH]
[TH]
F
[/TH]
[TH]
G
[/TH]
[TH]
H
[/TH]
[TH]
I
[/TH]
[TH]
J
[/TH]
[TH]
K
[/TH]
[TH]
L
[/TH]
[TH]
M
[/TH]
[TH]
N
[/TH]
[TH]
O
[/TH]
[TH]
P
[/TH]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
3
[/TD]
[TD="bgcolor: #D9E1F2"]Row Labels
[/TD]
[TD="bgcolor: #D9E1F2"]Sum of Total
[/TD]
[TD][/TD]
[TD="bgcolor: #FF5050"]
Cannot put the pivot from below here, I need to keep format as is.​
[/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
4
[/TD]
[TD]04/01/2017
[/TD]
[TD]
60​
[/TD]
[TD][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
5
[/TD]
[TD]04/02/2017
[/TD]
[TD]
65​
[/TD]
[TD][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
6
[/TD]
[TD]04/03/2017
[/TD]
[TD]
70​
[/TD]
[TD][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
7
[/TD]
[TD]04/04/2017
[/TD]
[TD]
75​
[/TD]
[TD][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
8
[/TD]
[TD]04/05/2017
[/TD]
[TD]
80​
[/TD]
[TD][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
9
[/TD]
[TD]04/06/2017
[/TD]
[TD]
85​
[/TD]
[TD][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
10
[/TD]
[TD]04/07/2017
[/TD]
[TD]
90​
[/TD]
[TD][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
11
[/TD]
[TD]04/08/2017
[/TD]
[TD]
95​
[/TD]
[TD][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
12
[/TD]
[TD]04/09/2017
[/TD]
[TD]
100​
[/TD]
[TD][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
13
[/TD]
[TD]04/10/2017
[/TD]
[TD]
5​
[/TD]
[TD][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
14
[/TD]
[TD="bgcolor: #D9E1F2"]Grand Total
[/TD]
[TD="bgcolor: #D9E1F2"]
725
[/TD]
[TD][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[TD="bgcolor: #FF5050"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
15
[/TD]
[TD="bgcolor: #FFFF00"]THIS SPACING NEEDS TO STAY THE SAME. There needs to be 3 blank rows between the 2 pivots even as more days are added.
[/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
16
[/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
17
[/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[TD="bgcolor: #FFFF00"][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
18
[/TD]
[TD="bgcolor: #D9E1F2"]Row Labels
[/TD]
[TD="bgcolor: #D9E1F2"]Sum of Expense
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
19
[/TD]
[TD]01-Apr
[/TD]
[TD]
29​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
20
[/TD]
[TD]02-Apr
[/TD]
[TD]
30​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
21
[/TD]
[TD]03-Apr
[/TD]
[TD]
31​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
22
[/TD]
[TD]04-Apr
[/TD]
[TD]
32​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
23
[/TD]
[TD]05-Apr
[/TD]
[TD]
33​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
24
[/TD]
[TD]06-Apr
[/TD]
[TD]
34​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
25
[/TD]
[TD]07-Apr
[/TD]
[TD]
35​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
26
[/TD]
[TD]08-Apr
[/TD]
[TD]
36​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
27
[/TD]
[TD]09-Apr
[/TD]
[TD]
37​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
28
[/TD]
[TD]10-Apr
[/TD]
[TD]
38​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
29
[/TD]
[TD="bgcolor: #D9E1F2"]Grand Total
[/TD]
[TD="bgcolor: #D9E1F2"]
335
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid"]
<tbody>[TR]
[TD]Sheet: Sheet122
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Welcome to the Board!

Unfortunately, there's no setting in Excel to maintain distance between PT's. You'll need to do it manually, or use VBA Code.

You could use something like this:

Code:
Sub foo()
    Range("A1").End(xlDown).Offset(1).EntireRow.Insert
End Sub
 
Upvote 0
Welcome to the Board!

Unfortunately, there's no setting in Excel to maintain distance between PT's. You'll need to do it manually, or use VBA Code.

You could use something like this:

Code:
Sub foo()
    Range("A1").End(xlDown).Offset(1).EntireRow.Insert
End Sub

Thank you for taking a look. I attempted to use your Macro but it gave be a 'Run-time error '1004': We can't make this change for the selected cells because it will affect a PivotTable. Use the field list to change the report. If you are trying to insert or delete cells, move the PivotTable and try again.'

Any other suggestions? Instead of Range would I use some kind of Pivottable reference?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top