Date: prev next · Thread: first prev next last
2026 Archives by date, by thread · List index


Hi James,

James schrieb am 06.04.2026 um 06:15:
A1 contains the number 14023.
B1 contains the formula =SWITCH(AND(A1>5000,A1<15000),20%,A1>15000,30%)
B1 is showing 30% when I expected 20%.
What am I doing wrong?

SWITCH is the wrong function. Use IFS instead.
=IFS(AND(A1>5000,A1<15000),20%,A1>15000,30%)

Kind regards,
Regina


--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.