(no subject)
Aug. 14th, 2007 03:14 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I have a question for you Excel whizzes. Let's say I have lots and lots (BIG understatement) of data in a spreadsheet that is formatted like this:
Is there a way in Excel that I can transpose the data so that it reads like this?
SITE_ID | DATE_TIME | WATER_LEVEL |
1234 | 5/01/2007 | 31.00 |
1234 | 5/02/2007 | 30.00 |
1234 | 5/03/2007 | 35.00 |
5555 | 5/01/2007 | 25.00 |
5555 | 5/02/2007 | 24.00 |
5555 | 5/03/2007 | 23.00 |
Is there a way in Excel that I can transpose the data so that it reads like this?
5/01/2007 | 5/02/2007 | 5/03/2007 | |
1234 | 31.00 | 30.00 | 35.00 |
5555 | 25.00 | 24.00 | 23.00 |
(no subject)
Date: 2007-08-14 08:44 pm (UTC)I could send you my scripts, but my formatting issue was different... I had this type of thing:
01/01 45 01/02 67 01/03 68 ... to end of January
02/01 70 02/02 40 02/03 28 ... to end of February
and I needed to arrange the data all in one dimension like this:
01/01 45
01/02 67
.
.
.
02/28 68
If that makes sense.... my scripts worked, but they were pretty fragile and would take upwards of an hour to run.
Hope someone else has a better answer for you!
(no subject)
Date: 2007-08-14 08:51 pm (UTC)(no subject)
Date: 2007-08-15 03:52 pm (UTC)(no subject)
Date: 2007-08-17 08:31 am (UTC)(no subject)
Date: 2007-08-17 06:09 pm (UTC)(no subject)
Date: 2007-08-14 11:30 pm (UTC)site_id 1234 1234 1234 5555 5555 5555
date_time 5/1 5/2 5/3 5/1 5/2 5/3
water_level 31 30 35 25 24 23
I didn't format it into a table here on LJ so it probably looks like crap ... so that's an idea if you had really big clumps of places with the same site ID, I would say just select all the stations with one ID and transpose them and then move on to the next. That's the best quick answer I have, though I could probably come up with something else if I think and try long enough. Good luck if this isn't what you need!