PC Review


Reply
Thread Tools Rate Thread

Create macro to convert rows attributes to column headers and vv

 
 
T.Vidak
Guest
Posts: n/a
 
      2nd Jul 2008
Hi,
I would like to build a macro to convert a table from rows to columns. The
initial spreadsheet is set up so that each row represent one piece of
information for the same ID. For each ID there are 5 rows

A B C
ID1 Name Smith
ID1 Address 22 Smith rd.
ID1 Date of Birth 1987/12/07
ID1 Country of Birth Canada
ID1 Nationality Canadian
ID2 Name Brown
ID2 Address xxBrown st.
ID2 Date of Birth 1965/01/12
ID2 Country of Birth USA
ID2 Nationality Canadian

The new worksheet should display the information by ID while the attributes
listed in column B should be Used as Column Headers (i.e. Titles)
ID Name Address Date of Birth Country of Birth
Nationality
ID1 Smith XX Smith rd 1987/12/07 Canada
Canadian
ID2 Brown XX Brown rd 1965/01/12 USA
Canadian


Thanks for your help

 
Reply With Quote
 
 
 
 
Rob Giordano \(Crash\)
Guest
Posts: n/a
 
      2nd Jul 2008
Should post this question in an Excel newsgroup, this one is for FrontPage



--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression






"T.Vidak" <(E-Mail Removed)> wrote in message
news:195AD5DD-E5A1-46F1-947C-(E-Mail Removed)...
> Hi,
> I would like to build a macro to convert a table from rows to columns. The
> initial spreadsheet is set up so that each row represent one piece of
> information for the same ID. For each ID there are 5 rows
>
> A B C
> ID1 Name Smith
> ID1 Address 22 Smith rd.
> ID1 Date of Birth 1987/12/07
> ID1 Country of Birth Canada
> ID1 Nationality Canadian
> ID2 Name Brown
> ID2 Address xxBrown st.
> ID2 Date of Birth 1965/01/12
> ID2 Country of Birth USA
> ID2 Nationality Canadian
>
> The new worksheet should display the information by ID while the
> attributes
> listed in column B should be Used as Column Headers (i.e. Titles)
> ID Name Address Date of Birth Country of Birth
> Nationality
> ID1 Smith XX Smith rd 1987/12/07 Canada
> Canadian
> ID2 Brown XX Brown rd 1965/01/12 USA
> Canadian
>
>
> Thanks for your help
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert columns to rows: create duplicate rows based on column val =?Utf-8?B?Q2FycmllUg==?= Microsoft Access 3 30th Aug 2006 07:07 PM
create macro - delete all rows with zero in column L =?Utf-8?B?Sm9obm55?= Microsoft Excel Programming 2 15th Jun 2006 10:09 AM
Rows into column headers =?Utf-8?B?SEI=?= Microsoft Access Reports 1 25th Jan 2005 09:05 PM
Convert a Column List Into a Row of Headers Frosty Microsoft Excel Worksheet Functions 1 15th Dec 2003 10:14 PM
Please help convert row labels to column headers! P Martin Microsoft Excel Worksheet Functions 1 6th Aug 2003 06:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:28 AM.