Current Month Data Pull
Answers
-
Hey @Lauren Stedman
In Paul's formula, the MATCH function is looking for an exact match for a specific date, with the Day, Month, and Year:
=INDEX([DMS Forecast]:[DMS Forecast], MATCH(DATE(YEAR(TODAY()), MONTH(TODAY()), 1), Month:Month, 0))
so:
MATCH(DATE(YEAR(TODAY()), MONTH(TODAY()), 1), Month:Month,
Says to look in the Month column for the DATE that has Today's Year, Today's Month, and a number 1 for the Day.
In the Collect function we're only looking for the Month, and it will bring back the first matching row:
=INDEX(COLLECT([DMS Forecast]:[DMS Forecast], Month:Month, IFERROR(MONTH(@cell), 0) = MONTH(TODAY())), 1)
You can use JOIN(COLLECT instead so that if there are ever two rows with the same month you can see both independent values:
=JOIN(COLLECT([DMS Forecast]:[DMS Forecast], Month:Month, IFERROR(MONTH(@cell), 0) = MONTH(TODAY())), ", ")
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Amazing! Thank you so much!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!