Hey all,
I've been scratching my head for the past 3 days looking for an answer online, so far I've been unsuccessful...
My issue is the following: I have several small tables one after the other (separated by a graph each time) I need to loop through column N (first table header starts at N25), looking for entries that fall between "5:30 AM" and "11:00 PM". When found, I have to select the entire range of the values next to column N (in column O) and copy the ranges in a new sheet. It would be easier if the amounts of rows were the same but they fluctuate by 1 or 2 rows... example of a table below.
<tbody>
</tbody>
<tbody>
</tbody>
<tbody>
</tbody>
So, if I were to do it manually, which is how I'm doing it right now, I would do it like this:
The end result in sheet2 would look like this, more or less:
<tbody>
</tbody>
I've been slowly but surely automating my reporting but this one is out of my range of knowledge in VBA..
</graph></graph>
I've been scratching my head for the past 3 days looking for an answer online, so far I've been unsuccessful...
My issue is the following: I have several small tables one after the other (separated by a graph each time) I need to loop through column N (first table header starts at N25), looking for entries that fall between "5:30 AM" and "11:00 PM". When found, I have to select the entire range of the values next to column N (in column O) and copy the ranges in a new sheet. It would be easier if the amounts of rows were the same but they fluctuate by 1 or 2 rows... example of a table below.
time (col n) | amount (col o) |
5:00 AM | 1542 |
5:30 AM | 2345 |
... | ... |
11:00 PM | 4454 |
<tbody>
</tbody>
<graph here="">GRAPH HERE
</graph>
<graph here=""> </graph>
time (col n) | amount (col o) |
5:30 AM | 1541 |
... | ... |
11:00 PM | 4242 |
11:30 PM | 5356 |
<tbody>
</tbody>
<graph here="">GRAPH HERE
</graph>
<graph here=""> </graph>
time (col n) | amount (col o) |
4:30 AM | 7445 |
5:00 AM | 4521 |
... | ... |
11:30 AM | 4547 |
<tbody>
</tbody>
So, if I were to do it manually, which is how I'm doing it right now, I would do it like this:
- Select values (col O) that match the time between 5:30 AM and 11:00 PM
- Copy values & paste them in sheet2 (first range goes in sheet2!B1:B, second range sheet2!C1:C, and so on)
- Repeat until done, usually 30 times (since it's usually 1 table per day.)
The end result in sheet2 would look like this, more or less:
Time | 1st table | 2nd table | 3rd table |
5:30 AM | 1542 | 1541 | 7445 |
6:00 AM | 2425 | 3254 | 6242 |
... | ... | ... | ... |
11:30 AM | 4454 | 5356 | 4547 |
<tbody>
</tbody>
I've been slowly but surely automating my reporting but this one is out of my range of knowledge in VBA..
</graph></graph>