Hi all!
As you can see I am very new to the message board and have been studying Excel and VBA very hard and hopefully one day I will be able to pay it forward and help people out here as well. While I get my skills up to the task I would love it if you could help me out with something that might be very simple for you but I have not been successful finding a solution after researching for at least a week.
This is my problem:
I have a varying number of columns containing strings of text. I need to concatenate the middle strings. The position where the joining starts varies based on the value of a cell on the same row. First and last strings are ignored.
Example: Columns D - H, row 2: Sir John Wick Warhurst Taylor
I need to ignore "Sir" and "John", concatenate "Wick Warhurst", ignore Taylor. After that I will have to copy John, Wick Warhurst and Taylor to 3 different columns on the same row.
The number of strings can be anything up to 10. The result of the concatenation will always be 3 separate strings no matter how many strings are in the middle.
Can anyone please help? I will certainly study any codes you can come up with to learn how you did it and improve my skills.
Thank you in advance, you all are the best!
As you can see I am very new to the message board and have been studying Excel and VBA very hard and hopefully one day I will be able to pay it forward and help people out here as well. While I get my skills up to the task I would love it if you could help me out with something that might be very simple for you but I have not been successful finding a solution after researching for at least a week.
This is my problem:
I have a varying number of columns containing strings of text. I need to concatenate the middle strings. The position where the joining starts varies based on the value of a cell on the same row. First and last strings are ignored.
Example: Columns D - H, row 2: Sir John Wick Warhurst Taylor
I need to ignore "Sir" and "John", concatenate "Wick Warhurst", ignore Taylor. After that I will have to copy John, Wick Warhurst and Taylor to 3 different columns on the same row.
The number of strings can be anything up to 10. The result of the concatenation will always be 3 separate strings no matter how many strings are in the middle.
Can anyone please help? I will certainly study any codes you can come up with to learn how you did it and improve my skills.
Thank you in advance, you all are the best!