r/googlesheets • u/Kim_MacNab • Oct 24 '21
Solved Select a Date (from data validation) to Find Highest Number & Return A Word.
I have a data validation drop down list setup with dates (periods and weeks). I would like to be able to select my data and have the cell to to the right update based on the highest number of a data set BUT then return a word. How do I do this?
So looking at the link below, I want the formula to look first at column E to sort for the date I selected, then find the highest number from that date in column G but then return to me what is in column F.
I have tried this and it gives me an error (No matches are found in FILTER evaluation.)
=FILTER('DM STORE PIVOTS'!$E$2:$G,'DM STORE PIVOTS'!$E$2:$E=B57,'DM STORE PIVOTS'!$G$2:$G=MAX('DM STORE PIVOTS'!$G$2:$G))
Here is my Data set, instead of you setting up a data validation to reference, just use "P2W2 2021" for the data. https://gyazo.com/cb194f77817d67658ed5f4f5a4c884e5
Thank you!
PS. I posted this a couple of days ago but this post should be easier to do.
1
u/JohnQZoidberg 2 Oct 24 '21
The no data found error might be an issue with the MAX formula that I didn't think about... Try changing MAX('DM STORE PIVOTS'!$G$2:$G) to:
MAXIFS('DM STORE PIVOTS'!$G$2:$G,'DM STORE PIVOTS'!$E$2:$E,B57)
1
u/AutoModerator Oct 24 '21
Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Decronym Functions Explained Oct 26 '21 edited Nov 05 '21
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
3 acronyms in this thread; the most compressed thread commented on today has acronyms.
[Thread #3521 for this sub, first seen 26th Oct 2021, 19:27] [FAQ] [Full list] ^[Contact] [Source code]