Pelican Parts
Parts Catalog Accessories Catalog How To Articles Tech Forums
Call Pelican Parts at 888-280-7799
Shopping Cart Cart | Project List | Order Status | Help



Go Back   Pelican Parts Forums > Miscellaneous and Off Topic Forums > Off Topic Discussions


Reply
 
LinkBack Thread Tools Rate Thread
Author
Thread Post New Thread    Reply
Registered
 
Join Date: Feb 2000
Location: Dallas, TX
Posts: 4,612
Question Excel Help please. Group by columns? not sure of the correct

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
Old 01-22-2010, 07:00 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #1 (permalink)
Cars & Coffee Killer
 
legion's Avatar
 
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."
Old 01-22-2010, 07:03 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #2 (permalink)
jyl jyl is online now
Registered
 
jyl's Avatar
 
Join Date: Jan 2002
Location: Nor California & Pac NW
Posts: 24,547
Garage
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..
Old 01-22-2010, 09:31 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #3 (permalink)
Registered
 
MBAtarga's Avatar
 
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 ???
Old 01-22-2010, 09:37 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #4 (permalink)
jyl jyl is online now
Registered
 
jyl's Avatar
 
Join Date: Jan 2002
Location: Nor California & Pac NW
Posts: 24,547
Garage
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”?
Old 01-22-2010, 09:48 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #5 (permalink)
Registered
 
MBAtarga's Avatar
 
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 ???
Old 01-22-2010, 09:51 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #6 (permalink)
 
jyl jyl is online now
Registered
 
jyl's Avatar
 
Join Date: Jan 2002
Location: Nor California & Pac NW
Posts: 24,547
Garage
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”?
Old 01-22-2010, 09:52 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #7 (permalink)
jyl jyl is online now
Registered
 
jyl's Avatar
 
Join Date: Jan 2002
Location: Nor California & Pac NW
Posts: 24,547
Garage
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”?
Old 01-22-2010, 01:24 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #8 (permalink)
Reply


 


All times are GMT -8. The time now is 08:58 PM.


 
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website -    DMCA Registered Agent Contact Page
 

DTO Garage Plus vBulletin Plugins by Drive Thru Online, Inc.