![]() |
|
|
|
Registered
Join Date: Feb 2000
Location: Dallas, TX
Posts: 4,612
|
![]()
Can someone help me convert the layout of an Excel spreadsheet? I think the example in the attached picture says it all. If I knew what the technical term for what I am trying to do, I would google it, but I don't. In a way it's like transposing, but I don't want to repeat the type column.
![]() Plus the list I am looking at is 1000 rows long. Thanks, Neil
__________________
Neil '73 911S targa |
||
![]() |
|
Cars & Coffee Killer
Join Date: Sep 2004
Location: State of Failure
Posts: 32,246
|
You could use the transpose feature to do some of the work.
Me personally? I'd record a macro of myself doing it once, then alter the code to work down the spreadsheet until it encounters blank rows.
__________________
Some Porsches long ago...then a wankle... 5 liters of VVT fury now -Chris "There is freedom in risk, just as there is oppression in security." |
||
![]() |
|
Registered
|
For each model (911, 914, etc), I would copy the part numbers (col B), paste-transpose that into a row, use that row to drive a VLOOKUP formula to create a table that extracts the info you want, in the format you want, and then copy-paste values that table to remove the formula and convert the table to hard-coded values. But I actually think the format you have is potentially more useful.
__________________
1989 3.2 Carrera coupe; 1988 Westy Vanagon, Zetec; 1986 E28 M30; 1994 W124; 2004 S211 What? Uh . . . “he” and “him”? Last edited by jyl; 01-22-2010 at 09:34 AM.. |
||
![]() |
|
Registered
Join Date: Jul 2001
Location: Lawrenceville GA 30045
Posts: 7,377
|
I've just tried a method and it will get you close to your result wanted:
I'll explain the steps: 1 - insert a column before column B 2 - enter a formula in B2 - use the concatenate function to merge the part numbers and their descriptions =CONCATENATE("P/N ", C2, " DESC: ",D2) 3 - autofilter the column headings 4 - filter on 911 5 - highlight all entries in column B and COPY 6 - move to the new location where you want the data and in column A enter 911 7 - on that same row, column B, select Paste -Special, Values only, Transponse repeat 5 through 7 for each "type" you have
__________________
Mark '83 SC Targa - since 5/5/2001 '06 911 S Aerokit - from 5/2/2016 to 11/14/2018 '11 911 S w/PDK - from 7/2/2021 to ??? |
||
![]() |
|
Registered
|
That gets you concatenated part number and description, which isn't what OP wants.
__________________
1989 3.2 Carrera coupe; 1988 Westy Vanagon, Zetec; 1986 E28 M30; 1994 W124; 2004 S211 What? Uh . . . “he” and “him”? |
||
![]() |
|
Registered
Join Date: Jul 2001
Location: Lawrenceville GA 30045
Posts: 7,377
|
I did say it gets him "close"
![]()
__________________
Mark '83 SC Targa - since 5/5/2001 '06 911 S Aerokit - from 5/2/2016 to 11/14/2018 '11 911 S w/PDK - from 7/2/2021 to ??? |
||
![]() |
|
![]() |
Registered
|
Sent you a PM
__________________
1989 3.2 Carrera coupe; 1988 Westy Vanagon, Zetec; 1986 E28 M30; 1994 W124; 2004 S211 What? Uh . . . “he” and “him”? |
||
![]() |
|
Registered
|
OK, I flamed out, my way doesn't work because in the actual data, the values in each column are not unique, so VLOOKUP won't know which value to return.
I couldn't think of a way to do what Neil wants w/o using VB code. Can anyone else help?
__________________
1989 3.2 Carrera coupe; 1988 Westy Vanagon, Zetec; 1986 E28 M30; 1994 W124; 2004 S211 What? Uh . . . “he” and “him”? |
||
![]() |
|