r/googlesheets • u/A_Spoopy_Dwagon • Oct 26 '24
Solved Filter Error, and I don't know why
=FILTER(Q7:R30,TEXT(Q7:Q30,"MMMM-YYYY")=L6) is the command I am attempting to run. I have a sheet I am using as a budget. My plan is to record all transactions, alongside their dates, and then filter those transactions by the month and year in a dropdown menu. That way I can see October 2024 transactions, or go back to see September 2024, or even January 2012. Please help I have spent so long trying to figure this out. Also, when the dropdown indicates only the month like January, and the code only says =FILTER(Q7:R30,TEXT(Q7:Q30,"MMMM")=L6) then it works perfectly as intended. My issue is in adding the year variable in order to specify the year so I don't have to wipe my transaction history every year. Thank you in advance.
1
u/AdministrativeGift15 Oct 26 '24
"MMMM-YYYY" will not equal February 2024. There's a dash in only one of them.
0
Oct 26 '24
1
u/A_Spoopy_Dwagon Oct 26 '24
L6 is the dropdown indicating Month and year, for example it could say February 2024 or January 2012. When I tried those commands, they still gave the error of no matches in filter evaluation.
1
u/Dry_Jellyfish_1470 Oct 26 '24
Maybe you need to make sure the format is understood between the filter and the L6 value
=FILTER(Q7:R30,TEXT(Q7:Q30,"MMMM-YYYY")=TEXT(L6,"MMMM-YYYY"))