473,671 Members | 2,155 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 1819
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
2798
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
6398
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
4714
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 top row, and the 2nd header row would come from the 2nd datatable? In this case, i guess i would have to add a row manually above the header row (2nd dataset) which is the set of 1st data? if someone has ideas, code explaining it would be very...
4
5512
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 to selection between 0 and 10 records to create transactions. Because I have used the CheckedListBox, this seemed like a very logical way to accomplish the manual selection .... UNTIL I wanted to have multiple columns of data in the CLB. I...
68
6799
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
14987
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 code I have (I am using Python): def generate (rows, cols): # This just prints the coordinates and the number that goes in it, It also prints the matrix in a square import random m = {} for r in range(rows): for c in...
0
1650
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 exicute. how can i write that code. pls send me code.
0
2330
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 about the column name. I have the code: cnExcel.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strTableName & ";Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"";"
8
5095
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 indexed). dbo.maintable(ProfileID int pk) dbo.fts_table(ProfileID int pk fk, col1 xml, col2 xml, col3 xml) I want to perform a query that will return any rows that contain ‘x’ and ‘y’ in any columns. I.e. ‘x’ could be in col1 and ‘y’ could be in
0
8476
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8393
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8820
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7433
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6223
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5695
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1809
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.