BravoBravoAu
Board Regular
- Joined
- Nov 8, 2011
- Messages
- 64
- Office Version
- 2016
- Platform
- Windows
Hi guys,
I have a worksheet with four columns (A = Calendar, B = Event Date, C = Alarm off, D = Alarm on) containing details of alarm off and alarm on times.
Column A contains every day from 1 May 2015 until 30 June 2017 - 793 rows including the header;
Column B contains selected days between 1 May 2016 and 30 June 2017 (when the alarm is turned off and then back on again, always the same day) - 302 rows including the header
Columns C and D have times based upon alarm off and alarm on and a matching entry to column B (that is whenever Column B has an event date, column C and D has a alarm off and alarm on time).
I want to somehow sort the worksheet so that the entries in Columns B, C & D align with Column A.
Below is a small sample which hopefully assists my explanation. I'd like to be able to sort the worksheet causing the entry in B3:D3 to actually be in B5:D5 (and B3:D4 be empty).
[TABLE="width: 420"]
<tbody>[TR]
[TD]
Calendar[/TD]
[TD]
Event date[/TD]
[TD]
Alarm off[/TD]
[TD]
Alarm on[/TD]
[/TR]
[TR]
[TD="align: right"]01-May-2015[/TD]
[TD="align: right"]01-May-2015[/TD]
[TD="align: right"]09:00[/TD]
[TD="align: right"]12:30[/TD]
[/TR]
[TR]
[TD="align: right"]02-May-2015[/TD]
[TD="align: right"]04-May-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]14:30[/TD]
[/TR]
[TR]
[TD="align: right"]03-May-2015[/TD]
[TD="align: right"]05-May-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:30[/TD]
[/TR]
[TR]
[TD="align: right"]04-May-2015[/TD]
[TD="align: right"]06-May-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]13:00[/TD]
[/TR]
[TR]
[TD="align: right"]05-May-2015[/TD]
[TD="align: right"]07-May-2015[/TD]
[TD="align: right"]08:00[/TD]
[TD="align: right"]11:00[/TD]
[/TR]
[TR]
[TD="align: right"]06-May-2015[/TD]
[TD="align: right"]08-May-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:00[/TD]
[/TR]
[TR]
[TD="align: right"]07-May-2015[/TD]
[TD="align: right"]12-May-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:00[/TD]
[/TR]
[TR]
[TD="align: right"]08-May-2015[/TD]
[TD="align: right"]23-May-2015[/TD]
[TD="align: right"]14:00[/TD]
[TD="align: right"]17:00[/TD]
[/TR]
[TR]
[TD="align: right"]09-May-2015[/TD]
[TD="align: right"]27-May-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]13:00[/TD]
[/TR]
[TR]
[TD="align: right"]10-May-2015[/TD]
[TD="align: right"]28-May-2015[/TD]
[TD="align: right"]07:30[/TD]
[TD="align: right"]10:30[/TD]
[/TR]
[TR]
[TD="align: right"]11-May-2015[/TD]
[TD="align: right"]29-May-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:00[/TD]
[/TR]
[TR]
[TD="align: right"]12-May-2015[/TD]
[TD="align: right"]01-June-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]14:00[/TD]
[/TR]
[TR]
[TD="align: right"]13-May-2015[/TD]
[TD="align: right"]02-June-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:00[/TD]
[/TR]
[TR]
[TD="align: right"]14-May-2015[/TD]
[TD="align: right"]03-June-2015[/TD]
[TD="align: right"]07:30[/TD]
[TD="align: right"]10:30[/TD]
[/TR]
[TR]
[TD="align: right"]15-May-2015[/TD]
[TD="align: right"]04-June-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]13:30[/TD]
[/TR]
[TR]
[TD="align: right"]16-May-2015[/TD]
[TD="align: right"]05-June-2015[/TD]
[TD="align: right"]08:30[/TD]
[TD="align: right"]11:30[/TD]
[/TR]
[TR]
[TD="align: right"]17-May-2015[/TD]
[TD="align: right"]09-June-2015[/TD]
[TD="align: right"]07:30[/TD]
[TD="align: right"]13:30[/TD]
[/TR]
[TR]
[TD="align: right"]18-May-2015[/TD]
[TD="align: right"]10-June-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:00[/TD]
[/TR]
[TR]
[TD="align: right"]19-May-2015[/TD]
[TD="align: right"]12-June-2015[/TD]
[TD="align: right"]07:30[/TD]
[TD="align: right"]10:30[/TD]
[/TR]
[TR]
[TD="align: right"]20-May-2015[/TD]
[TD="align: right"]15-June-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]13:30[/TD]
[/TR]
[TR]
[TD="align: right"]21-May-2015[/TD]
[TD="align: right"]17-June-2015[/TD]
[TD="align: right"]07:30[/TD]
[TD="align: right"]10:30[/TD]
[/TR]
[TR]
[TD="align: right"]22-May-2015[/TD]
[TD="align: right"]19-June-2015[/TD]
[TD="align: right"]08:00[/TD]
[TD="align: right"]11:00[/TD]
[/TR]
[TR]
[TD="align: right"]23-May-2015[/TD]
[TD="align: right"]22-June-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:00[/TD]
[/TR]
[TR]
[TD="align: right"]24-May-2015[/TD]
[TD="align: right"]30-June-2015[/TD]
[TD="align: right"]07:30[/TD]
[TD="align: right"]10:30[/TD]
[/TR]
[TR]
[TD="align: right"]25-May-2015[/TD]
[TD="align: right"]01-July-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]13:00[/TD]
[/TR]
[TR]
[TD="align: right"]26-May-2015[/TD]
[TD="align: right"]02-July-2015[/TD]
[TD="align: right"]16:00[/TD]
[TD="align: right"]19:30[/TD]
[/TR]
[TR]
[TD="align: right"]27-May-2015[/TD]
[TD="align: right"]03-July-2015[/TD]
[TD="align: right"]12:00[/TD]
[TD="align: right"]19:00[/TD]
[/TR]
[TR]
[TD="align: right"]28-May-2015[/TD]
[TD="align: right"]06-July-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]13:30[/TD]
[/TR]
[TR]
[TD="align: right"]29-May-2015[/TD]
[TD="align: right"]07-July-2015[/TD]
[TD="align: right"]07:30[/TD]
[TD="align: right"]10:30[/TD]
[/TR]
[TR]
[TD="align: right"]30-May-2015[/TD]
[TD="align: right"]13-July-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:00[/TD]
[/TR]
[TR]
[TD="align: right"]31-May-2015[/TD]
[TD="align: right"]14-July-2015[/TD]
[TD="align: right"]16:00[/TD]
[TD="align: right"]22:30[/TD]
[/TR]
</tbody><colgroup><col><col><col><col></colgroup>[/TABLE]
Thanks in advance, BBau
I have a worksheet with four columns (A = Calendar, B = Event Date, C = Alarm off, D = Alarm on) containing details of alarm off and alarm on times.
Column A contains every day from 1 May 2015 until 30 June 2017 - 793 rows including the header;
Column B contains selected days between 1 May 2016 and 30 June 2017 (when the alarm is turned off and then back on again, always the same day) - 302 rows including the header
Columns C and D have times based upon alarm off and alarm on and a matching entry to column B (that is whenever Column B has an event date, column C and D has a alarm off and alarm on time).
I want to somehow sort the worksheet so that the entries in Columns B, C & D align with Column A.
Below is a small sample which hopefully assists my explanation. I'd like to be able to sort the worksheet causing the entry in B3:D3 to actually be in B5:D5 (and B3:D4 be empty).
[TABLE="width: 420"]
<tbody>[TR]
[TD]
Calendar[/TD]
[TD]
Event date[/TD]
[TD]
Alarm off[/TD]
[TD]
Alarm on[/TD]
[/TR]
[TR]
[TD="align: right"]01-May-2015[/TD]
[TD="align: right"]01-May-2015[/TD]
[TD="align: right"]09:00[/TD]
[TD="align: right"]12:30[/TD]
[/TR]
[TR]
[TD="align: right"]02-May-2015[/TD]
[TD="align: right"]04-May-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]14:30[/TD]
[/TR]
[TR]
[TD="align: right"]03-May-2015[/TD]
[TD="align: right"]05-May-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:30[/TD]
[/TR]
[TR]
[TD="align: right"]04-May-2015[/TD]
[TD="align: right"]06-May-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]13:00[/TD]
[/TR]
[TR]
[TD="align: right"]05-May-2015[/TD]
[TD="align: right"]07-May-2015[/TD]
[TD="align: right"]08:00[/TD]
[TD="align: right"]11:00[/TD]
[/TR]
[TR]
[TD="align: right"]06-May-2015[/TD]
[TD="align: right"]08-May-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:00[/TD]
[/TR]
[TR]
[TD="align: right"]07-May-2015[/TD]
[TD="align: right"]12-May-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:00[/TD]
[/TR]
[TR]
[TD="align: right"]08-May-2015[/TD]
[TD="align: right"]23-May-2015[/TD]
[TD="align: right"]14:00[/TD]
[TD="align: right"]17:00[/TD]
[/TR]
[TR]
[TD="align: right"]09-May-2015[/TD]
[TD="align: right"]27-May-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]13:00[/TD]
[/TR]
[TR]
[TD="align: right"]10-May-2015[/TD]
[TD="align: right"]28-May-2015[/TD]
[TD="align: right"]07:30[/TD]
[TD="align: right"]10:30[/TD]
[/TR]
[TR]
[TD="align: right"]11-May-2015[/TD]
[TD="align: right"]29-May-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:00[/TD]
[/TR]
[TR]
[TD="align: right"]12-May-2015[/TD]
[TD="align: right"]01-June-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]14:00[/TD]
[/TR]
[TR]
[TD="align: right"]13-May-2015[/TD]
[TD="align: right"]02-June-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:00[/TD]
[/TR]
[TR]
[TD="align: right"]14-May-2015[/TD]
[TD="align: right"]03-June-2015[/TD]
[TD="align: right"]07:30[/TD]
[TD="align: right"]10:30[/TD]
[/TR]
[TR]
[TD="align: right"]15-May-2015[/TD]
[TD="align: right"]04-June-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]13:30[/TD]
[/TR]
[TR]
[TD="align: right"]16-May-2015[/TD]
[TD="align: right"]05-June-2015[/TD]
[TD="align: right"]08:30[/TD]
[TD="align: right"]11:30[/TD]
[/TR]
[TR]
[TD="align: right"]17-May-2015[/TD]
[TD="align: right"]09-June-2015[/TD]
[TD="align: right"]07:30[/TD]
[TD="align: right"]13:30[/TD]
[/TR]
[TR]
[TD="align: right"]18-May-2015[/TD]
[TD="align: right"]10-June-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:00[/TD]
[/TR]
[TR]
[TD="align: right"]19-May-2015[/TD]
[TD="align: right"]12-June-2015[/TD]
[TD="align: right"]07:30[/TD]
[TD="align: right"]10:30[/TD]
[/TR]
[TR]
[TD="align: right"]20-May-2015[/TD]
[TD="align: right"]15-June-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]13:30[/TD]
[/TR]
[TR]
[TD="align: right"]21-May-2015[/TD]
[TD="align: right"]17-June-2015[/TD]
[TD="align: right"]07:30[/TD]
[TD="align: right"]10:30[/TD]
[/TR]
[TR]
[TD="align: right"]22-May-2015[/TD]
[TD="align: right"]19-June-2015[/TD]
[TD="align: right"]08:00[/TD]
[TD="align: right"]11:00[/TD]
[/TR]
[TR]
[TD="align: right"]23-May-2015[/TD]
[TD="align: right"]22-June-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:00[/TD]
[/TR]
[TR]
[TD="align: right"]24-May-2015[/TD]
[TD="align: right"]30-June-2015[/TD]
[TD="align: right"]07:30[/TD]
[TD="align: right"]10:30[/TD]
[/TR]
[TR]
[TD="align: right"]25-May-2015[/TD]
[TD="align: right"]01-July-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]13:00[/TD]
[/TR]
[TR]
[TD="align: right"]26-May-2015[/TD]
[TD="align: right"]02-July-2015[/TD]
[TD="align: right"]16:00[/TD]
[TD="align: right"]19:30[/TD]
[/TR]
[TR]
[TD="align: right"]27-May-2015[/TD]
[TD="align: right"]03-July-2015[/TD]
[TD="align: right"]12:00[/TD]
[TD="align: right"]19:00[/TD]
[/TR]
[TR]
[TD="align: right"]28-May-2015[/TD]
[TD="align: right"]06-July-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]13:30[/TD]
[/TR]
[TR]
[TD="align: right"]29-May-2015[/TD]
[TD="align: right"]07-July-2015[/TD]
[TD="align: right"]07:30[/TD]
[TD="align: right"]10:30[/TD]
[/TR]
[TR]
[TD="align: right"]30-May-2015[/TD]
[TD="align: right"]13-July-2015[/TD]
[TD="align: right"]07:00[/TD]
[TD="align: right"]10:00[/TD]
[/TR]
[TR]
[TD="align: right"]31-May-2015[/TD]
[TD="align: right"]14-July-2015[/TD]
[TD="align: right"]16:00[/TD]
[TD="align: right"]22:30[/TD]
[/TR]
</tbody><colgroup><col><col><col><col></colgroup>[/TABLE]
Thanks in advance, BBau