IIII
New Member
- Joined
- Jan 26, 2021
- Messages
- 18
- Office Version
- 365
- Platform
- Windows
- Mobile
- Web
Hi,
I have this small section that I'm hoping to create a name-range from. In the sheet below, it is the bordered area with red text.
I've been scratching my head trying to use
- which gets me to the first cell in the table, in this case, B19, however, I'm not sure how to do the rest using lines like
as I'm not sure what to use as the guide to find the last row in this situation. Please note that the column lengths of the data above the bordered area are dynamic.
Also, with the bordered area below, is it possible to delete rows for anything that has a value of zero? - I do not mind if this doesn't get solved as the above query is my main problem. Thanks anyway.
Please advise if further information is required. Many thanks in advance for any help with this one. Cheers.
I have this small section that I'm hoping to create a name-range from. In the sheet below, it is the bordered area with red text.
I've been scratching my head trying to use
VBA Code:
Cells(Range("A1").End(xlDown).Row + 2, 2)
VBA Code:
Cells(Rows.Count, "A").End(xlUp).Row
Also, with the bordered area below, is it possible to delete rows for anything that has a value of zero? - I do not mind if this doesn't get solved as the above query is my main problem. Thanks anyway.
Please advise if further information is required. Many thanks in advance for any help with this one. Cheers.
Book1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Date | Shift | start time | Finish Time | Hours | Kms | Costs | ||
2 | Wed, 06 Apr 2022 | Lorem ipsum | 8:00 AM | 12:00 PM | 4 | 34 | 0.50 | ||
3 | Wed, 06 Apr 2022 | Lorem ipsum | 12:30 PM | 3:30 PM | 3 | 22 | 0.50 | ||
4 | Thu, 07 Apr 2022 | Lorem ipsum | 9:00 AM | 10:00 AM | 1 | 0 | 0.00 | ||
5 | Thu, 07 Apr 2022 | TEST SERVICES | 10:00 AM | 1:00 PM | 3 | 0 | 0.00 | ||
6 | Fri, 08 Apr 2022 | TEST SERVICES | 9:00 AM | 12:30 PM | 3.5 | 0 | 0.00 | ||
7 | Sat, 09 Apr 2022 | Lorem ipsum | 6:00 AM | 9:30 AM | 3.5 | 168 | 0.50 | ||
8 | Sat, 09 Apr 2022 | TEST SERVICES | 10:00 AM | 1:00 PM | 3 | 0 | 0.50 | ||
9 | Mon, 11 Apr 2022 | Lorem ipsum | 9:00 AM | 10:00 AM | 1 | 0 | 0.00 | ||
10 | Mon, 11 Apr 2022 | Lorem ipsum | 10:00 AM | 4:00 PM | 6 | 199 | 0.50 | ||
11 | Tue, 12 Apr 2022 | Lorem ipsum | 9:00 AM | 3:30 PM | 6.5 | 143 | 0.50 | ||
12 | Wed, 13 Apr 2022 | Lorem ipsum | 9:00 AM | 12:00 PM | 3 | 131 | 0.50 | ||
13 | Wed, 13 Apr 2022 | Lorem ipsum | 12:30 PM | 3:30 PM | 3 | 22 | 0.50 | ||
14 | Thu, 14 Apr 2022 | Lorem ipsum | 9:00 AM | 10:00 AM | 1 | 0 | 0.00 | ||
15 | Thu, 14 Apr 2022 | TEST SERVICES | 10:00 AM | 1:30 PM | 3.5 | 0 | 0.00 | ||
16 | Fri, 15 Apr 2022 | Lorem ipsum | 9:30 AM | 1:30 PM | 4 | 20 | 0.50 | ||
17 | Sat, 16 Apr 2022 | Lorem ipsum | 6:00 AM | 9:30 AM | 3.5 | 64 | 0.50 | ||
18 | |||||||||
19 | Weekday Hours | 39 | |||||||
20 | Weekday Hours | 3.5 | |||||||
21 | Weekday Hours | 8.5 | |||||||
22 | Weekday Hours | 1.5 | |||||||
23 | Weekday Hours | 0 | |||||||
24 | Weekday Hours | 0 | |||||||
25 | Weekday Hours | 0 | |||||||
26 | Weekday Hours | 0 | |||||||
27 | Weekday Hours | 803 | |||||||
28 | |||||||||
Michael Scarn |