Filter only results in the next 28 days from Pivot Table using VBA

dannybland

New Member
Joined
Sep 12, 2014
Messages
31
Hi,

I am looking to filter my table to show only the data from the next 28 days, I tried using the below but it returned an error. Included full example below

pt.PivotFields("Dates").PivotFilters.Add Type:=xlDateBetween, Value1:=Today(), Value2:=Today() + 28



Sub PTFour()


Sheets.Add
ActiveSheet.Name = "x"

Dim pt As PivotTable
Dim strField As String
Dim WSD As Worksheet
Set WSD = Worksheets("Raw Data")
Dim PTOutput As Worksheet
Set PTOutput = Worksheets("x")
Dim PTCache As PivotCache
Dim PRange As Range

' Find the last row with data
Dim finalRow As Long
finalRow = WSD.Cells(Application.Rows.Count, 1).End(xlUp).Row

' Find the last column with data
Dim finalCol As Long
finalCol = WSD.Cells(1, Application.Columns.Count).End(xlToLeft).Column

' Find the range of the data
Set PRange = WSD.Cells(1, 1).Resize(finalRow, finalCol)
Set PTCache = ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:=PRange)

' Create the pivot table
Set pt = PTCache.CreatePivotTable(TableDestination:=PTOutput.Cells(1, 1), _
TableName:="EquityInvestmentPivot")

' Define the layout of the pivot table

' Set update to manual to avoid recomputation while laying out
pt.ManualUpdate = True

'Setting Fields
With pt

'set row field
With .PivotFields("Make/Model")
.Orientation = xlRowField
.Position = 1
End With


'set column field
With .PivotFields("Company Code")
.Orientation = xlColumnField
.Position = 1
End With


'set data field
.AddDataField .PivotFields("Remaining Equity Investment"), "Sum of Equity Invested", xlSum
End With

With ActiveSheet.PivotTables("EquityInvestmentPivot").PivotFields( _
"Sum of Equity Invested")
.NumberFormat = "£#,##0.00;[Red]-£#,##0.00"
End With

pt.PivotFields("Dates").PivotFilters.Add Type:=xlDateBetween, Value1:=Today(), Value2:=Today() + 28

' Now calc the pivot table
pt.ManualUpdate = False


ActiveSheet.PivotTables("EquityInvestmentPivot").TableStyle2 = _
"PivotStyleMedium4"
ActiveWorkbook.ShowPivotTableFieldList = False


MsgBox "Please see your requested pivot table. If you require another, please go back to the Pivot Table Selection tab."

End Sub
 
That's not what I had in my code.

Rich (BB code):
PI.Visible = (DateValue(PI.Value) >= Date And DateValue(PI.Value) <= Date + 28)
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
No, still pulls all data.

Code:
    Dim Fmt As String    Dim PI As PivotItem
    With ActiveSheet.PivotTables("ExpiringEquityPivot").PivotFields("Termination Date")
        .ClearAllFilters
        Fmt = .NumberFormat
        .NumberFormat = "dd/mm/yyyy"
        For Each PI In .PivotItems
            Debug.Print CDate(PI.Value)
            PI.Visible = (DateValue(PI.Value) >= Date And DateValue(PI.Value) <= Date + 28)
        Next PI
        .NumberFormat = Fmt
    End With

Also, yes based in UK
 
