![]() |
|
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Apr 2002
Posts: 104
|
Hello,
I came across your webpage and on the web and was wondering if you had any experiences with grouping data accordingly. I tried to use pivot tables but am unsuccessful. Here is what I am trying to do. I am trying to VLookup and Transpose data from the same source on the same row. All my data is given in columns but I would like to parse it out to Rows. For Example here is my table. As you can see it is organized by columns. I would like to organize it so all the "FREQs" are on the same row but different columns. Before: Site Freq York01 611 York01 650 York01 700 Lanc01 725 Lanc01 730 Lanc01 750 After: Site Freq1 Freq 2 Freq 3 York01 611 650 700 Lanc01 725 730 750 Your help would be greatly appreciated! |
|
|
|
|
|
#2 |
|
Join Date: Mar 2002
Location: England
Posts: 26
|
I've managed to get the result you require. Can you forward me your email address (mine is quoted on site) and I'll email you spreadshhet I have created.
Lee |
|
|
|
|
|
#3 |
|
Join Date: Apr 2002
Posts: 104
|
Lee,
Did you get my email address? |
|
|
|
|
|
#4 |
|
Join Date: Mar 2002
Location: England
Posts: 26
|
No. Infact, thinking about it's probably gone to my work address. Try this one: hitchbloke@lineone.net
|
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,653
|
If A2:B7 contains...
{"York01",611 ;"York01",650 ;"York01",700 ;"Lanc01",725 ;"Lanc01",730 ;"Lanc01",750} ...enter the formula, =(A2<>A3)+0, into C2, the formula,=IF(A2=A1,D1&","&B2,B2&""), into cell D2, and fill these down to the last data row (7:7). Select column D and perform a Copy/Paste Special... Values. Select column C, apply an AutoFilter for "equal 0", and delete the displayed rows. After removing the AutoFilter delete columns B and C. Finally, select the last (remaining) column, choose the Data | Text to Columns... menu command, specify comma delimited and press [Finish]. You now have... {"York01",611,650,700 ;"Lanc01",725,730,750} [ This Message was edited by: Mark W. on 2002-04-26 13:01 ] |
|
|
|
|
|
#6 |
|
Join Date: Apr 2002
Posts: 104
|
BINGO! Great idea Mark!
I hope one day I can pass on this little trick! Thanks, Frank |
|
|
|
|
|
#7 |
|
Join Date: Apr 2002
Posts: 104
|
Jay,
Thank you as well! I took your little program and saved as a XLA. Works Great! This Forum is by far the best! Forever Grateful, Frank |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|