i want to put a formula on column C that will show me the year of the given date on column A inside the same group code in column B, like this
Excel 2013/2016 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Date | Group Code | Year | ||
2 | 03/17/2018 | 1 | 2018 | ||
3 | 1 | 2018 | |||
4 | 1 | 2018 | |||
5 | 03/06/2017 | 2 | 2016, 2017 | ||
6 | 01/01/2016 | 2 | 2016, 2017 | ||
7 | 2 | 2016, 2017 | |||
8 | 12/01/2017 | 3 | 2017 | ||
9 | 3 | 2017 | |||
Sheet1 |