Lux Aeterna
Board Regular
- Joined
- Aug 27, 2015
- Messages
- 205
- Office Version
- 2019
- Platform
- Windows
Hello everyone! There's an excel workbook that contains two sheets. One named List2022 and one named Results. In the latter there is a VLOOKUP function that fetches results from the former
Now we will add a third sheet named List2023.
I was wondering if we could somehow modify the lookup function according to cell value. For example, if Y3 is 2022, I'd like the function to fetch results from the List2022 sheet. If Y3 is 2023 I'd like the function to fetch results from the List2023 sheet and so on for the years to come.
I'd like to avoid macros because there are already a few in the workbook, but if not possible I'm ok with it. I could also change sheet names if necessary.
Thank you in advance and wishes for a great new year to everyone!
Excel Formula:
=IF(U2="";"";IF(AA3="";VLOOKUP(U2;List2022!$A$5:$H$10033;3;FALSE);AA3))
Now we will add a third sheet named List2023.
I was wondering if we could somehow modify the lookup function according to cell value. For example, if Y3 is 2022, I'd like the function to fetch results from the List2022 sheet. If Y3 is 2023 I'd like the function to fetch results from the List2023 sheet and so on for the years to come.
I'd like to avoid macros because there are already a few in the workbook, but if not possible I'm ok with it. I could also change sheet names if necessary.
Thank you in advance and wishes for a great new year to everyone!