Hi
I am moving to OO from Word Perfect Office with Quattro Pro.
It has a great function "LastCellValue(cellref:cellref) e.g. LastCellValue(G6..G1000)
I simply cannot understand how to do this in OO Calc
I have a spreadsheet recording Date, Money In, Money Out, and Balance
I just want to know what the latest balance is ??
I am being driven up the wall by "Index" etc etc.
Richard
[Solved] LastCellValue function from Quattro Pro
[Solved] LastCellValue function from Quattro Pro
Last edited by MrProgrammer on Thu Aug 15, 2024 3:13 pm, edited 2 times in total.
Reason: Add Quattro Pro to topic subject
Reason: Add Quattro Pro to topic subject
Open Office 4.1.6 on Windows 7.1 Pro
Re: LastCellValue
If there no »gaps« in the data:
if »last balance« is in the same row as the »last Date« AND the dates are sorted ascending :
Code: Select all
=INDEX(G6:G10000;COUNT(G6:G10000))Code: Select all
=VLOOKUP(MAX(A6:A10000);A6:G10000;7;1))Libreoffice 25.2… on Debian 13 (trixie) (on RaspberryPI5)
Libreoffice 25.8… flatpak on Debian 13 (trixie) (on RaspberryPI5)
Libreoffice 25.8… flatpak on Debian 13 (trixie) (on RaspberryPI5)
Re: LastCellValue
karolus
Thanks
That works a treat .... =INDEX(G6:G10000;COUNT(G6:G10000))
Richard
Thanks
That works a treat .... =INDEX(G6:G10000;COUNT(G6:G10000))
Richard
Open Office 4.1.6 on Windows 7.1 Pro
Re: LastCellValue
LibreOffice 24.8 will come with the new functions XMATCH() and XLOOKUP() both supporting also reverse search directly. (I tested with 24.8.0.3RC.)
On Windows 10: LibreOffice 25.8.4 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
---
Lupp from München
Re: LastCellValue
If you know the boundary of the cell range, then you must know the last cell too: G1000LastCellValue(G6..G1000)
Just use the formula "=G1000".
Or do you want to reference the value of the last non-empty cell in a cell range?
Just use a manually filled numbering column and the function VLOOKUP() with the parameter MAX('whole cell range of the numbering column') for the searching the last filled-in value in the Balance column.
Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.