Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Grouping/Transposing CSV File?

Hi All, I've got a CSV file with two fields, product code and group. I
can get it into Excel just fine, what I want to do is convert the
groups into columns. Like, I'd want the "GOLF" column to have those 4
product codes beneath it.



002-0001-GOTIPPER GOLF
002-0002-GOTIPMOT GOLF
002-QUIC-GOLFTIPS GOLF
003-QUIC-GOLFGAME GOLF
004-QUIC-CASINOGA BUSINESS
005-0001-HOMEMAIN BUSINESS
005-QUIC-HOMEMAIN BUSINESS
006-QUIC-ROADSAFE SAFETY
007-QUIC-INDUSAFE SAFETY
008-QUIC-OFFISAFE SAFETY
009-QUIC-INTERNET BUSINESS
010-QUIC-BORGIDEA BUSINESS

Can someone help me out? I'm quite new to Excel.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default Grouping/Transposing CSV File?

Here are some steps to accomplish this task, you could code these. Suppose
the data is in cells A2:B13 with titles in cells A1:B1.

1. Select the Products (Golf...) and their title. Choose the command Data,
Filter, Advanced Filter. Choose Copy to another locations and pick a blank
cell as the Copy to range. Check Unique records only and click OK.

2. Select the output without the title and copy them. Select a blank cell
and choose Edit, Paste Special, Transpose. Suppose the first one is now in
F8 then enter the formula =IF($B2=F$8,$A2,0) in cell F9. Copy it down as
many rows as you have data, then copy it to the right for each group.

3. Select all the formulas and copy them, choose Edit, Paste Special, Values.

3b. Press Ctrl H and enter 0 in the Find what and leave the Replace with
empty, check Find Entire cell only, OK.

4. Press F5 and choose Special, Blanks, OK.

5. Press Ctrl+- (Ctrl Minus) and choose Shift cells up.


--
Cheers,
Shane Devenshire
Microsoft Excel MVP

" wrote:

Hi All, I've got a CSV file with two fields, product code and group. I
can get it into Excel just fine, what I want to do is convert the
groups into columns. Like, I'd want the "GOLF" column to have those 4
product codes beneath it.



002-0001-GOTIPPER GOLF
002-0002-GOTIPMOT GOLF
002-QUIC-GOLFTIPS GOLF
003-QUIC-GOLFGAME GOLF
004-QUIC-CASINOGA BUSINESS
005-0001-HOMEMAIN BUSINESS
005-QUIC-HOMEMAIN BUSINESS
006-QUIC-ROADSAFE SAFETY
007-QUIC-INDUSAFE SAFETY
008-QUIC-OFFISAFE SAFETY
009-QUIC-INTERNET BUSINESS
010-QUIC-BORGIDEA BUSINESS

Can someone help me out? I'm quite new to Excel.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transposing Nanapat Excel Discussion (Misc queries) 2 April 2nd 08 11:38 PM
Transposing Deena Excel Worksheet Functions 2 October 27th 06 05:13 PM
transposing question... cherrynich Excel Worksheet Functions 2 April 24th 06 03:49 PM
TRANSPOSING GARY Excel Discussion (Misc queries) 1 March 17th 06 11:09 AM
Transposing cells GARY Excel Discussion (Misc queries) 0 March 17th 06 12:03 AM


All times are GMT +1. The time now is 10:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"