I need to calculate the year for the following data. What I want to know for the year column is if there is a date in the Visit date 2018 column bring back 2018 in the year column, if there is a date in the visit date 2019 it will bring back 2019 in the year column, if there is a date in both, it will bring back 2018/2019 in the year column and if there are no dates in either of the visit columns the year column will be blank. I hope that makes sense. Thank you.
[TABLE="width: 344"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD]Visit Date 2018[/TD]
[TD]Visit Date 2019[/TD]
[TD]Year[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]3/16/2018[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]8/23/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]8/23/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]8/23/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]6/12/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]6/12/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]6/12/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]6/12/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]6/12/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]1/25/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]5/24/2018[/TD]
[TD]1/9/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]7/27/2018[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 344"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD]Visit Date 2018[/TD]
[TD]Visit Date 2019[/TD]
[TD]Year[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]3/16/2018[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]8/23/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]8/23/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]8/23/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]6/12/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]6/12/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]6/12/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]6/12/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]6/12/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]1/25/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]5/24/2018[/TD]
[TD]1/9/2019[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]7/27/2018[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]