Hey Guys
Hope you can help
Is there a way to search within a text statement for part of the string that contains a number or specifically, in this case, a value?
We have a system that has a comments section and in this section, the user posts a comment (manually however the date is auto-created) that basically details payment approval, invoice reference with its quantity and value. This comments is then pulled from our system into an Excel worksheet against the relevant record.
My only issue is that the statement isn’t always consistent in terms of the formatting and spacing between each section, and although going forward, I have managed to standardise the way in which this has been posted, historically I need to extract certain data from these posts to assist in automating a linked process.
Please see some examples below taken from our system that shows the inconsistency in posting:-
09/06/2016 – Approved for payment invoice number YC1564
Pieces : 5416 Value : $57146,54
10/10/2016 – Approved for payment invoice ref 1657/SS13
Pieces : 10142 Value : £4213.06
09/01/2017 – Approved for payment Invoice no. 11312/JCB
Pieces : 500 Value : 324.01 EUR
What I need is to extract the figure entered after the Value label (the currency etc is not an issue) – is this possible via a formula or VBA considering the format is not always the same? For example, for the first comment above, the result would be 57146.54.
If the whole comment is held in Cell A1 for example, what could I put into Cell P1 to extract this data? I have attached a really basic file to show how the comments is situated within the worksheet (albeit in a different location)
Your suggestions, as always, would be extremely welcome
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
-Mike Kapnisakis, Warner Bros
With your subscription - you'll gain access to our exclusive IT community of thousands of IT pros. You'll also be able to connect with highly specified Experts to get personalized solutions to your troubleshooting & research questions. It’s like crowd-sourced consulting.
We can't always guarantee that the perfect solution to your specific problem will be waiting for you. If you ask your own question - our Certified Experts will team up with you to help you get the answers you need.
Our certified Experts are CTOs, CISOs, and Technical Architects who answer questions, write articles, and produce videos on Experts Exchange. 99% of them have full time tech jobs - they volunteer their time to help other people in the technology industry learn and succeed.
We can't guarantee quick solutions - Experts Exchange isn't a help desk. We're a community of IT professionals committed to sharing knowledge. Our experts volunteer their time to help other people in the technology industry learn and succeed.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.