Grabbing text from a cell based on the "current" or recent date
Hello All,
I am trying to figure out how to grab a specific calc from a sheet that I will use as a KPI on a dashboard via the metric widget. I need to create a formula that will go through and find the calculation that is the most current and place it in the cell I will use for the metric. The idea is that as I populate the sheet it will automatically change the metric data based on the date and update the dashboard.
In the sheet below I want the most current % (Spent/Projection) to be pulled into the (Current) Spent/Projected column.
Thanks!
Best Answer
-
I would suggest this...
=INDEX([Spent/Projection]:[Spent/Projection], MATCH(MAX(COLLECT([Month/Date]:[Month/Date], [Spent Committed]:[Spent Committed], @cell <> "")), [Month/Date]:[Month/Date], 0))
Answers
-
Hi @Luis Perez
Hope you are fine, please try the following formula ( you need to use the same columns name i used )
=IFERROR(VALUE(JOIN(COLLECT([Spent/Projection]:[Spent/Projection], [Month/Date]:[Month/Date], MAX([Month/Date]:[Month/Date])))), "")
the following screenshot shows the result:
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
Thanks Bassam,
This worked great but I forgot to add one bit of information.
I want to pull the "Spent Projection" from the cell that matches the "Spent Committed" with the last known entry. Basically ignore any blank "Spent Committed" cell.
See row 24.
Thanks!!
-
I would suggest this...
=INDEX([Spent/Projection]:[Spent/Projection], MATCH(MAX(COLLECT([Month/Date]:[Month/Date], [Spent Committed]:[Spent Committed], @cell <> "")), [Month/Date]:[Month/Date], 0))
-
That Worked! thanks!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!