[Solved] LastCellValue function from Quattro Pro

Discuss the spreadsheet application
Locked
rgtr
Posts: 6
Joined: Sat Dec 19, 2020 5:17 pm

[Solved] LastCellValue function from Quattro Pro

Post by rgtr »

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
Last edited by MrProgrammer on Thu Aug 15, 2024 3:13 pm, edited 2 times in total.
Reason: Add Quattro Pro to topic subject
Open Office 4.1.6 on Windows 7.1 Pro
User avatar
karolus
Volunteer
Posts: 1243
Joined: Sat Jul 02, 2011 9:47 am

Re: LastCellValue

Post by karolus »

If there no »gaps« in the data:

Code: Select all

=INDEX(G6:G10000;COUNT(G6:G10000))
if »last balance« is in the same row as the »last Date« AND the dates are sorted ascending :

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)
rgtr
Posts: 6
Joined: Sat Dec 19, 2020 5:17 pm

Re: LastCellValue

Post by rgtr »

karolus

Thanks
That works a treat .... =INDEX(G6:G10000;COUNT(G6:G10000))

Richard
Open Office 4.1.6 on Windows 7.1 Pro
User avatar
Lupp
Volunteer
Posts: 3756
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: LastCellValue

Post by Lupp »

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
User avatar
Zizi64
Volunteer
Posts: 11505
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: LastCellValue

Post by Zizi64 »

LastCellValue(G6..G1000)
If you know the boundary of the cell range, then you must know the last cell too: 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.
Locked