Hallo Boris,
Boris Kirkorowicz schrieb:
Hallo,
ich habe mit mit der Funktion VERGLEICH() beschäftigt und dabei
festgestellt, dass es unterschiedliche Ergebnisse liefert in
Abhängigkeit davon, ob der Input aus manuell eingegebenen Werten oder
aus Formelberechnungen stammt.
Hier zur Verdeutlichung, was ich meine:
In Spalte A soll nach dem Wert "1" (als Zahl) gesucht werden. Die Formel
dazu in B5  und C5 (und darunter gefüllt) lautet:
=VERGLEICH(1;A$1:A5;1)
=VERGLEICH(1;A$1:A6;1)
Warum VERGLEICH nicht geht, hat dir Stefan ja schon geschrieben. Hier 
meine Alternative:
In B1 eintragen =WENN(A1=1;1;0)
In B2 die Formel =MAX(WENN(A2=1;ZEILE();0);B1)
Dann durch Ziehen nach unten kopieren.
Der Index der letzten 1 wird solange aus der vorigen B-Zelle übernommen, 
bis in der aktuellen Zeile in A eine 1 steht. Dann wird diese aktuelle 
Zeilennummer genommen, weil sie ja größer ist als der alte Index.
MfG
Regina
        A       B       C
...     ...     ...     ...
5               4       #NV
6               4       #NV
7               4       #NV
8               4       #NV
9               4       #NV
10      1       10      10
11              10      10
12              10      10
13              10      10
14              10      10
15      1       15      10
16              15      10
17              15      10
18              15      10
19              15      10
20              15      15
21      1       21      15
22              21      10
23              21      10
24              21      10
25              21      10
26      1       26      10
27              26      10
28              26      10
29              26      10
30              26      10
31      1       31      10
32              31      21
33              31      21
34              31      15
35              31      15
--
Informationen zum Abmelden: E-Mail an users+help@de.libreoffice.org
Tips zu Listenmails: http://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: http://listarchives.libreoffice.org/de/users/
Alle E-Mails an diese Liste werden unlöschbar öffentlich archiviert
Context
   
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.