Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Convert Multiple Rows into One Row

One record spreads over multiple rows. The purpose is to make them one
row and save as text file (in order to import into another program).
Because of column number limitation, I use copy-paste special -
transpose.

Now each column, not multiple rows, hold a record (for one customer).

What should I do to get the records saved as CSV file?

Does MS access help here? Is there a better approach?

Thank you, my boss is demanding an answer.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Convert Multiple Rows into One Row


concatenate would work in this instance


ie

=concatenate(a1,b1,c1 etc etc)


that way all would be in one cell, you can always add a commar too if
need be.

Then copy and paste the values and then save as a CSV file..


--
mr_ben
------------------------------------------------------------------------
mr_ben's Profile: http://www.excelforum.com/member.php...o&userid=37106
View this thread: http://www.excelforum.com/showthread...hreadid=568446

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Convert Multiple Rows into One Row

Thanks Ben for your prompt response. This is a very interesting
approach.

However, concatenate only handles upto 30 text items. In my case, the
maximum cells could be 490.

Is there another approach?

Does it work if I use several concatenate"

What is the maxmum number of character a cell can hold?

Thank you all.




mr_ben wrote:
concatenate would work in this instance


ie

=concatenate(a1,b1,c1 etc etc)


that way all would be in one cell, you can always add a commar too if
need be.

Then copy and paste the values and then save as a CSV file..


--
mr_ben
------------------------------------------------------------------------
mr_ben's Profile: http://www.excelforum.com/member.php...o&userid=37106
View this thread: http://www.excelforum.com/showthread...hreadid=568446


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Convert Multiple Rows into One Row


you can daisy chain formulas however you can only nest 7 formulas in one
big formula


As for cell length there is something about more than 1024 characters
(IIRC) being a problem.

unfortunately my VBA skills are sadly lacking so there could be a
better way...


--
mr_ben
------------------------------------------------------------------------
mr_ben's Profile: http://www.excelforum.com/member.php...o&userid=37106
View this thread: http://www.excelforum.com/showthread...hreadid=568446

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Convert Multiple Rows into One Row

Do you think if it will work:

I use "=CONCATENATE" in one cell and allow it to hold 25 cells. In next
cell, I put second "=CONCATENATE" to hold another 25 cells....

So with 20 "=CONCATENATE"s, I can cover all my data, say, from A1:T1.

Then the question will be

Can I save it as CVS file where the entire first row is one record?




mr_ben wrote:
you can daisy chain formulas however you can only nest 7 formulas in one
big formula


As for cell length there is something about more than 1024 characters
(IIRC) being a problem.

unfortunately my VBA skills are sadly lacking so there could be a
better way...


--
mr_ben
------------------------------------------------------------------------
mr_ben's Profile: http://www.excelforum.com/member.php...o&userid=37106
View this thread: http://www.excelforum.com/showthread...hreadid=568446




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Convert Multiple Rows into One Row


Who I Am Wrote:
Do you think if it will work:

I use "=CONCATENATE" in one cell and allow it to hold 25 cells. In
next
cell, I put second "=CONCATENATE" to hold another 25 cells....

So with 20 "=CONCATENATE"s, I can cover all my data, say, from A1:T1.

Then the question will be

Can I save it as CVS file where the entire first row is one record?


Yes and..

I would image so if you have commas in the text then for every comma
the text will be put in another cell.


--
mr_ben
------------------------------------------------------------------------
mr_ben's Profile: http://www.excelforum.com/member.php...o&userid=37106
View this thread: http://www.excelforum.com/showthread...hreadid=568446

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Convert Multiple Rows into One Row

I would image so if you have commas in the text then for every comma
the text will be put in another cell.


that would be incorrect based on what it sounds like is being proposed. .

if a1 and b1 contain

a1: a,b,c
b1: d,e,f

and you did Files=Save As and selected CSV, it would be saved as

"a,b,c","d,e,f"

If you brought it back into excel, it would be placed in A1 and B1.


---------------------------------
if you want to change rows to columns, select the single column multiple row
area (assume starting in A1), do edit=copy

select b1 and do Edit=Paste Special and select transpose.

Now delete column 1

then File =Save As, and select CSV for the type.

--
Regards,
Tom Ogilvy



"mr_ben" wrote in
message ...

Who I Am Wrote:
Do you think if it will work:

I use "=CONCATENATE" in one cell and allow it to hold 25 cells. In
next
cell, I put second "=CONCATENATE" to hold another 25 cells....

So with 20 "=CONCATENATE"s, I can cover all my data, say, from A1:T1.

Then the question will be

Can I save it as CVS file where the entire first row is one record?


Yes and..

I would image so if you have commas in the text then for every comma
the text will be put in another cell.


--
mr_ben
------------------------------------------------------------------------
mr_ben's Profile:
http://www.excelforum.com/member.php...o&userid=37106
View this thread: http://www.excelforum.com/showthread...hreadid=568446



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
Convert data from multiple columns/rows into one column - help! Jason[_11_] Excel Worksheet Functions 3 March 19th 08 07:50 PM
convert row to columns for multiple rows Heba Excel Worksheet Functions 1 July 4th 07 10:56 AM
Excel Convert Multiple Rows into Multiple Columns [email protected] Excel Worksheet Functions 1 June 28th 07 05:20 AM
How can I convert a data from multiple rows into 1 column? yudi_lks Excel Worksheet Functions 10 January 30th 05 03:47 AM
Convert multiple columns to rows Lois Lane Excel Worksheet Functions 8 January 10th 05 12:47 AM


All times are GMT +1. The time now is 04:11 AM.

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

About Us

"It's about Microsoft Excel"