Sheet Summary formula
Hi,
I am using the below query to fetch a value from Finance column but this works if my criteria of Req Type = P but fails for Req Type = L. I believe this is something to do with INDEX Function but not sure how my requirement can be achieved. Can someone help me on fine tuning this query please!
Query works for Req Type = "P"
=INDEX(Finance:Finance, MAX(COLLECT([Row ID]:[Row ID],[Req Type]:[Req Type],"P",Quarter:Quarter,2,Year:Year,2021)),1)
Query fails for Req Type = "L"
=INDEX(Finance:Finance,MAX(COLLECT([Row ID]:[Row ID],[Req Type]:[Req Type],"L",Quarter:Quarter,2,Year:Year,2021)),1)
I welcome any solution either by modifying the query (as i am not sure if this is the right way to use) or entire new query to achieve my requirement.
my Smartsheet table data
Thanks in advance,
~Chitta
Answers
-
I set up a replica of your sheet and copy/pasted your formulas into the cells called Values so that I could test it. Your formulas looks correct to me and I wanted to see if there were comma issues or a simple parentheses missing.
However, when I pasted the formula in with the data you provided it works great. Can you provide the error message you're seeing?
Screenshot attached of the sheet working with the formula you provided for the L lookup.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!