Hi, I am working on a dart calculator and would like unused cells with formulas to be blank or empty until inputted into.
I was expecting this formula =IF(H10>=0;(H9+H10)/2;(""))
to return a blank cell if nothing to calculate but it doesn’t. I am not sure why. Anyone know? Tks P
Working on a 2020 Mac Mini M1 running Ventura 13.1 with Apache OpenOffice 4.1.11
[Solved] Formula to return a blank/empty cell
[Solved] Formula to return a blank/empty cell
Last edited by Bozos_Boy on Sat Nov 25, 2023 1:17 am, edited 1 time in total.
openoffice 4.1.2 on macOS 10.13.3
-
- Posts: 318
- Joined: Sun Sep 06, 2020 8:27 am
Re: formula to return a blank/empty cell
A formula will return a value, not "a cell".
In your case the formula will either calculate the average of two cells or an "empty string". The latter may be invisible, but the cell contains a formula and shows an invisible value, so the cell is not blank.
If you return "" you should also test this like IF( H10<>"" ; ...
OpenOffice 3.1 on Windows Vista
Re: formula to return a blank/empty cell
The parentheses around "" (the empty string) in the formula are superfluous, but should not cause an error.
Always report what actually happens. Then tell what you expected to happen.
Best also attach a simplified example showing your issue.
The formula should return now the empty text (string of length 0). What does actually happen?
Concerning the terms: "Blank" cells are cells that neither contain a number (what format ever) nor a text nor a formula. Therefore a formula can never result in a blank cell.
Always report what actually happens. Then tell what you expected to happen.
Best also attach a simplified example showing your issue.
Are you talking here of the case H10<0 ?Bozos_Boy wrote: ... if nothing to calculate ...
The formula should return now the empty text (string of length 0). What does actually happen?
Concerning the terms: "Blank" cells are cells that neither contain a number (what format ever) nor a text nor a formula. Therefore a formula can never result in a blank cell.
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
---
Lupp from München
Re: formula to return a blank/empty cell
This seemed to do what I want it to do. tksMountaineer wrote: ↑Fri Nov 24, 2023 11:51 pmIf you return "" you should also test this like IF( H10<>"" ; ...
openoffice 4.1.2 on macOS 10.13.3