what's wrong with this formula?

jrr

New member
Joined
Jun 30, 2021
Messages
3
Reaction score
0
Points
0
Excel Version(s)
2003sp3
This formula doesn't work.
What's wrong, please?
=OFFSET(max(LesLoan!A:A),0,5)
 
Define "doesn't work". What goes wrong? Do you get an error message? What result are you expecting?

Why use OFFSET in the first place?
 
Define "doesn't work". What goes wrong? Do you get an error message? What result are you expecting?

Why use OFFSET in the first place?

Formula as stated isn't accepted.

I'm using the =OFFSET function as I want the Max function in column 1 (the most recent of a list of dates) to return the value in the 5th column of that row, an amount of money.

Suggest a correction to the formula, or a workaround, please?

Thanks for your interest!
 
to get the cell reference(with max value) in column A of worksheet "LesLoan" NOTE: the contect in criteria area must be in numercial format.
=OFFSET(INDIRECT("LesLoan!A"&MATCH(MAX(LesLoan!A:A),LesLoan!A:A,)),0,5)

to get the cell reference(with last entry) in column A of worksheet "LesLoan". NOTE: the content might or might not be numerical data
=OFFSET(INDIRECT("LesLoan!A"&LOOKUP(1,0/(LesLoan!A:A<>""),ROW(LesLoan!A:A))),0,5)
 

Attachments

  • Capture.jpg
    Capture.jpg
    91.7 KB · Views: 10
THanks VERY much!

to get the cell reference(with max value) in column A of worksheet "LesLoan" NOTE: the contect in criteria area must be in numercial format.
=OFFSET(INDIRECT("LesLoan!A"&MATCH(MAX(LesLoan!A:A),LesLoan!A:A,)),0,5)

to get the cell reference(with last entry) in column A of worksheet "LesLoan". NOTE: the content might or might not be numerical data
=OFFSET(INDIRECT("LesLoan!A"&LOOKUP(1,0/(LesLoan!A:A<>""),ROW(LesLoan!A:A))),0,5)


That works fine!
 
Wow ! volatile functions in the same formula ! Strange idea
What's wrong with a simple INDEX/MATCH combination?
 
Back
Top