Hi, I have multiple values along the Column E. Some of them are "ALARM". Each of the "ALARM" values have their own date and time at the Column B and C respectively but at the row before the "ALARM" values. I inserted sample at the table below:
<tbody>
</tbody>
i need macro that can copy the date to Column G while time to Column H, same row with "ALARM" values. The outcome should be like this:
<tbody>
</tbody>
A | B | C | D | E | F | G | H | I |
1 | ||||||||
2 | ||||||||
3 | 24/05/2018 | 12:17:43 | ||||||
4 | ALARM | |||||||
5 | ||||||||
6 | ||||||||
7 | 24/05/2018 | 12:18:55 | ||||||
8 | ALARM | |||||||
9 | ||||||||
10 | ||||||||
11 | ||||||||
12 | 24/05/2018 | 12:20:22 | ||||||
13 | ALARM | |||||||
14 | ||||||||
15 |
<tbody>
</tbody>
i need macro that can copy the date to Column G while time to Column H, same row with "ALARM" values. The outcome should be like this:
A | B | C | D | E | F | G | H | I |
1 | ||||||||
2 | ||||||||
3 | 24/05/2018 | 12:17:43 | ||||||
4 | ALARM | 24/05/2018 | 12:17:43 | |||||
5 | ||||||||
6 | ||||||||
7 | 24/05/2018 | 12:18:55 | ||||||
8 | ALARM | 24/05/2018 | 12:18:55 | |||||
9 | ||||||||
10 | ||||||||
11 | ||||||||
12 | 24/05/2018 | 12:20:22 | ||||||
13 | ALARM | 24/05/2018 | 12:20:22 | |||||
14 |
<tbody>
</tbody>