M
Mark
Hi,
I asked assistance, but I don't get sufficing solution.
Maybe, I inexactly describe problem. I don't know English
very well, and VBA either![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
My simplified problem look like this:
I have following table in first sheets:
Distance(km) Points
100 20,2
100 21,3
102 22,1
102 23,5
105 19,1
120 25,1
121 26,1
121 27,4
125 25,2
130 30,4
150 32,1
There are above is thousands records...
I'd like folowing only automatic result:
W = sum two of best points in range beetwen 100 and 125 km.
N = sum three of best points in range beetwen 126 and 140
km.
R = W + N [in points]
D = Total distance counted points [in km]
Necessary condition:
Total distance counted points must be minimum 600 km.
If fulfil necessary condition and R , D counted, then i'd
like do following table in another sheet (only VBA):
item Distance Points
1 (distance and points fulfil condition)
2 (distance and points fulfil condition)
3 (distance and points fulfil condition)
4 (distance and points fulfil condition)
5 (distance and points fulfil condition)
sum of total distance D = ...
sum of points R = ...
(3 rows empty)
item Distance Points
1 (distance and points fulfil condition)
2 (distance and points fulfil condition)
3 (distance and points fulfil condition)
4 (distance and points fulfil condition)
5 (distance and points fulfil condition)
sum of total distance D = ...
sum of points R = ...
etc....all case fulfil conditions
How could I do this only in VBA (without Solver)?
It's only simplified problem over, complex problem
probably was solved in Turbo Pascal.
I'd like VBA manage too.
Please help and give me complete solution in VBA.
Best Regards
Mark
I asked assistance, but I don't get sufficing solution.
Maybe, I inexactly describe problem. I don't know English
very well, and VBA either
My simplified problem look like this:
I have following table in first sheets:
Distance(km) Points
100 20,2
100 21,3
102 22,1
102 23,5
105 19,1
120 25,1
121 26,1
121 27,4
125 25,2
130 30,4
150 32,1
There are above is thousands records...
I'd like folowing only automatic result:
W = sum two of best points in range beetwen 100 and 125 km.
N = sum three of best points in range beetwen 126 and 140
km.
R = W + N [in points]
D = Total distance counted points [in km]
Necessary condition:
Total distance counted points must be minimum 600 km.
If fulfil necessary condition and R , D counted, then i'd
like do following table in another sheet (only VBA):
item Distance Points
1 (distance and points fulfil condition)
2 (distance and points fulfil condition)
3 (distance and points fulfil condition)
4 (distance and points fulfil condition)
5 (distance and points fulfil condition)
sum of total distance D = ...
sum of points R = ...
(3 rows empty)
item Distance Points
1 (distance and points fulfil condition)
2 (distance and points fulfil condition)
3 (distance and points fulfil condition)
4 (distance and points fulfil condition)
5 (distance and points fulfil condition)
sum of total distance D = ...
sum of points R = ...
etc....all case fulfil conditions
How could I do this only in VBA (without Solver)?
It's only simplified problem over, complex problem
probably was solved in Turbo Pascal.
I'd like VBA manage too.
Please help and give me complete solution in VBA.
Best Regards
Mark