Mahir Yagimli
Member
Hi Everyone,
This question I have already posted to vijay per e-mail. So I'd like to mention that this is a cross post.
Here is a tough one at least for me.
In my business we got a list of different stones with m3 and tons. Now many times we have to check which stones can solely be loaded into one container and which one we have to add together.
There are two conditions:
The added up length of the stone shall not exceed 5,80 m.
the added up weight of the stone shall not exceed 26,5 tons.
Once I have found the stones, which have an added value of <=26,5 tons, I put them together in a line. Ofcourse, only if the added length does not exceed 5,80 m. On the very right side I merge the amount of empty cells to write the container number(a serial number).
Now I thought is it possible to do this with a macro?
I'd be helpful for any tips and hints.
What I did, is that I used first conditional formatting to order the sizes of stones and then filter them according to their formation. Helps me to get an overview, but it's not a solution yet.
Later I tried to copy the tons columns and paste it right beside it. Then I sorted the whole table from the smallest value at tons to the largest and with the copy cells I sorted solely from the largest to the the smallest value. Then I added the tons values in a third column of tons and filtered it conditionally with only <=26,5 . The weakness of this method is I have to put cut and paste the rows together and also it is not an optimal solution.
The goal is to use the space in the container as good as possible.
For your referrence I put one table into the attachment.
Thanks to all that I have bothered with this question.
Greetings from turkey.
Mahir
This question I have already posted to vijay per e-mail. So I'd like to mention that this is a cross post.
Here is a tough one at least for me.
In my business we got a list of different stones with m3 and tons. Now many times we have to check which stones can solely be loaded into one container and which one we have to add together.
There are two conditions:
The added up length of the stone shall not exceed 5,80 m.
the added up weight of the stone shall not exceed 26,5 tons.
Once I have found the stones, which have an added value of <=26,5 tons, I put them together in a line. Ofcourse, only if the added length does not exceed 5,80 m. On the very right side I merge the amount of empty cells to write the container number(a serial number).
Now I thought is it possible to do this with a macro?
I'd be helpful for any tips and hints.
What I did, is that I used first conditional formatting to order the sizes of stones and then filter them according to their formation. Helps me to get an overview, but it's not a solution yet.
Later I tried to copy the tons columns and paste it right beside it. Then I sorted the whole table from the smallest value at tons to the largest and with the copy cells I sorted solely from the largest to the the smallest value. Then I added the tons values in a third column of tons and filtered it conditionally with only <=26,5 . The weakness of this method is I have to put cut and paste the rows together and also it is not an optimal solution.
The goal is to use the space in the container as good as possible.
For your referrence I put one table into the attachment.
Thanks to all that I have bothered with this question.
Greetings from turkey.
Mahir