#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Cell Formatting

hi, i hv some data points in the first 5 columns of a sheet. i concatenated
them to the corresponding cell of the 6th column. now the data in every
column has to be in a separate line in the cells of the 6th column. i used
alt+enter for the first cell and tried using a brush to format the other
cells too but it doesnt work. can u plz help as i wud not b able to format
each cell one by one since i have 40000 rows of data....
thanks...
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Cell Formatting

Think you should be able to (re)do it quickly like this,

Assume source data to be concatenated is in cols A to E, from row2 down, and
the concat result is to display in col F

Place something like this** in F2:
=A2&CHAR(10)&B2&CHAR(10)&C2&CHAR(10)&D2&CHAR(10)&E 2

Format F2 to wrap text, via Format Cells Alignment tab Check "Wrap
text" OK. Copy F2 down all the way.

The CHAR(10) is the wrap character (== pressing Alt+ENTER)

**adapt/extend the concat formula to suit, depending on whether you need
commas, space-commas, etc as separators

If A2:E2 contains the numbers say: 1,2,3,4,5
then F2 will appear as:

1
2
3
4
5
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Malik" wrote:
hi, i hv some data points in the first 5 columns of a sheet. i concatenated
them to the corresponding cell of the 6th column. now the data in every
column has to be in a separate line in the cells of the 6th column. i used
alt+enter for the first cell and tried using a brush to format the other
cells too but it doesnt work. can u plz help as i wud not b able to format
each cell one by one since i have 40000 rows of data....
thanks...

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Cell Formatting

Thanks so much for ur response...very helpful indeed

"Max" wrote:

Think you should be able to (re)do it quickly like this,

Assume source data to be concatenated is in cols A to E, from row2 down, and
the concat result is to display in col F

Place something like this** in F2:
=A2&CHAR(10)&B2&CHAR(10)&C2&CHAR(10)&D2&CHAR(10)&E 2

Format F2 to wrap text, via Format Cells Alignment tab Check "Wrap
text" OK. Copy F2 down all the way.

The CHAR(10) is the wrap character (== pressing Alt+ENTER)

**adapt/extend the concat formula to suit, depending on whether you need
commas, space-commas, etc as separators

If A2:E2 contains the numbers say: 1,2,3,4,5
then F2 will appear as:

1
2
3
4
5
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Malik" wrote:
hi, i hv some data points in the first 5 columns of a sheet. i concatenated
them to the corresponding cell of the 6th column. now the data in every
column has to be in a separate line in the cells of the 6th column. i used
alt+enter for the first cell and tried using a brush to format the other
cells too but it doesnt work. can u plz help as i wud not b able to format
each cell one by one since i have 40000 rows of data....
thanks...

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Cell Formatting

Welcome, Malik.

From where you're reading these responses, could you kindly click the "Yes"
button to the question: Was this post helpful to you? <g
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Malik" wrote:
Thanks so much for ur response...very helpful indeed


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
Conditional Formatting question (if cell = 0, wrap cell in quotes) Mo2 New Users to Excel 6 May 11th 07 11:06 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
expanding custom formatting without removing existing cell formatting? Keith Excel Worksheet Functions 3 December 27th 06 01:54 PM
Conditional cell background formatting, based on cell content nosivad Excel Discussion (Misc queries) 5 February 11th 06 11:12 PM


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

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"