Forum Discussion
TheOldPuterMan
Mar 08, 2022Brass Contributor
XLOOKUP Not returning expected value
I have a simple problem that has been perplexing me for two days. I need to look up data in a column from last to first and when I find the first non-zero cell, extract the date from a different colu...
- Mar 09, 2022
As harshulz mentioned no way to pass something like ">0" as lookup_value to XLOOKUP. If you want to "find the first non-zero cell" from last-to-first:
in B2:
=XLOOKUP(1,SIGN(I4:I35),B4:B35,Month_Start_Date,0,-1)
harshulz
Mar 09, 2022Iron Contributor
i have obsserved that xlookup is not taking ">0" as number?
Lorenzo
Mar 09, 2022Silver Contributor
As harshulz mentioned no way to pass something like ">0" as lookup_value to XLOOKUP. If you want to "find the first non-zero cell" from last-to-first:
in B2:
=XLOOKUP(1,SIGN(I4:I35),B4:B35,Month_Start_Date,0,-1)
- TheOldPuterManMar 09, 2022Brass ContributorWorked like a charm! Thanks.
And thanks to Riny for a good try- LorenzoMar 10, 2022Silver ContributorGlad we could help & Thanks for providing feedback