Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Help with combining cells

I have a macro that pulls data from a web table. The colums used are A-H.
When importing some of the text in colum F is spread to mutipal rows. What I
would like to do is go down column D till something is foound. If found,
search the next row down to see if it is blank. If blank then add the
contents from that row in column F to the one above then delete the row. Then
on to the next row and till the end.

Thanks
Bob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Help with combining cells

A couple of questions...

1. What if there are two or more blanks under the value found in Column D...
how is that to be handled?

2. For the blank cell in Column D... you want the contents of Column F in
that row "added" to the contents in Column F above it, right? What exactly
do you mean be "add" in this context... are you looking to concatenate the
values? If so, how... with a space, line feed, or something else between
them?

--
Rick (MVP - Excel)


"Bobbo" wrote in message
...
I have a macro that pulls data from a web table. The colums used are A-H.
When importing some of the text in colum F is spread to mutipal rows. What
I
would like to do is go down column D till something is foound. If found,
search the next row down to see if it is blank. If blank then add the
contents from that row in column F to the one above then delete the row.
Then
on to the next row and till the end.

Thanks
Bob


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Help with combining cells

1. just roll it up with the other
2. Sorry for the confusion. All of the data will be text so I would like it
appended to the cell above. During the import for some reason a field is
being split into multiple rows.


"Rick Rothstein" wrote:

A couple of questions...

1. What if there are two or more blanks under the value found in Column D...
how is that to be handled?

2. For the blank cell in Column D... you want the contents of Column F in
that row "added" to the contents in Column F above it, right? What exactly
do you mean be "add" in this context... are you looking to concatenate the
values? If so, how... with a space, line feed, or something else between
them?

--
Rick (MVP - Excel)


"Bobbo" wrote in message
...
I have a macro that pulls data from a web table. The colums used are A-H.
When importing some of the text in colum F is spread to mutipal rows. What
I
would like to do is go down column D till something is foound. If found,
search the next row down to see if it is blank. If blank then add the
contents from that row in column F to the one above then delete the row.
Then
on to the next row and till the end.

Thanks
Bob


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Help with combining cells

1. just roll it up with the other

Does "roll it up" mean concatenate? For example, if your first value with
twp blank cells following it is in Row 5 (meaning D5 has text in it D6 and
D7 are empty cells) and F5 contains the text "One" and F6 contains the text
"Two" and F7 contains the text "Three", do you want F5 to have the text
"OneTwoThree" in it after the worksheet is processed?

--
Rick (MVP - Excel)


"Bobbo" wrote in message
...
1. just roll it up with the other
2. Sorry for the confusion. All of the data will be text so I would like
it
appended to the cell above. During the import for some reason a field is
being split into multiple rows.


"Rick Rothstein" wrote:

A couple of questions...

1. What if there are two or more blanks under the value found in Column
D...
how is that to be handled?

2. For the blank cell in Column D... you want the contents of Column F in
that row "added" to the contents in Column F above it, right? What
exactly
do you mean be "add" in this context... are you looking to concatenate
the
values? If so, how... with a space, line feed, or something else between
them?

--
Rick (MVP - Excel)


"Bobbo" wrote in message
...
I have a macro that pulls data from a web table. The colums used are
A-H.
When importing some of the text in colum F is spread to mutipal rows.
What
I
would like to do is go down column D till something is foound. If
found,
search the next row down to see if it is blank. If blank then add the
contents from that row in column F to the one above then delete the
row.
Then
on to the next row and till the end.

Thanks
Bob


.


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
Combining Cells George Perrotta Excel Worksheet Functions 2 April 12th 10 07:10 PM
Combining cells caseysmydog Excel Programming 3 November 6th 08 05:20 PM
Need help with combining cells to one Coolquicc Excel Discussion (Misc queries) 3 September 10th 08 11:08 PM
Combining Two Cells. Sam Excel Programming 3 May 25th 07 04:48 AM
combining two cells Clement DeCastro Excel Programming 3 August 15th 04 03:26 PM


All times are GMT +1. The time now is 11:21 PM.

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"