I have multiple tables of data in which, in one column, I have information about the value of various contracts. For each contract, the information contained in each cell of that column is presented as follows:
"The value of the contract is $XX,XXX.XX."
Sometimes, there will be additional text after the dollar value, as follows:
"The value of the contract is $XX,XXX.XX. There is an option to modify the duration of the contract"
I need to program a sub that allows me to extract the dollar value within that string of text and only keep that information (and none of the text coming before and after).
The difficulty I'm facing here is that everything is subject to change. The dollar value is never the same and the text before or after it also changes.
So far I've been able to successfully keep everything after the $ sign, using the SPLIT function and $ as delimiter. However, I keep having problems removing whatever text may follow the dollar value.
Any idea on how I could proceed?
Thank you for your help!

