I am looking at data in positive and negative entries in my school. They have asked me to compare across years. I have assigned each date a school week and term but this is difficult across years as they change.
Each entry has a date in B2, I have then pulled the year in V2. I have a seperate sheet 'Reference Data' which has columns A, B, C, D having start date, end date, Week and Term e.g. 29/01/2024, 4/02/2024, T1W01 (Stands for Term 1 Week 1), 1 (Stands for Term 1. This is done for the year.
I use =VLOOKUP(B2,'Reference Data'!$A$2:$D$100,4) to return the date and the same for the week in column 3.
The problem I have now is I put in F G H I the same data for school weeks and terms but for 2023. How can I look in one range if V2 says 2023 and another if it says 2024 (posssibly another for 2025/2022).
Thanks
Each entry has a date in B2, I have then pulled the year in V2. I have a seperate sheet 'Reference Data' which has columns A, B, C, D having start date, end date, Week and Term e.g. 29/01/2024, 4/02/2024, T1W01 (Stands for Term 1 Week 1), 1 (Stands for Term 1. This is done for the year.
I use =VLOOKUP(B2,'Reference Data'!$A$2:$D$100,4) to return the date and the same for the week in column 3.
The problem I have now is I put in F G H I the same data for school weeks and terms but for 2023. How can I look in one range if V2 says 2023 and another if it says 2024 (posssibly another for 2025/2022).
Thanks