473,511 Members | 14,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

columns to rows conversion

8 New Member
I have excel sheet of 6 columns and what I want to do is keep my first column as it is and all the other 5 columns (different headers) should be converted into rows and value of first column must be repeated five times with rows as well.
Feb 5 '07 #1
5 1811
MMcCarthy
14,534 Recognized Expert Moderator MVP
I have excel sheet of 6 columns and what I want to do is keep my first column as it is and all the other 5 columns (different headers) should be converted into rows and value of first column must be repeated five times with rows as well.
You are looking to transpose the columns into rows. Try selecting the relevant columns and data, copy and go to a new sheet now go to edit - paste special and there is an option called transpose. Play around with this and see if it does what you want.

Mary
Feb 5 '07 #2
maxamis4
295 Recognized Expert Contributor
Mary,

Its different but you want to do is a cross tab query. That way you can paste your rows into the new table.


Let me know how i can help
Feb 5 '07 #3
MMcCarthy
14,534 Recognized Expert Moderator MVP
Mary,

Its different but you want to do is a cross tab query. That way you can paste your rows into the new table.


Let me know how i can help
Hi max

I just assumed we were talking about Excel only but you may be right. Will have to wait for the OP to get back.

Mary
Feb 5 '07 #4
hasnain
8 New Member
Hi max

I just assumed we were talking about Excel only but you may be right. Will have to wait for the OP to get back.

Mary
Thanks mmccarthy
I want solution in Access, I have tried crosstab query but unfortunately It didn't work. Can you explain that how I can use crosstab query for this?
Feb 6 '07 #5
MMcCarthy
14,534 Recognized Expert Moderator MVP
Thanks mmccarthy
I want solution in Access, I have tried crosstab query but unfortunately I didn't work. Can you explain that how I can use crosstab query for this?
I need more information.

1) What are the names of the 6 columns
2) Explain in english rather than by refering to columns what information you want to see in your results. I'm not sure a crosstab query is what you want as this is usually a way of representing an agregate value (sum, count, etc) of one colums under the headings of the values in another column. It doesn't sound like this is what you want.

Mary
Feb 6 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

16
2780
by: atse | last post by:
Hi, How can I know the number of columns of the .csv files? I want to import them to the database. Thanks. Atse
2
6375
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
4
4707
by: Mortar | last post by:
i need a datagrid with 2 header columns. The top one might have 1 column spanning 5 columns of the header row below it. what is the best way to do this? Could i have 2 datatables...1 filling the...
4
5506
by: Hexman | last post by:
In my application I retrieve about 100 rows from an Access DB to perform a daily process. A sql query statement selects, joins, and orders the dataset. Now, out of the dataset, the user may need...
68
6747
by: Martin Joergensen | last post by:
Hi, I have some files which has the following content: 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0
7
14965
by: lethek39 | last post by:
Hey I have been trying to figure out how to sum rows and columns in a matrix square. I also have been trying to get the program to list the numbers of the diagonal in the matrix. So far this is the...
0
1631
by: anureddy | last post by:
help me how to add datagridview columns to another table,using windowsapplications. and set the displaymember and value member datagridviewcomboboxcolumn. i used this below code but that not...
0
2319
by: Radu | last post by:
Hi. I'm trying to read the structure of some Excel 2000 file that the user is expected to upload. The file must be an excel file (solved) and it must contain a column named "PIN". That's all. Now...
8
5084
by: Sham | last post by:
I am trying to perform the following query on a table that has been indexed using Full Text Search. The table contains multiple columns than have been indexed. (Below, all xml columns are...
0
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7093
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.