Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default dynamic rows: cell value concatenation

In sheet1 x denotes rows which is dynamic and starts from 6 . so we have
D6,D7,D8... etc E6,E7.. etc
under D6 i have ABC and under E6 i have XYZ .
i have to concatenate the text in D6 with text in E6 (result shud be like
ABC_XYZ) and put it into a column B3 of sheet2 in same work book
here the rows in sheet 1 are are dynamic. so whenever an entry happens in
sheet 1 , the text in the two columns should be concatenated and put into
sheet 2 column.
so wat VBA code do i write to concatenate and copy into sheet2
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default dynamic rows: cell value concatenation

Deepika

I don't write VB so can't tell you what the code would be, so here is a
rough and ready way of doing it (and it will depend upon what you are using
Sheet 2 for as to whether this will be useful or not). In cell B3 of Sheet 2
I would type the following formula:
=IF(ISBLANK(Sheet1!D6),IF(ISBLANK(Sheet1!E6),"",Sh eet1!D6&"_"&Sheet1!E6),Sheet1!D6&"_"&Sheet1!E6)
I would then copy that formula down the column for as many rows as you think
you might get data in Sheet 1.
What the formula does is to insert a blank value in the result cell in Sheet
2 if BOTH cells D6 and E6 are empty in Sheet 1. If either of them has a
value then it will populate the result cell in Sheet 2 with the result of
cells D6 and E6 concatenated with am underscore between the cell values.
And, of course, copying it down the column will only show data if
corresponding rows in Sheet 1 are populated. Quick and dirty and no VB
code!!!
--
Binary Bandit
Wreaking havoc in an
already chaotic world!


"deepika :excel help" wrote:

In sheet1 x denotes rows which is dynamic and starts from 6 . so we have
D6,D7,D8... etc E6,E7.. etc
under D6 i have ABC and under E6 i have XYZ .
i have to concatenate the text in D6 with text in E6 (result shud be like
ABC_XYZ) and put it into a column B3 of sheet2 in same work book
here the rows in sheet 1 are are dynamic. so whenever an entry happens in
sheet 1 , the text in the two columns should be concatenated and put into
sheet 2 column.
so wat VBA code do i write to concatenate and copy into sheet2

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
formula to apply concatenation to successive rows of data Devo Excel Worksheet Functions 2 July 24th 06 05:42 PM
NUMBER OF ROWS IN A DYNAMIC RANGE Larry Excel Worksheet Functions 0 July 14th 06 09:19 PM
Help with copying dynamic column selected based on remote cell value and dynamic formula fill ers Charts and Charting in Excel 0 March 1st 06 01:05 AM
How do I Concatenate these Dynamic Rows AwkSed2Excel Excel Worksheet Functions 7 June 7th 05 03:30 AM
Dynamic number of ROWS Gerrym Excel Worksheet Functions 2 November 16th 04 04:03 PM


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

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

About Us

"It's about Microsoft Excel"