Question : how to pivot data horizontally in excel 2007

I have spreadsheet with 4 columns. Location, ReadDT, PrevDT, reading, usage.

For every row where the location_ID = 1, I need all the data to be horizontal, and every time the location_ID changes, I need to start a new row. I have attached a .xls file with the "data" in a sheet, and an example how how I need to display the data in the "example" sheet...please help : )
Attachments:
 
This has 2 tables, data and example
 

Answer : how to pivot data horizontally in excel 2007

Unfortunately since your data there is in text format and not numbers, you can't pivot it very well, because all excel sees is words. But if you convert the values to actual numbers and dates, then you can do a bit more with it.
And since the format you want results in redundant, columns you need another field to keep track of the columns.

On the attached I added formulas to your data to keep track of the columns (Data Sets) and also added formulas to convert the dates and reading text values to actual numerical values that can be used in a pivot table.
If you have more data, you can paste it at the bottom and copy all the formulas (in red) down. (Also if you add more data, you may need to update the range that feeds into the pivot table, since it's a static range, not a table)
Random Solutions  
 
programming4us programming4us