As you can see in this example there is a set of data contained in A1:AE32. With another set starting at A33-AE64. In this example there are only two but in the real version there could be 30 or 50…
But I can tell you that there will NEVER be an empty cell between them so if you got A65 (for example) that’s the end of the data.
I am trying to create a macro that will do the following:
Start in AJ2 then start looking in Col B for that code (in this case its 5128).
IF you find the code take the number two to the right (in this case the first one would be 1772), next would be 1778, next would be 1896, next would be (row 50) at 354, then 1772, then 1813.
You would then need to search AGAIN in col E, then H, then K, then N, then Q, then T, then W, then Z, then finally AC…….. Then ADD up all the numbers and put it in this case……AL2. The total is: 9935.
Then repeat this process for AJ3 and so on. Again AJ will be a list of say 30 or 40… but again if the maco encounters an empty cell…. Its done with the search.
Thank you very much for your assistance with this.