LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Macro Help €“ Extracting multiple entries from cell

Column D consists of cells with one or more entries (alphanumeric), and
sometimes no entries. I need help in writing a macro that examines each cell
in column D, and if it contains only one entry, copies it to column H. If a
cell contains more than one entry (each separated by one or more spaces), the
macro would copy each entry into a separate cell in column H. If a cell in
column D is blank, the macro would skip it and move down to the next cell.
When the macro encounters two consecutive empty cells in column D, the macro
would stop (that's how you know you are at the end of the list). It is
important that all the entries copied to column H are contiguous (i.e., no
blank cells). Any help would be greatly appreciated.

Thanks,

Bob

 
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
Extracting unique entries Gaurav[_2_] Excel Worksheet Functions 6 November 14th 07 01:43 PM
MULTIPLE ENTRIES IN ONE CELL BOATS Excel Discussion (Misc queries) 0 October 10th 07 10:37 PM
Extracting Info from within a cell multiple times o1darcie1o Excel Worksheet Functions 1 January 29th 07 06:30 PM
Extracting multiple entries in a cell into their component pieces Bob Excel Worksheet Functions 15 June 21st 06 01:07 AM
Extracting from 1 cell and placing extractions in multiple cells lkw441 Excel Programming 1 July 17th 05 05:58 PM


All times are GMT +1. The time now is 02:12 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"