Input:C1 Mary went down the and hurt her head D1 hill
Desired Output: Mary went down the hill and hurt her head
Below is the best what I can describe the logic as:
(If C1 contains "keyword") (Separator " ") concatenate [D1] as "[C1...Keyword][Separator][D1] [Rest of C1]"
Below is the same description with my input and output
If C1 contains "the" Separator " " Concatenate "hill" as "Mary went down the hill and hurt her head"
In the above case the keyword is "the"
The Separator denotes what is required to precede D1 (in this case space is inserted before hill)
If the keyword is not found a result of #N/A or #VALUE is good.
*Ideally*
If the keyword is nothing "" concatenate at the start of the cell and the separator places itself after the keyword not before
A part of the formula would involve stating which instance of keyword you are referring to [If C1 contains more than one instance of "the"]
Desired Output: Mary went down the hill and hurt her head
Below is the best what I can describe the logic as:
(If C1 contains "keyword") (Separator " ") concatenate [D1] as "[C1...Keyword][Separator][D1] [Rest of C1]"
Below is the same description with my input and output
If C1 contains "the" Separator " " Concatenate "hill" as "Mary went down the hill and hurt her head"
In the above case the keyword is "the"
The Separator denotes what is required to precede D1 (in this case space is inserted before hill)
If the keyword is not found a result of #N/A or #VALUE is good.
*Ideally*
If the keyword is nothing "" concatenate at the start of the cell and the separator places itself after the keyword not before
A part of the formula would involve stating which instance of keyword you are referring to [If C1 contains more than one instance of "the"]