IFS Function

Jeffrey Mahoney

Well-known Member
Joined
May 31, 2015
Messages
3,142
Office Version
  1. 365
Platform
  1. Windows
How efficient is the IFS function. When I evaluate a formula with IFS, it seems to evaluate all the pairs of logical tests and values BEFORE providing the result even though the the first logical test is true. Is that true for the real calculation or is that a bug/feature of the evaluate formula tool?

Nested IF statements may have there place but are much harder to read. Is the IFS function less efficient?

@Fluff
Fluff said: "Personally I would avoid using the IFS function on something like this as it is less efficient (and therefore slower) than nested IF functions."
Formula add on new Function
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Is the IFS function less efficient?
Yes it is, it will evaluate absolutely everything & then find the 1st criteria which returns True, whilst a nested IF function will only evaluate what it needs to.
How bad IFS is will depend on what you are doing & how many cells contain the formula.
 
Upvote 0
Solution
First, Thank you for the response.

I can't express enough dismay at the lack of forethought the MS team used on that. Could there be a good reason to evaluate all the logical tests first? Nope!
 
Upvote 0

Forum statistics

Threads
1,223,929
Messages
6,175,457
Members
452,643
Latest member
gjcase

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top