I am getting an error when trying to use this lookup formula to find the last cell with a value and enter it in another cell this is the formula I'm using in excel but it is giving me an error in google sheets saying "Did not find value 2 in lookup evaluation"
=LOOKUP(2,1/(D1:AJ1 <> ""),D1:AJ1)
Any help would be appreciated.