(Again: There is no [not yet an] OO / AOO 4.2.8.2. "estatistics" is supposed to use V4.2.8.2 of LibreOffice.)
Code: Select all
SMALL(IF(ISTEXT(V$4:V$1002)<>1;ROW(B$4:B$1000));ROWS(B$4:B372)))
Don't you think you should study the fundamentals a bit first?
A Remarks concerning the syntax.
1. The above is not a formula because it is missing the leading "=". If thought to be evaluated in array mode it is also missing the surrounding pair of curly brackets.
2. It cannot be a correct formula in addition because the parentheses do not pair.
3. If we read the part
Code: Select all
IF(ISTEXT(V$4:V$1002)<>1;ROW(B$4:B$1000))
including the final closing parenthese we get an incomplete alternative. (The ELSE part will therefore always evaluate to FALSE. This a remark concerning the semantics.)
4. If we omit that closing parenthese, the IF expression will read
Code: Select all
IF(ISTEXT(V$4:V$1002)<>1;ROW(B$4:B$1000);ROWS(B$4:B372))
and will be
the only parameter of SMALL. SMALL, however requires a second parameter.
B Semantics
1. As SMALL requires an array (to be exact: NumberSequenceList) as its first parameter, the so called formula you posted is supposed to only make sense if evaluated in array mode.
Otherwise at least the condition would evaluate in intersection mode.
If the IF expression passes an array (NumberSequenceList?) nonetheless to SMALL in this case it is not clear to me how to disambiguate the effects of IF in specific cases. It surely cannot work this way outside SMALL.
2. "SMALL(ROW(B$4:B$1000);k)" has the much simpler equivalent "3+k" for k=1 (1) 997. "SMALL(ROW(B$4:B372);j)" ("$" missing?) again equals "3+j" but now restricted to j=1 (1) 369.
3. Thus the experimentally rectified formula "=SMALL(IF(ISTEXT(V$4:V$1002)<>1;ROW(B$4:B$1000);ROWS(B$4:B372);n)" should evaluate to 3+n for at least n=1 (1) 369, and at most n=1 (1) 997. The exact limit depending on the contents of column V.
C Remarks
1. It often is more promising to ask about something you want to achieve instead of expecting contributors to follow a possibly fruitless approach.
2. I am open for every hint showing me in what way my above statements are wrong (or based on a misunderstanding.)
3. Also see bug tdf#95226 (
https://bugs.documentfoundation.org/sho ... i?id=95226). The patch should work in LibO V4.4.6 and higher.
On Windows 10: LibreOffice 25.8.4 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München