Forum Discussion
I need a function to return last date of update
Does this work?
=LET(n, MAX(((A3:L19<>"")+A1:L1)*COLUMN(A3:L19)), IF(n=0, "", INDEX(A2:L2, MAX(((A3:L19<>"")+A1:L1)*COLUMN(A3:L19)))))
- ajl_ahmedNov 06, 2024Iron Contributor
there is another error #NAME?
Could you please write the function in the attached file
- HansVogelaarNov 06, 2024MVP
Sorry, ARRAYFORMULA instead of ARRAYFUNCTION
- ajl_ahmedNov 06, 2024Iron Contributor
There is an error when applying this formula #NAME?
- HansVogelaarNov 06, 2024MVP
As far as I can tell:
=ARRAYFUNCTION(LET(n, MAX(IF((A3:L19<>"")+A1:L1+A22:L22, COLUMN(A3:L19))), IF(n=0, "", INDEX(A2:L2, n))))
- ajl_ahmedNov 06, 2024Iron Contributor
Hi
currently, I am using google sheet
I want to use your function to satisfy the following conditions. I think that your function or formula is needed to be modified. The new function should be compatible to this case:
in the attached file, based on the following:- the values of cells range A3:L19.
- the values of cells range A1:L1.
- the values of cells range A22:L22.
if there is data (Text OR Number value) in the range (A3:L18) OR the values of range A1:L1 are equal to (True) OR the values of range A22:L22 are equal to (True).
I need a function to return one value from a range (the last date of update) which is a value from the range (A2:L2)
in this case; it should be the last date of update 16/10/2024
Thanks. - HansVogelaarNov 03, 2024MVP
Try this instead (without -3):
=ARRAYFORMULA(LET(n, MAX(IF((A3:L19<>"")+A1:L1, COLUMN(A3:L19))), IF(n=0, "", INDEX(A2:L2, MAX(IF((A3:L19<>"")+A1:L1, COLUMN(A3:L19)))))))
- ajl_ahmedNov 03, 2024Iron ContributorIt is working now after shifting the columns by -3
- ajl_ahmedNov 03, 2024Iron Contributorthe function returns date which shifted by three cells
- ajl_ahmedNov 03, 2024Iron Contributorit is working but not returned the correct date
- HansVogelaarNov 03, 2024MVP
Simply enclose the expression in ARRAYFORMULA( 😞
=ARRAYFORMULA(LET(n, MAX(((A3:L19<>"")+A1:L1)*COLUMN(A3:L19)), IF(n=0, "", INDEX(A2:L2, MAX(((A3:L19<>"")+A1:L1)*COLUMN(A3:L19))))))