smide
Board Regular
- Joined
- Dec 20, 2015
- Messages
- 164
- Office Version
- 2016
- Platform
- Windows
Hello.
In column A (A1:A600) I have a dates and time in format dd.mm.yyyy - hh:mm (example. 07.10.2019 - 21:00).
Somehow I need to find an 'average' date for all those dates in column A (split data/dates in column A into two parts) and then to assign an index to each date (column A) according to the half it belongs.
If date from column A is in first half then index '1st', if in second index '2nd'.
All results should be in column B.
example.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]06.10.2019 - 22:15[/TD]
[TD="align: center"]1st[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]07.10.2019 - 21:00[/TD]
[TD="align: center"]1st[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]07.10.2019 - 22:00[/TD]
[TD="align: center"]1st[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]08.10.2019 - 22:00[/TD]
[TD="align: center"]2nd[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]09.10.2019 - 14:00[/TD]
[TD="align: center"]2nd[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]10.10.2019 - 17:00[/TD]
[TD="align: center"]2nd[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]05.10.2019 - 18:00[/TD]
[TD="align: center"]1st[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]10.10.2019 - 17:45[/TD]
[TD="align: center"]2nd[/TD]
[/TR]
</tbody>[/TABLE]
In column A (A1:A600) I have a dates and time in format dd.mm.yyyy - hh:mm (example. 07.10.2019 - 21:00).
Somehow I need to find an 'average' date for all those dates in column A (split data/dates in column A into two parts) and then to assign an index to each date (column A) according to the half it belongs.
If date from column A is in first half then index '1st', if in second index '2nd'.
All results should be in column B.
example.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]06.10.2019 - 22:15[/TD]
[TD="align: center"]1st[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]07.10.2019 - 21:00[/TD]
[TD="align: center"]1st[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]07.10.2019 - 22:00[/TD]
[TD="align: center"]1st[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]08.10.2019 - 22:00[/TD]
[TD="align: center"]2nd[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]09.10.2019 - 14:00[/TD]
[TD="align: center"]2nd[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]10.10.2019 - 17:00[/TD]
[TD="align: center"]2nd[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]05.10.2019 - 18:00[/TD]
[TD="align: center"]1st[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]10.10.2019 - 17:45[/TD]
[TD="align: center"]2nd[/TD]
[/TR]
</tbody>[/TABLE]