Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Rearrange entries

I have a spreadsheet with 5 columns of data. The problem I am having that
column E contain multiple values in a single row seperated by a comma.

01/09,03/10,22/10

How can I extract the data so I have one entry per value? Basically, copy
the values in the first 4 columns and have the 1st value from column E,
insert a new line copy the values in the first 4 columns and have the 2nd
value from column E, copy the values in the first 4 columns and have the 3rd
value from column E, and so on based on the number of values contained in
column E.

Thank you,

QB
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 257
Default Rearrange entries

To rephrase, just to be sure I understand, you have a number of rows like this:

A B C D E
Bob 45 Jan True Orange, Red
Jan 92 Oct True Yellow, Blue, Orange
Rick 12 May False Black

You want the macro to change it to this:

A B C D E
Bob 45 Jan True Orange
Bob 45 Jan True Red
Jan 92 Oct True Yellow
Jan 92 Oct True Blue
Jan 92 Oct True Orange
Rick 12 May False Black

....I see now you have strings representing dates in column E, not colors as
in my random example, but except for for that the above is the right idea,
correct?

If so, I take it you've started on writing the program and are having
trouble getting past some particular difficulty, right? What have you done
so far, and what problem are you having?

Alternatively, maybe you've never written a VBA program before and you're
not sure how to start. That's no crime, but in that case you don't need a
hint to get you past some particular problem, you need someone to do a little
hand-holding to get you started. If the latter, feel free to say so - I
don't mind helping - but you may prefer to contact me via email for a sort of
tutorial.

--- "Question Boy" wrote:
I have a spreadsheet with 5 columns of data. The problem I am having that
column E contain multiple values in a single row seperated by a comma.

01/09,03/10,22/10

How can I extract the data so I have one entry per value? Basically, copy
the values in the first 4 columns and have the 1st value from column E,
insert a new line copy the values in the first 4 columns and have the 2nd
value from column E, copy the values in the first 4 columns and have the 3rd
value from column E, and so on based on the number of values contained in
column E.

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
rearrange date tuanvcb Excel Discussion (Misc queries) 1 February 13th 08 05:08 PM
Rearrange columns using VBA ktpack[_5_] Excel Programming 7 July 7th 06 08:57 PM
rearrange text JJ Excel Worksheet Functions 1 May 3rd 06 06:35 PM
rearrange data chartasap Excel Discussion (Misc queries) 4 May 1st 06 04:44 PM
Rearrange a formula Ali Baba Charts and Charting in Excel 3 September 5th 05 02:50 PM


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