Re: How would i extract certain information from a spreadsheet ?
the text patterns vary ... heres the situation:
I get differing invoices from different clients, they are always in the same format (from each relevant client).
What i need to do is extract specific info like:
- Invoice #
- Description of goods
- Country of origin
etc
So its 99% AplhaNumeric extraction.
I would ideally like to keep it all in excel, as this will allow for further use and development with others in the office (that are not software literate) ...however Excel will alllow a bit of futreproofing for the masses
Re: How would i extract certain information from a spreadsheet ?
Well to parse things like an Invoice # and other stuff its best if its in a constant position/cell. If its not then we will need to write something to search for some identifier that will tell us where the starting point is.
Can you make a mockup of how the sheets look?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Re: How would i extract certain information from a spreadsheet ?
because i know exactly what i need from each different supplier and i know that the search criteris (alphanumeric string) never changes for each...what i need is some form of recursive statement that 'scans' a document (say pasted into a spreadhseet) and extract info based upon a 'found' item and then extract based upon each 'find'.
By using variables in the recursive search i could use the one generic search function to accomodate every invoice by passing in the specific details of the relevant supplier etc ...
Re: How would i extract certain information from a spreadsheet ?
Yes, this is what I am after. Finding the identifying maker that signifies where (what cell) to get the info from.
There is a .Find method of the range object but is the "Invoice #" always the same in all and is the needed data in the next cell below or to the right? This is why a small textual representation of what we are looking at will be helpful.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Re: How would i extract certain information from a spreadsheet ?
"Sales Invoice No. :"
"ETD :"
"ETA :"
etc. are the identifiers. We will need to perform a search using each one as the rows may differ on the number of rows inbetween each identifier.
Is the colon ":" actual data or is it the representation of a vertical line or cell limit?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Re: How would i extract certain information from a spreadsheet ?
Something like this will find the "Invoice No." and read the cell next to it and set sheet2 cell A1 with its value. This is the technique you will need to use for each of your search items needed.