Hi
For a Pivot Table to work, each column has to have a unique heading in
the first row.
It does not matter if there is data in every column of each row.
From your posting, it is difficult to see your layout.

Signature
Regards
Roger Govier
> What I would like on, say, Sheet2 would be:
>
[quoted text clipped - 70 lines]
>> > >> but I've
>> > >> been bashing my head for some time!
Dave Peterson - 24 Jun 2007 13:16 GMT
Although, I think it's a good idea for each field to have a unique header, all
that's required is that each field have a header (non-empty cell).
> Hi
>
[quoted text clipped - 88 lines]
> >> > >> but I've
> >> > >> been bashing my head for some time!

Signature
Dave Peterson
One alternative using non-array formulas which automates the extraction of
the uniques list from 4 source cols and the corresponding counts of the
uniques ..
Illustration in this sample construct:
http://www.savefile.com/files/841298
Multicol merge n uniques extract n count.xls
Source data assumed in cols A to F, data from row5 down
where col C = Lube data, col D = air-primary data,
col E = air-secondary data, col F = fuel-inner data
Using 4 adjacent cols to the right, cols G to J
In G5:
=OFFSET(C$5,INT((ROWS($1:1)-1)/4),MOD(ROWS($1:1)-1,4))
Copy down to cover the max expected extent of aggregated data in the 4
source cols C to F. If you expect source data per col to span up to say 100
rows down, then copy down by a total of 400 rows (4 cols x 100 rows = 400
rows). Col G functions to merge the contents of cols C to F into a single
col. Empty source cells will be returned as zeros.
In H5:
=IF(G5=0,"",IF(COUNTIF(G$5:G5,G5)>1,"",ROW()))
Leave H1:H4 blank. This is a criteria col to ignore the zeros and flag the
unique items extracted in col G.
In I5:
=IF(ROWS($1:1)>COUNT(H:H),"",INDEX(G:G,SMALL(H:H,ROWS($1:1))))
In J5:
=IF(I5="","",COUNTIF(G:G,I5))
Select H5:J5, fill down to the same extent as for col G. Hide away cols G &
H. Col I will return the list of unique items from cols C to F, while col J
returns the counts of these unique items. All results will be neatly bunched
at the top.
You could then just do a simple copy n paste special as values for cols I &
J elsewhere, and use Data > Sort menu to sort by the uniques col.

Signature
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
> What I would like on, say, Sheet2 would be:
>
[quoted text clipped - 58 lines]
> > > >> but I've
> > > >> been bashing my head for some time!
partsman_ba - 27 Jun 2007 23:42 GMT
Thanks Max - exactly what I was looking for. Looks like the BASIC programming
I used to do on my TRS-80 Model I back in 1981!
> One alternative using non-array formulas which automates the extraction of
> the uniques list from 4 source cols and the corresponding counts of the
[quoted text clipped - 97 lines]
> > > > >> but I've
> > > > >> been bashing my head for some time!
Max - 28 Jun 2007 00:12 GMT
welcome, good to hear it worked for you.

Signature
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
> Thanks Max - exactly what I was looking for. Looks like the BASIC
> programming
> I used to do on my TRS-80 Model I back in 1981!