Forum Discussion
anupambit1797
Mar 10, 2023Iron Contributor
XOR in Text
Dear Experts, Which function shall I use to do the XOR between two strings? If , I would have 0/1 then Bitxor does the job, but with "text" not sure how to use.. I tried XOR but ...
Riny_van_Eekelen
Mar 10, 2023Platinum Contributor
anupambit1797 Perhaps this?
- anupambit1797Mar 10, 2023Iron ContributorThanks Riny, I want something like, so in output not the logical value but the values from column A&B only:-
Even Even Even
Even Odd Odd
Odd Even Odd
Odd Odd Even- Riny_van_EekelenMar 10, 2023Platinum Contributor
Sorry, but I don't follow. XOR does work with the TRUE and FALSE logic and you can make it show as 1 and 0, for instance by using =--XOR(xxx, xxx).
That's why it works with numbers. 0 is seen as FALSE and any other number, so not only the number 1, is seen as TRUE.
You could mimic that behavior for texts with a simple IF formula, as follows:
- anupambit1797Mar 16, 2023Iron ContributorThanks Riny for your response, yes this helps !!