Im Rahmen meiner Abschlussarbeit muss ich Daten von Bäumen auswerten, hier geht es jetzt um den Durchschnittswinkel aller umliegenden Gebäude in einem Radius von 50m.
Ich habe eine Tabelle, die folgendermaßen aussieht:
B = Baum im Jahr 1,2,3,4,5
Baum = Baumnummer
Gebäude = in der Nähe befindliches Gebäude
Winkel = Winkel, in dem das Gebäude zum Baum liegt
Code: Alles auswählen
B Baum Gebaeude Winkel Durchschnittssinus
3,1 3 171844 -141,028031263721 => Formel mit allen Winkeln "Baum = 3"
3,2 3 171844 -141,028031263721 => Formel mit allen Winkeln "Baum = 3"
3,3 3 171844 -141,028031263721 => Formel mit allen Winkeln "Baum = 3"
3,4 3 171844 -141,028031263721 => Formel mit allen Winkeln "Baum = 3"
3,5 3 171844 -141,028031263721 => Formel mit allen Winkeln "Baum = 3"
3,1 3 171845 -177,935824678879 => Formel mit allen Winkeln "Baum = 3"
3,2 3 171845 -177,935824678879 => Formel mit allen Winkeln "Baum = 3"
3,3 3 171845 -177,935824678879 => Formel mit allen Winkeln "Baum = 3"
3,4 3 171845 -177,935824678879 => Formel mit allen Winkeln "Baum = 3"
3,5 3 171845 -177,935824678879 => Formel mit allen Winkeln "Baum = 3"
3,1 3 171846 -173,087625022307 => Formel mit allen Winkeln "Baum = 3"
3,2 3 171846 -173,087625022307 => Formel mit allen Winkeln "Baum = 3"
3,3 3 171846 -173,087625022307 => Formel mit allen Winkeln "Baum = 3"
3,4 3 171846 -173,087625022307 => Formel mit allen Winkeln "Baum = 3"
3,5 3 171846 -173,087625022307 => Formel mit allen Winkeln "Baum = 3"
3,1 3 171847 -158,913939252057 => Formel mit allen Winkeln "Baum = 3"
3,2 3 171847 -158,913939252057 => Formel mit allen Winkeln "Baum = 3"
3,3 3 171847 -158,913939252057 => Formel mit allen Winkeln "Baum = 3"
3,4 3 171847 -158,913939252057 => Formel mit allen Winkeln "Baum = 3"
3,5 3 171847 -158,913939252057 => Formel mit allen Winkeln "Baum = 3"
3,1 3 171848 -92,7287929674749 => Formel mit allen Winkeln "Baum = 3"
3,2 3 171848 -92,7287929674749 => Formel mit allen Winkeln "Baum = 3"
3,3 3 171848 -92,7287929674749 => Formel mit allen Winkeln "Baum = 3"
3,4 3 171848 -92,7287929674749 => Formel mit allen Winkeln "Baum = 3"
3,5 3 171848 -92,7287929674749 => Formel mit allen Winkeln "Baum = 3"
4,1 4 58 3,81298954921288 => Formel mit allen Winkeln "Baum = 4"
4,2 4 58 3,81298954921288 => Formel mit allen Winkeln "Baum = 4"
4,3 4 58 3,81298954921288 => Formel mit allen Winkeln "Baum = 4"
4,4 4 58 3,81298954921288 => Formel mit allen Winkeln "Baum = 4"
4,5 4 58 3,81298954921288 => Formel mit allen Winkeln "Baum = 4"
Ich muss eine weitere Spalte "Durchschnittssinus" einfügen, in der ich in einem ersten Schritt den Durchschnittssinuswert aller umliegenden Gebäudewinkel eines jeden Baumes berechne.
Also z.B. bei 3 Winkeln: s = 1/3 ( Sin(a)+Sin(b)+Sin(c) )
Den ersten Teil habe ich über ZÄHLENWENN gelöst: s = 1 / ZÄHLENWENN(Bereich, Baumnummer) = 1/3
Ich will Calc nun Folgendes mitteilen:
Suche alle Zellen, in denen die Baumnummer 3 steht => nimm die entsprechenden Winkel dazu und setze sie als a,b,c (ggf. auch: d,e,f,g,h,i,j,[...]) in meine Formel ein.
Dann geh zur nächsten Zeile und mach dasselbe. etc.
Ein Problem ist natürlich, dass jeder Baum unterschiedlich viele umliegende Gebäude und damit Winkel haben kann...
Hat Jemand eine Idee, wie ich dieses Problem am Besten lösen könnte?
Vielen Dank!