Returning data from another sheet matching on two criteria
I am trying to create a report which brings back the actual performance for performance measures for the last month, 2 months ago and three months ago. But am stumped as to how i can do a lookup to the base data sheet using two criteria (MeasureID and where the date is last month etc.)
The base data sheet has a row per measure per month which holds the target and actual reported by the user. I've created a formula column 'Month' to look at today's date and then give a value based on that rows period (1,2 or 3).
For the Month-1 actual column I want a formula to lookup against the MeasureID and if the month=1 then return the actual for that row. For the Month-2 column, lookup against MeasureID and if the month=2 then return the actual and so on. I've mocked up how I want this to look
Is this possible?! I've managed to do similar but only using COUNTIFS, SUMIFS etc and not returning cell specific data.
Thanks in advance!
Answers
-
Try something like this...
=INDEX(COLLECT({Reference Sheet Target Column}, {Reference Sheet Short Name Column}, @cell = [Measure Name]@row, {Reference Sheet Month Column}, @cell = 1), 1)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65K Get Help
- 442 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 149 Just for fun
- 70 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!