Hi Guys,
I have about 600 rego numbers for which I need to figure out below.
1) Difference between minimum & maximum odo reading for unique rego numbers
2) Days between minimum & maximum odo reading for unique rego numbers
Below is an example of my data with 4 rego numbers
I thought Pivot table would work best with Min Max, but I can not figure out formula for the calculated field.
I tried =MAX('Odometer Reading')-MIN('Odometer Reading'), with Rego Number as my Row Label.
[TABLE="width: 269"]
<tbody>[TR]
[TD][TABLE="width: 430"]
<tbody>[TR]
[TD]Registration Number[/TD]
[TD]Transaction Date[/TD]
[TD]Odometer Reading[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]31/07/2014[/TD]
[TD]124204[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]01/08/2014[/TD]
[TD]92278[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]02/08/2014[/TD]
[TD]124885[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]06/08/2014[/TD]
[TD]125511[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]06/08/2014[/TD]
[TD]92887[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]12/08/2014[/TD]
[TD]93271[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]13/08/2014[/TD]
[TD]126178[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]18/08/2014[/TD]
[TD]126807[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]19/08/2014[/TD]
[TD]93966[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]20/08/2014[/TD]
[TD]127419[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]22/08/2014[/TD]
[TD]128054[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]22/08/2014[/TD]
[TD]94647[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]27/08/2014[/TD]
[TD]128725[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]29/08/2014[/TD]
[TD]129298[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]01/08/2014[/TD]
[TD]183413[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]06/08/2014[/TD]
[TD]183834[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]07/08/2014[/TD]
[TD]184252[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]12/08/2014[/TD]
[TD]184684[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]13/08/2014[/TD]
[TD]185191[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]15/08/2014[/TD]
[TD]185655[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]20/08/2014[/TD]
[TD]186096[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]21/08/2014[/TD]
[TD]186529[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]22/08/2014[/TD]
[TD]186901[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]25/08/2014[/TD]
[TD]187385[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]27/08/2014[/TD]
[TD]187743[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]28/08/2014[/TD]
[TD]188110[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]01/08/2014[/TD]
[TD]148479[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]07/08/2014[/TD]
[TD]148198[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]10/08/2014[/TD]
[TD]149532[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]13/08/2014[/TD]
[TD]150084[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]18/08/2014[/TD]
[TD]150888[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]20/08/2014[/TD]
[TD]151456[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]25/08/2014[/TD]
[TD]152033[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]27/08/2014[/TD]
[TD]153277[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]29/08/2014[/TD]
[TD]152524[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]31/07/2014[/TD]
[TD]29370[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]04/08/2014[/TD]
[TD]29980[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]07/08/2014[/TD]
[TD]30657[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]12/08/2014[/TD]
[TD]31214[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]15/08/2014[/TD]
[TD]31842[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]19/08/2014[/TD]
[TD]32452[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]20/08/2014[/TD]
[TD]33051[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]22/08/2014[/TD]
[TD]33624[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]25/08/2014[/TD]
[TD]34119[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]26/08/2014[/TD]
[TD]34668[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]27/08/2014[/TD]
[TD]35186[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have about 600 rego numbers for which I need to figure out below.
1) Difference between minimum & maximum odo reading for unique rego numbers
2) Days between minimum & maximum odo reading for unique rego numbers
Below is an example of my data with 4 rego numbers
I thought Pivot table would work best with Min Max, but I can not figure out formula for the calculated field.
I tried =MAX('Odometer Reading')-MIN('Odometer Reading'), with Rego Number as my Row Label.
[TABLE="width: 269"]
<tbody>[TR]
[TD][TABLE="width: 430"]
<tbody>[TR]
[TD]Registration Number[/TD]
[TD]Transaction Date[/TD]
[TD]Odometer Reading[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]31/07/2014[/TD]
[TD]124204[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]01/08/2014[/TD]
[TD]92278[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]02/08/2014[/TD]
[TD]124885[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]06/08/2014[/TD]
[TD]125511[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]06/08/2014[/TD]
[TD]92887[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]12/08/2014[/TD]
[TD]93271[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]13/08/2014[/TD]
[TD]126178[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]18/08/2014[/TD]
[TD]126807[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]19/08/2014[/TD]
[TD]93966[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]20/08/2014[/TD]
[TD]127419[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]22/08/2014[/TD]
[TD]128054[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]22/08/2014[/TD]
[TD]94647[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]27/08/2014[/TD]
[TD]128725[/TD]
[/TR]
[TR]
[TD]ABC000[/TD]
[TD]29/08/2014[/TD]
[TD]129298[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]01/08/2014[/TD]
[TD]183413[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]06/08/2014[/TD]
[TD]183834[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]07/08/2014[/TD]
[TD]184252[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]12/08/2014[/TD]
[TD]184684[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]13/08/2014[/TD]
[TD]185191[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]15/08/2014[/TD]
[TD]185655[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]20/08/2014[/TD]
[TD]186096[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]21/08/2014[/TD]
[TD]186529[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]22/08/2014[/TD]
[TD]186901[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]25/08/2014[/TD]
[TD]187385[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]27/08/2014[/TD]
[TD]187743[/TD]
[/TR]
[TR]
[TD]ABC123[/TD]
[TD]28/08/2014[/TD]
[TD]188110[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]01/08/2014[/TD]
[TD]148479[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]07/08/2014[/TD]
[TD]148198[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]10/08/2014[/TD]
[TD]149532[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]13/08/2014[/TD]
[TD]150084[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]18/08/2014[/TD]
[TD]150888[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]20/08/2014[/TD]
[TD]151456[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]25/08/2014[/TD]
[TD]152033[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]27/08/2014[/TD]
[TD]153277[/TD]
[/TR]
[TR]
[TD]XYZ000[/TD]
[TD]29/08/2014[/TD]
[TD]152524[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]31/07/2014[/TD]
[TD]29370[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]04/08/2014[/TD]
[TD]29980[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]07/08/2014[/TD]
[TD]30657[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]12/08/2014[/TD]
[TD]31214[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]15/08/2014[/TD]
[TD]31842[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]19/08/2014[/TD]
[TD]32452[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]20/08/2014[/TD]
[TD]33051[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]22/08/2014[/TD]
[TD]33624[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]25/08/2014[/TD]
[TD]34119[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]26/08/2014[/TD]
[TD]34668[/TD]
[/TR]
[TR]
[TD]XYZ123[/TD]
[TD]27/08/2014[/TD]
[TD]35186[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]