besteht die Möglichkeit das Excel nur Felder aus einer Spalte zählt, die mit dem Farbtopf z.B. gelb markiert sind?
Wäre für Hilfestellung dankbar!
Viele Grüße und eine angenehme Woche
Frank
A | B | C | D | |
25 | Daten | Index Füllfarbe |
| Summe aus gelben Zellen |
26 | 3 | 0 |
| 21 |
27 | 5 | 6 |
|
|
28 | 6 | 0 |
|
|
29 | 5 | 6 |
|
|
30 | 4 | 0 |
|
|
31 | 3 | 0 |
|
|
32 | 2 | 6 |
|
|
33 | 3 | 6 |
|
|
34 | 4 | 0 |
|
|
35 | 5 | 0 |
|
|
36 | 6 | 6 |
|
|
37 | 7 | 0 |
|
|
Sub Font_Color()
Dim x As Long, j As Long
For x = 1 To Len(ActiveCell.Value)
With ActiveCell.Characters(Start:=x, Length:=1).Font
If .ColorIndex = 5 Then j = j + 1
End With
Next
MsgBox j & " Zeichen haben colorindex 5"
End Sub
Gruß Matthias