Need Formula

Discuss the spreadsheet application
Post Reply
jasgow
Posts: 1
Joined: Tue Sep 11, 2018 2:52 pm

Need Formula

Post by jasgow »

Hi, I am trying to get a formula to find out the non empty cell value out of few empty cells. For your reference i am attaching a file. Please check it and let me know the answer.
Attachments
New OpenDocument Spreadsheet.ods
Unknown Formula
(17.97 KiB) Downloaded 57 times
Windows 7 with Apache Open Office 4.1.1
FJCC
Moderator
Posts: 9274
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Need Formula

Post by FJCC »

Try

Code: Select all

=INDEX(C4:C14;MATCH(".+";C4:C14;0))
For this to work, you have to go to the menu Tools -> Options, expand the Calc list on the left, select Calculate and select Enable Regular Expressions in Formulas.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
Lupp
Volunteer
Posts: 3549
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Need Formula

Post by Lupp »

(Just for completeness.)
===Edit 2018-09-21 09:36 CEST: I was wrong about the LibO release containing the fixed version. Now correct.===
===Edit 2018-09-21 10:51 CEST: If interested in more detail, see the attached demo.===

In LibreOffice since V5.2 (partly working), completely fixed with about V 5.4.4 V5.3.3.2 there is a fucntion allowing a different approach by a slightly simpler formula:

Code: Select all

=TEXTJOIN("";0;C4:C14)
(TEXTJOIN is not yet specified in OpenFormula.)
Attachments
getHermitDemo.ods
(19.2 KiB) Downloaded 65 times
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
Post Reply