online 1
gast (50)

/ Forum / Tabellenkalkulation

TabellenkalkulationTabellenkalkulation

Fragevon Hofi76 vom 04.09.2020, 08:03 Options

XOR Funktion

Hallo Experten

ich würde in EXCEL eine XOR Funktion benötigen.
Weiß jemand ob es sowas fertig gibt, bzw. wie ich sie nachbauen kann?
DANKE
lg Hofi


Antwort schreiben

Antwort 1 von Saarbauer vom 04.09.2020, 08:21 Options

hallo,

in Excel oder in VBA?

Welche Excel-Version und welche Sprache.

In Deutsch mit Excel müsste es "Nicht(Oder (......))" sein und in VBA "Not(or(....))

Gruß

Helmut

Antwort 2 von Hofi76 vom 04.09.2020, 08:44 Options

Hallo
XOR ist nicht NOT(OR(...))
Wahrheitstabelle XOR
A B Ergebnis
0 0 0
0 1 1
1 0 1
1 1 0

Hofi

Antwort 3 von rainberg vom 04.09.2020, 09:13 Options

Hallo Hofi,

vielleicht hilft Dir folgender Code weiter.


Sub test()
    MsgBox 1 Xor 0
    MsgBox 1 Xor 1
    MsgBox 0 Xor 0
    MsgBox 0 Xor 1
End Sub


Gruß
Rainer

Antwort 4 von Marvin42 vom 04.09.2020, 09:21 Options

ODER(UND(NICHT(A),B),UND(A,NICHT(B)))

Antwort 5 von rainberg vom 04.09.2020, 09:27 Options

Hallo Hofi,

und noch ein Formelvorschlag.


=WENN(A1<>B1=WAHR;1;0)

Gruß
Rainer

Ähnliche Themen

Wenn Funktion
corsipo  05.05.2007 - 83 Hits - 6 Antworten

Wenn-Funktion
BloodyMary  25.05.2007 - 83 Hits - 3 Antworten

Wenn Funktion
Riva  30.06.2007 - 86 Hits - 9 Antworten

Excel, Funktion in Funktion
Pessimism  22.11.2007 - 120 Hits - 2 Antworten

Wenn-Funktion???
kiri  23.06.2008 - 144 Hits - 2 Antworten

Hinweis

Diese Frage ist schon etwas älter, Sie können daher nicht mehr auf sie antworten. Sollte Ihre Frage noch nicht gelöst sein, stellen Sie einfach eine neue Frage im Forum..

Neue Einträge

Version: supportware 1.9.150 / 10.06.2022, Startzeit:Mon Jan 26 09:21:55 2026