The IFS function checks if one or more conditions are met and returns a value corresponding to the first TRUE condition. IFS can replace multiple nested IF statements,
And can be read more easily with multiple conditions.
grammar
IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], [logical_test3, value_if_true3],…)
logical_test1: (required), the condition that the result is TRUE or FALSE.
value_if_true1: (required) returns the result if logical_test1 evaluates to TRUE. Can be empty.
logical_test2… logical_test127: (optional) specifies the condition that the result is TRUE or FALSE.
value_if_true2… ,value_if_true127: (optional) returns the result if logical_testN evaluates to TRUE.
Each value_if_trueN corresponds to a condition logical_testN. Can be empty.
Instructions
The IFS function allows you to test up to 127 different conditions.
■ Example: =IFS(A1=1,1,A1=2,2,A1=3,3)
If (A1 equals 1, then 1 is displayed, if A1 equals 2, then 2, or if A1 equals 3, then 3).
■ It is generally not recommended to use too many conditions for an IF or IFS statement, because multiple conditions need to be entered in the correct order, which makes it difficult to build, test, and update
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/