Last edited:
Upvote 0
[TABLE="width: 1065"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Make/Model[/TD]
[TD]Termination Date[/TD]
[TD]Company Code[/TD]
[TD]Remaining Equity Investment[/TD]
[TD]Funding Status[/TD]
[TD]Detailed Funding Status[/TD]
[/TR]
[TR]
[TD]LEXUS IS[/TD]
[TD]06/09/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A5[/TD]
[TD]02/03/2014[/TD]
[TD]COS[/TD]
[TD]143.17[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A4[/TD]
[TD]15/09/2013[/TD]
[TD]CBF[/TD]
[TD]5929.11[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLVO V60[/TD]
[TD]17/03/2015[/TD]
[TD]CBF[/TD]
[TD]2219.87[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]BMW 5[/TD]
[TD]11/07/2015[/TD]
[TD]CBL[/TD]
[TD]0[/TD]
[TD]Funder To Be Allocated[/TD]
[TD]Funder To Be Allocated (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A5[/TD]
[TD]10/11/2013[/TD]
[TD]CBL[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLVO V40[/TD]
[TD]01/02/2017[/TD]
[TD]CBF[/TD]
[TD]497.76[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<36 Months)[/TD]
[/TR]
[TR]
[TD]BMW 5 SERIES[/TD]
[TD]20/12/2015[/TD]
[TD]CBF[/TD]
[TD]6532.34[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<24 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A1[/TD]
[TD]05/10/2014[/TD]
[TD]COS[/TD]
[TD]1383.51[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]TOYOTA YARIS[/TD]
[TD]31/01/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A3[/TD]
[TD]17/01/2015[/TD]
[TD]COS[/TD]
[TD]1737.5[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A3[/TD]
[TD]03/09/2014[/TD]
[TD]COS[/TD]
[TD]1870.2[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]MERCEDES-BENZ C CLASS[/TD]
[TD]03/01/2017[/TD]
[TD]CBF[/TD]
[TD]702.72[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<36 Months)[/TD]
[/TR]
[TR]
[TD]AUDI Q3[/TD]
[TD]12/12/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLKSWAGEN POLO[/TD]
[TD]07/01/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLKSWAGEN POLO[/TD]
[TD]28/01/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A3[/TD]
[TD]11/03/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A1[/TD]
[TD]17/09/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]MERCEDES-BENZ E CLASS[/TD]
[TD]01/09/2014[/TD]
[TD]COS[/TD]
[TD]187.69[/TD]
[TD]Dealer Funded[/TD]
[TD]Dealer Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLKSWAGEN GOLF[/TD]
[TD]23/12/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]NISSAN NOTE[/TD]
[TD]27/03/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI Q3[/TD]
[TD]28/09/2014[/TD]
[TD]COS[/TD]
[TD]22301.45[/TD]
[TD]Self Funded (<12 Months)[/TD]
[TD]Self Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]LEXUS RX[/TD]
[TD]06/09/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]LAND ROVER DISCOVERY[/TD]
[TD]28/09/2014[/TD]
[TD]COS[/TD]
[TD]4669.88[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]SEAT LEON[/TD]
[TD]16/04/2015[/TD]
[TD]COS[/TD]
[TD]689.87[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A3[/TD]
[TD]03/10/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLKSWAGEN PASSAT ALLTRACK[/TD]
[TD]10/04/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]TOYOTA YARIS[/TD]
[TD]01/03/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLKSWAGEN GOLF[/TD]
[TD]25/10/2014[/TD]
[TD]COS[/TD]
[TD]175.8[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]NISSAN JUKE[/TD]
[TD]10/04/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]RENAULT CLIO[/TD]
[TD]23/04/2015[/TD]
[TD]COS[/TD]
[TD]10418.93[/TD]
[TD]Self Funded (<12 Months)[/TD]
[TD]Self Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]NISSAN JUKE[/TD]
[TD]30/04/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]RENAULT CLIO[/TD]
[TD]30/04/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]TOYOTA AURIS[/TD]
[TD]04/09/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]TOYOTA YARIS[/TD]
[TD]15/08/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]NISSAN JUKE[/TD]
[TD]01/09/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLKSWAGEN SCIROCCO[/TD]
[TD]21/05/2015[/TD]
[TD]COS[/TD]
[TD]1926.4[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]SEAT LEON[/TD]
[TD]30/01/2015[/TD]
[TD]COS[/TD]
[TD]14859.85[/TD]
[TD]Self Funded (<12 Months)[/TD]
[TD]Self Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]TOYOTA AURIS[/TD]
[TD]01/09/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]SKODA CITIGO[/TD]
[TD]11/07/2015[/TD]
[TD]COS[/TD]
[TD]1139.19[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]SKODA OCTAVIA[/TD]
[TD]28/05/2015[/TD]
[TD]COS[/TD]
[TD]17429.37[/TD]
[TD]Self Funded (<12 Months)[/TD]
[TD]Self Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A3[/TD]
[TD]30/05/2015[/TD]
[TD]COS[/TD]
[TD]666.95[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI Q3[/TD]
[TD]13/06/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A5[/TD]
[TD]19/12/2014[/TD]
[TD]COS[/TD]
[TD]59.67[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLKSWAGEN UP[/TD]
[TD]01/07/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A3[/TD]
[TD]08/02/2015[/TD]
[TD]COS[/TD]
[TD]19960.28[/TD]
[TD]Funder To Be Allocated[/TD]
[TD]Funder To Be Allocated (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A1[/TD]
[TD]01/08/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]TOYOTA AURIS[/TD]
[TD]01/09/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A3[/TD]
[TD]01/03/2015[/TD]
[TD]COS[/TD]
[TD]29877.78[/TD]
[TD]Funder To Be Allocated[/TD]
[TD]Funder To Be Allocated (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A3[/TD]
[TD]05/03/2015[/TD]
[TD]COS[/TD]
[TD]16533.2[/TD]
[TD]Funder To Be Allocated[/TD]
[TD]Funder To Be Allocated (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A3[/TD]
[TD]01/03/2015[/TD]
[TD]COS[/TD]
[TD]19613.9[/TD]
[TD]Funder To Be Allocated[/TD]
[TD]Funder To Be Allocated (<12 Months)[/TD]
[/TR]
[TR]
[TD]NISSAN JUKE[/TD]
[TD]17/09/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VAUXHALL INSIGNIA[/TD]
[TD]19/11/2016[/TD]
[TD]CBL[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<36 Months)[/TD]
[/TR]
[TR]
[TD]VAUXHALL INSIGNIA[/TD]
[TD]16/08/2014[/TD]
[TD]CBL[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VAUXHALL INSIGNIA[/TD]
[TD]21/06/2014[/TD]
[TD]CBF[/TD]
[TD]9231.74[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLKSWAGEN POLO[/TD]
[TD]22/11/2014[/TD]
[TD]COS[/TD]
[TD]10150.23[/TD]
[TD]Self Funded (<12 Months)[/TD]
[TD]Self Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]TOYOTA AURIS[/TD]
[TD]06/06/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A4[/TD]
[TD]02/11/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]LAND ROVER DISCOVERY[/TD]
[TD]20/12/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Dealer Funded[/TD]
[TD]Dealer Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLKSWAGEN GOLF[/TD]
[TD]07/02/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI Q5[/TD]
[TD]23/12/2014[/TD]
[TD]COS[/TD]
[TD]76.16[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]NISSAN JUKE[/TD]
[TD]30/05/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A1[/TD]
[TD]01/09/2015[/TD]
[TD]COS[/TD]
[TD]16561.13[/TD]
[TD]Funder To Be Allocated[/TD]
[TD]Funder To Be Allocated (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A6[/TD]
[TD]03/03/2015[/TD]
[TD]COS[/TD]
[TD]42136.85[/TD]
[TD]Funder To Be Allocated[/TD]
[TD]Funder To Be Allocated (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI Q5[/TD]
[TD]01/02/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI Q5[/TD]
[TD]05/03/2015[/TD]
[TD]COS[/TD]
[TD]34966[/TD]
[TD]Funder To Be Allocated[/TD]
[TD]Funder To Be Allocated (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLKSWAGEN SCIROCCO[/TD]
[TD]14/03/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLKSWAGEN UP[/TD]
[TD]21/11/2014[/TD]
[TD]COS[/TD]
[TD]1455.49[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A5[/TD]
[TD]01/04/2015[/TD]
[TD]CBF[/TD]
[TD]21170.44[/TD]
[TD]Self Funded (<12 Months)[/TD]
[TD]Self Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A3[/TD]
[TD]27/12/2014[/TD]
[TD]COS[/TD]
[TD]316.57[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]TOYOTA AURIS[/TD]
[TD]15/07/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A6[/TD]
[TD]30/12/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Dealer Funded[/TD]
[TD]Dealer Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A1[/TD]
[TD]01/09/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A6[/TD]
[TD]11/01/2015[/TD]
[TD]COS[/TD]
[TD]29184.8[/TD]
[TD]Funder To Be Allocated[/TD]
[TD]Funder To Be Allocated (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI TT[/TD]
[TD]28/07/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]LAND ROVER RANGE ROVER[/TD]
[TD]10/10/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]BMW 1 SERIES[/TD]
[TD]07/06/2016[/TD]
[TD]CBF[/TD]
[TD]1047.36[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<24 Months)[/TD]
[/TR]
[TR]
[TD]NISSAN MICRA[/TD]
[TD]24/10/2014[/TD]
[TD]COS[/TD]
[TD]8091.66[/TD]
[TD]Self Funded (<12 Months)[/TD]
[TD]Self Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]LAND ROVER RANGE ROVER SPORT[/TD]
[TD]02/07/2014[/TD]
[TD]COS[/TD]
[TD]93.42[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A1[/TD]
[TD]17/10/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]SEAT LEON[/TD]
[TD]04/11/2014[/TD]
[TD]COS[/TD]
[TD]2067.02[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]LAND ROVER DISCOVERY[/TD]
[TD]13/04/2016[/TD]
[TD]CBL[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<24 Months)[/TD]
[/TR]
[TR]
[TD]SEAT IBIZA[/TD]
[TD]30/09/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]SKODA SUPERB[/TD]
[TD]16/03/2015[/TD]
[TD]CBL[/TD]
[TD]20874.99[/TD]
[TD]Funder To Be Allocated[/TD]
[TD]Funder To Be Allocated (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLVO V50[/TD]
[TD]23/05/2016[/TD]
[TD]CBF[/TD]
[TD]1498.52[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<24 Months)[/TD]
[/TR]
[TR]
[TD]VOLKSWAGEN POLO[/TD]
[TD]16/10/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A3[/TD]
[TD]13/06/2016[/TD]
[TD]CBF[/TD]
[TD]12300[/TD]
[TD]Self Funded (<24 Months)[/TD]
[TD]Self Funded (<24 Months)[/TD]
[/TR]
[TR]
[TD]NISSAN NOTE[/TD]
[TD]27/03/2015[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]NISSAN NOTE[/TD]
[TD]19/12/2014[/TD]
[TD]COS[/TD]
[TD]885.03[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]MERCEDES-BENZ E CLASS[/TD]
[TD]01/10/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]SKODA OCTAVIA[/TD]
[TD]28/04/2015[/TD]
[TD]COS[/TD]
[TD]19130.5[/TD]
[TD]Self Funded (<12 Months)[/TD]
[TD]Self Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]KIA SORENTO[/TD]
[TD]26/08/2018[/TD]
[TD]CBF[/TD]
[TD]26153.57[/TD]
[TD]Funder To Be Allocated[/TD]
[TD]Funder To Be Allocated (<48 Months)[/TD]
[/TR]
[TR]
[TD]VOLKSWAGEN GOLF[/TD]
[TD]24/09/2017[/TD]
[TD]CBF[/TD]
[TD]20618.31[/TD]
[TD]Self Funded (<48 Months)[/TD]
[TD]Self Funded (<48 Months)[/TD]
[/TR]
[TR]
[TD]NISSAN JUKE[/TD]
[TD]24/09/2014[/TD]
[TD]COS[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]VOLKSWAGEN POLO[/TD]
[TD]09/12/2014[/TD]
[TD]COS[/TD]
[TD]1054.65[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<12 Months)[/TD]
[/TR]
[TR]
[TD]MERCEDES-BENZ C[/TD]
[TD]26/01/2013[/TD]
[TD]CBL[/TD]
[TD]1[/TD]
[TD]Funder To Be Allocated[/TD]
[TD]Funder To Be Allocated (<12 Months)[/TD]
[/TR]
[TR]
[TD]AUDI A7[/TD]
[TD]01/06/2016[/TD]
[TD]CBF[/TD]
[TD]7229.96[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<24 Months)[/TD]
[/TR]
[TR]
[TD]HONDA CIVIC[/TD]
[TD]01/06/2016[/TD]
[TD]CBF[/TD]
[TD]1049.28[/TD]
[TD]Part Funded[/TD]
[TD]Part Funded (<24 Months)[/TD]
[/TR]
[TR]
[TD]LAND ROVER RANGE ROVER EVOQUE[/TD]
[TD]25/09/2016[/TD]
[TD]CBF[/TD]
[TD]20783.83[/TD]
[TD]Self Funded (<36 Months)[/TD]
[TD]Self Funded (<36 Months)[/TD]
[/TR]
[TR]
[TD]FORD MONDEO[/TD]
[TD]09/07/2016[/TD]
[TD]CBL[/TD]
[TD]0[/TD]
[TD]Fully Funded[/TD]
[TD]Fully Funded (<24 Months)[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
If I run my VBA code on a pivot table created from that data I get:


Excel 2010
HIJ
1Termination Date(Multiple Items)
2
3Sum of Remaining Equity InvestmentColumn Labels
4Row LabelsCOSGrand Total
5AUDI A11383.511383.51
6AUDI A300
7AUDI Q322301.4522301.45
8LAND ROVER DISCOVERY4669.884669.88
9LAND ROVER RANGE ROVER00
10MERCEDES-BENZ E CLASS00
11NISSAN JUKE00
12SEAT IBIZA00
13Grand Total28354.8428354.84
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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