VBA modification from earlier solution by Fabrice Lambert to make this comparison work

I had this question after viewing Challenge for  VBA Experts to compare the two strings, original and revised and return the differences.

Fabrice Lambert was so kind helping me with the code that almost works but leaves out some of the words.

I have attached the workbook that illustrates the problem, i am hoping that VBA experts could help me solve this problem.

Thank you.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

1. The solution you accepted did a word difference comparison.  That is very different from the phrase (substring) difference you seek.

2. The example you posted in your original question does allow "DOD" to be the correct value in column C4.

Maybe it is a good time for you to define your problem more accurately.
What do you want to do about punctuation and capitalization?
Ejgil HedegaardCommented:
Try attached.
There are 2 functions TextAdded and TextRemoved, where the input is the cells in columns A and B.
See columns I and J.
The functions are identical, except for the part for the result, added or removed, but I think it is better than using an array function for both in the same function.
The texts are split to words by space, so if a word is followed by comma or punctuation it is handled as part of the word.
The compare is case sensitive.

The functions use 2 words next to each other in Main text, and search Revised text for the same.
When found, look at the next word, and continue until no match.
Mark all words in the sentence as found, and continue with the next 2 not found words in Main text.

Then search for single word match.
Results are not matched words in Main or Revised text.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

FloraAuthor Commented:
Ejgil Hedegaard

Thanks a Million!  I was becoming hopeless fearing that it might not be possible to achieve what I was looking for.  you are very kind, you just made my day. it worked perfectly in all scenarios of my data
FloraAuthor Commented:
thank you aikimark
Did you test this thoroughly?
FloraAuthor Commented:
Yes, aikimark.
i tested it thoroughly. so far, i have not found any problem. it does the job.

Any three-word (or more) phrase differences in your tests?
FloraAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.