Kleinsten Wert bestimmen

Copper Contributor
Hallo. Ich habe eine Tabelle erstellt bei der ich über die bedingte Formatierung die drei größten und die drei kleinsten Wert bunt hinterlegen möchte. Ausgeblendete Zeilen sollen nicht betrachtet werden.
Dies funktioniert bei mir aber nur bei den größten Werten. Dort habe ich die Werte für die zellen Q7:Q246 bestimmt.

Dazu habe ich in Spalte AA =TEILERGEBNIS(9;Q7) und diese Funktion dann für alle Zeilen angegeben. In Zelle AB7 habe ich die Zahl 3 eingetragen. Nun habe ich die Zellen Q7:Q246 markiert. -> bedingte Formatierung -> Formel: =ZÄHLENWENN($AA$7:$AA$246;">"&AA7)<$AB$7 und dann halt passende Farbe einstellen. Hier funktioniert das auch...

Bei den kleinsten Werten habe ich in der bedingten Funktion eingegeben: =ZÄHLENWENN($AA$7:$AA$246;"<"&AA7)<$AB$7 hier werden mir auch die drei kleinsten Werte angezeigt, allerdings funktioniert das hier nur bei allen Zellen. Sprich, wenn ich Zeilen ausblenden werden diese trotzdem mit berücksichtigt. Ich möchte allerdings das nur die eingeblendet Zahlen berücksichtigt werden.
Habt ihr eine Idee wie das funktionieren kann? Bei der Funktion für die größten Werte funktioniert es mit der angegebenen Funktion.
Schonmal vielen Dank!
1 Reply

Hi @Lis981965 ,

I notice  that the automatic translation bungled up your question quite a bit, so here is the translation with some adjustments, especially the formulas.

 

Hello. I've created a table where I want to use conditional formatting to highlight the three largest and three smallest values. Hidden rows should be ignored.
But for me, this only works for the largest values. There I determined the values for cells Q7:Q246.

For this purpose, I have in column AA =Subtotal(9; Q7) and this function is then specified for all rows. In cell AB7 I entered the number 3. Now I have marked the cells Q7:Q246. -> conditional formatting -> formula:

=Countif($AA$7:$AA$246;">"&AA7)<$AB$7

 

and then apply the format. That also works fine ...

For the smallest values, I entered in the conditional function:

=Countif($AA$7:$AA$246;"<"&AA7)<$AB$7

 

This highlights the smallest three values, but only for all rows. In other words, if I hide rows, they will still be taken into account. However, I would like to take this into account only the figures shown.
Do you have an idea how this can work? For the function for the largest values, it works with the specified function.
Thank you very much!