Hi all,
I have the following table with dates in A column, formatted as date, and values on B.
I would like the Cell C2 to show only the value that correspond to actual month and year, the date doesn't matter. For this month, it should show 10, for the next month ( from 1st of April) it should be shown 20 and next year in January to show 50 )
I tried following formula's, but it doesn't work
=VLOOKUP(AND(YEAR(TODAY());(MONTH(TODAY())));A2:B6;2;FALSE)
=VLOOKUP(MONTH(TODAY())&"/"&(YEAR(TODAY()));A2:B6;2;TRUE)
Thanks for the advice!
I have the following table with dates in A column, formatted as date, and values on B.
I would like the Cell C2 to show only the value that correspond to actual month and year, the date doesn't matter. For this month, it should show 10, for the next month ( from 1st of April) it should be shown 20 and next year in January to show 50 )
I tried following formula's, but it doesn't work
=VLOOKUP(AND(YEAR(TODAY());(MONTH(TODAY())));A2:B6;2;FALSE)
=VLOOKUP(MONTH(TODAY())&"/"&(YEAR(TODAY()));A2:B6;2;TRUE)
Thanks for the advice!
Value for the current month and year | ||
31/03/2024 | 10 | 10 |
30/04/2024 | 20 | |
31/05/2024 | 30 | |
30/06/2024 | 40 | |
31/01/2025 | 50 |
Last edited: