loops and conditional concatenation

sheri100

New Member
Joined
Mar 29, 2010
Messages
15
I posted a question here yesterday with no replies so I thought I would simplify the question and ask again. I really need some help with the following:

I start with Original Value, Start, End, and generate the New Value.

Original Value Start End New Value

A 7/1/2007 8/3/2008 A, B
B 7/1/2007 8/5/2008 A, B, C
C 10/1/2007 8/5/2008 B, C, D
D 8/3/2008 9/3/2008

New Value explanation:
A & B are concatenated because they have the same start date and they have not reached their end date.
A, B, C are concatenated because C's Start <> B's Start and they have not reached an End.
A is dropped because D's start is >= to A's End.

Original question found here:

http://www.mrexcel.com/forum/showthread.php?t=490431&highlight=sheri100

Thanks is advance for any help.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I thought I would post an screenshot of my data as I noticed my formatting didn't convey to my post.

newValues.png
 
Upvote 0

Forum statistics

Threads
1,215,919
Messages
6,127,705
Members
449,399
Latest member
VEVE4014

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top