JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,294
- Office Version
-
- 365
- Platform
-
- Windows
I would like to find code that will generate the data in col C using the text data in A & B.
<tbody>
</tbody>
I think it will have to be a UDF. What's the best way to convert the days (Sun, Mon, ...) into numbers (1, 2, ...)?
C/R | A | B | C |
3 | Beg | End | Hours |
4 | Fri 7:00 pm | Fri 7:00 pm | 0.00 |
5 | Fri 7:00 pm | Fri 9:00 pm | 2.00 |
6 | Fri 7:00 pm | Sat 7:00 am | 12.00 |
7 | Mon 3:15 pm | Mon 7:45 pm | 4.50 |
8 | Fri 7:00 pm | Sat 7:00 pm | 24.00 |
9 | Fri 7:00 pm | Sun 7:00 pm | 48.00 |
10 | Fri 7:00 pm | Mon 7:00 pm | 72.00 |
11 | Fri 7:00 pm | Tue 7:00 pm | 96.00 |
12 | Fri 7:00 pm | Wed 7:00 pm | 120.00 |
13 | Fri 7:00 pm | Thu 7:00 pm | 144.00 |
14 | Fri 7:00 pm | Fri 7:00 pm | 168.00 |
<tbody>
</tbody>
I think it will have to be a UDF. What's the best way to convert the days (Sun, Mon, ...) into numbers (1, 2, ...)?