Hi Gurus,
I'm new to this community/forum and I am hoping you can help me with the most easiest and efficient way (Formula or VB code) to get an excel spreadsheet to Concatenate data from mutiple cells only if those individual contain certain values as shown in the example table below. Example explained.
Concatenate all comments from A - F into column H only if the statuses = Bad or OK and ignore if the statuses = Good. These controlling values with be in text form as intimated above. Also, I would like each of the coment pairs to be listed on each row/line via &CHAR(10)&.
You urgent help is much appreciated.
Thanks in advance
Skoolz
[TABLE="width: 600"]
<TBODY>[TR]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[/TR]
[TR]
[TD]Reason
[/TD]
[TD]Status
[/TD]
[TD]Reason
[/TD]
[TD]Status
[/TD]
[TD]Reason
[/TD]
[TD]Status
[/TD]
[TD][/TD]
[TD]Total
[/TD]
[/TR]
[TR]
[TD]No issues
[/TD]
[TD]Good
[/TD]
[TD]Major issues
[/TD]
[TD]Bad
[/TD]
[TD]Minor issues
[/TD]
[TD]OK
[/TD]
[TD][/TD]
[TD]Bad - Major issues
OK - Minor issues
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Good
[/TD]
[TD][/TD]
[TD]Good
[/TD]
[TD][/TD]
[TD]Good
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Minor issues
[/TD]
[TD]OK
[/TD]
[TD][/TD]
[TD]Good
[/TD]
[TD][/TD]
[TD]Good
[/TD]
[TD][/TD]
[TD]OK - Minor issues
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
I'm new to this community/forum and I am hoping you can help me with the most easiest and efficient way (Formula or VB code) to get an excel spreadsheet to Concatenate data from mutiple cells only if those individual contain certain values as shown in the example table below. Example explained.
Concatenate all comments from A - F into column H only if the statuses = Bad or OK and ignore if the statuses = Good. These controlling values with be in text form as intimated above. Also, I would like each of the coment pairs to be listed on each row/line via &CHAR(10)&.
You urgent help is much appreciated.
Thanks in advance
Skoolz
[TABLE="width: 600"]
<TBODY>[TR]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[/TR]
[TR]
[TD]Reason
[/TD]
[TD]Status
[/TD]
[TD]Reason
[/TD]
[TD]Status
[/TD]
[TD]Reason
[/TD]
[TD]Status
[/TD]
[TD][/TD]
[TD]Total
[/TD]
[/TR]
[TR]
[TD]No issues
[/TD]
[TD]Good
[/TD]
[TD]Major issues
[/TD]
[TD]Bad
[/TD]
[TD]Minor issues
[/TD]
[TD]OK
[/TD]
[TD][/TD]
[TD]Bad - Major issues
OK - Minor issues
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Good
[/TD]
[TD][/TD]
[TD]Good
[/TD]
[TD][/TD]
[TD]Good
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Minor issues
[/TD]
[TD]OK
[/TD]
[TD][/TD]
[TD]Good
[/TD]
[TD][/TD]
[TD]Good
[/TD]
[TD][/TD]
[TD]OK - Minor issues
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
Last edited: