- Moderator
- #1
I'm having a hard time wrapping my brain around this one.....
I need to build a pivot table (which I can do), but the pivot table can pivot on TWO columns.
Take for example, this mock recordset:
So, I need the pivot table to look like this:
So, as you can see, I'm pivoting on the Well and the Date, then giving results for the Analyte..... but I can't figure out how to pivot on two fields.
TIA!
Just my 2¢
"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."
--Greg
I need to build a pivot table (which I can do), but the pivot table can pivot on TWO columns.
Take for example, this mock recordset:
Code:
Sample Date Location Analyte Result
01/01/2000 Well 1 Benzene .02
01/01/2000 Well 1 Toluene .01
01/01/2000 Well 2 Benzene .01
01/01/2000 Well 2 Toluene .01
01/20/2000 Well 1 Benzene .01
01/20/2000 Well 1 Toluene .01
01/20/2000 Well 2 Benzene .01
01/20/2000 Well 2 Toluene .01
So, I need the pivot table to look like this:
Code:
Well 1 Well 1 Well 2 Well 2
01/01/2000 01/20/2000 01/01/2000 01/20/2000
Benzene .02 .01 .01 .01
Toluene .01 .01 .01 .01
So, as you can see, I'm pivoting on the Well and the Date, then giving results for the Analyte..... but I can't figure out how to pivot on two fields.
TIA!
Just my 2¢
"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."
--Greg