Evaluates a value (called an expression) from a list of values and returns the result corresponding to the first matching value.
If it does not match, an optional default value may be returned.
grammar
SWITCH(expression, value1, result1, [default value or value 2, result2],… [Default or value3, result3])
Expressions (required) Expressions are values (such as numbers, dates, or text) that will compare value1… value126.
■ Worth 1… value126 ValueN is a value that will be compared to an expression.
S result1… result126 ResultN is the value to return if the corresponding valueN parameter matches the expression.
ResultN, and must be provided for each corresponding valueN parameter.
■ Default (optional) The default value is the value returned if there is no match in the valueN expression.
There is no corresponding resultN expression to identify the default parameter (see example). The default value must be the last argument in the function.
■ Because the function is limited to 254 parameters, you can use pairs of parameter values and results up to 126.
I want to create a clean, concise and efficient office reference manual, in order to maintain a good reference experience, I did not add any third-party advertisements in my blog, of course, if you are willing, you can watch the following video, it can bring me some income, so that I can better maintain the server to provide higher quality service, thank you for your help and support.
You can choose any link below to watch my videos and I will earn some money to strengthen the site and resist DDOS attacks that may happen at any time, thank you for your support!
(Please note: Please do not maliciously click on links or video ads to increase invalid traffic, as this can result in lower or no revenue.)
Learn to consult the manual video
(Will be released in the later period with the consult the manual article, please pay attention.)
My Febspot video list (Learn after-school relaxation videos)
https://suu.us/sponsor
My Febspot video home page
https://www.febspot.com/leet4477/