Hello
Using Excel 2003 I want to create a function (there's more I want to do with this so that's all I need in the first instance)
I have some data on a worksheet that looks like this:
000000999xxx
1 789000abc000001000
1 765000def000000050
1 765000klmn000002050
9990003100
There's always a start (000..) and end (999..) row
These are all single column entries i.e. they occur in Row A
There can be any number of rows between the start and end row
Row 1 is a start reference
Rows that start with 1 are data rows (the text in the middle is a customer id
At the end of each rows the last 6 digits make up a number of miles e.g. 1 789000abc000001000 is 1000 miles
The sum total of this should add up to the last six digits on the last row i.e. 9990003100
This is 1000 + 50 + 2050
I am looking to write a function (vb) that checks these 2 figures are equal as I want to run this repeatedly on multiple files on a monthly basis
In the first instance, how would I create a function to sum up miles from the middle rows
Thanks
Damian
Using Excel 2003 I want to create a function (there's more I want to do with this so that's all I need in the first instance)
I have some data on a worksheet that looks like this:
000000999xxx
1 789000abc000001000
1 765000def000000050
1 765000klmn000002050
9990003100
There's always a start (000..) and end (999..) row
These are all single column entries i.e. they occur in Row A
There can be any number of rows between the start and end row
Row 1 is a start reference
Rows that start with 1 are data rows (the text in the middle is a customer id
At the end of each rows the last 6 digits make up a number of miles e.g. 1 789000abc000001000 is 1000 miles
The sum total of this should add up to the last six digits on the last row i.e. 9990003100
This is 1000 + 50 + 2050
I am looking to write a function (vb) that checks these 2 figures are equal as I want to run this repeatedly on multiple files on a monthly basis
In the first instance, how would I create a function to sum up miles from the middle rows
Thanks
Damian