Rk_Digital
New Member
- Joined
- Nov 15, 2019
- Messages
- 3
I'm in a worksheet and trying to extract the words after the 3rd and 4th hyphens when they're available in column A (see table below for representation).
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Digital - workbook - sheet[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Digital - workbook - app[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Digital - workbook - test[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Digital - workbook - sheet - max - version1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Digital - workbook - sheet - max - version2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Digital - workbook - sheet - max - version1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Digital - workbook - sheet - max - version2[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The first 3 rows only have 3 words with 2 hyphens - for these rows, I wouldn't want anything to extract into column B. I would want those cells to stay blank, but when the 4th row comes up, there are 5 words with 4 hyphens and I need the words (with the hyphen) that are listed after the 3rd hyphen to show up in column B.
I'm looking for a formula or VBA function/sub that I can continuously run down column B that will be able to extract the portion after the 3rd hyphen.
For example, if the formula ran correctly, the first 3 rows in column B would be blank and then next 4 would be as follows...
[TABLE="width: 472"]
<colgroup><col></colgroup><tbody>[TR]
[TD]max - version1[/TD]
[/TR]
[TR]
[TD]max - version2[/TD]
[/TR]
[TR]
[TD]max - version1[/TD]
[/TR]
[TR]
[TD]max - version2[/TD]
[/TR]
</tbody>[/TABLE]
Any help would be GREATLY appreciated!
Thank you very much!!
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Digital - workbook - sheet[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Digital - workbook - app[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Digital - workbook - test[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Digital - workbook - sheet - max - version1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Digital - workbook - sheet - max - version2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Digital - workbook - sheet - max - version1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Digital - workbook - sheet - max - version2[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The first 3 rows only have 3 words with 2 hyphens - for these rows, I wouldn't want anything to extract into column B. I would want those cells to stay blank, but when the 4th row comes up, there are 5 words with 4 hyphens and I need the words (with the hyphen) that are listed after the 3rd hyphen to show up in column B.
I'm looking for a formula or VBA function/sub that I can continuously run down column B that will be able to extract the portion after the 3rd hyphen.
For example, if the formula ran correctly, the first 3 rows in column B would be blank and then next 4 would be as follows...
[TABLE="width: 472"]
<colgroup><col></colgroup><tbody>[TR]
[TD]max - version1[/TD]
[/TR]
[TR]
[TD]max - version2[/TD]
[/TR]
[TR]
[TD]max - version1[/TD]
[/TR]
[TR]
[TD]max - version2[/TD]
[/TR]
</tbody>[/TABLE]
Any help would be GREATLY appreciated!
Thank you very much!!