dreamscapeuk
Programmer
Hi,
New to VBScripting and hope someone can help. I have 2 text files from different sources and the idea is to automate the validation for them. Basically I need to read both files line by line and match the values for each account. Sounds simple but there's a twist and that's where I am stuck on. As the data is pulled on a server without office I can't simply use VBA to clean, sort and tie them up. It needs to be done without installing anything on the server.
The format of the files is not perfect i.e accounts are not always in the same order and values are in different places. Here's what I mean:
File 1 e.g
Account QTR YTD
10000 20,000 50,000.79
20000 57.00 250.99
30000 0 750.00
40000 1,500.00 2,500.00
File 2 e.g
Account QTR YTD
10000 Revenue 20,000.00 50,000.79
20000 Opex 5,700.00 27,250.99
40000 Other Account 1,500.00 2,500.00
30000 COGS 0 30,000.00
As you can see there are several issues here. Values are different, accounts not necesarily in the right order and the formatting doesn't seem to allow for any logical steps. I'm sure it's possible but am totally new to VBScripting so please help!
New to VBScripting and hope someone can help. I have 2 text files from different sources and the idea is to automate the validation for them. Basically I need to read both files line by line and match the values for each account. Sounds simple but there's a twist and that's where I am stuck on. As the data is pulled on a server without office I can't simply use VBA to clean, sort and tie them up. It needs to be done without installing anything on the server.
The format of the files is not perfect i.e accounts are not always in the same order and values are in different places. Here's what I mean:
File 1 e.g
Account QTR YTD
10000 20,000 50,000.79
20000 57.00 250.99
30000 0 750.00
40000 1,500.00 2,500.00
File 2 e.g
Account QTR YTD
10000 Revenue 20,000.00 50,000.79
20000 Opex 5,700.00 27,250.99
40000 Other Account 1,500.00 2,500.00
30000 COGS 0 30,000.00
As you can see there are several issues here. Values are different, accounts not necesarily in the right order and the formatting doesn't seem to allow for any logical steps. I'm sure it's possible but am totally new to VBScripting so please help!