28 HBMA RCM AD ISOR | QUARTER 1 | 2020
there is only one closing parentheses in the IFS example
compared to the four closing parentheses in the nested IF
example. Keeping track of the correct number of parentheses
can be a challenge with nested formulas. IFS evaluates the
conditions in order. The first time a condition evaluates to
true, IFS stops testing and returns the related value if true.
Given this logic, it is important to prioritize the conditions an
IFS statement in the formula carefully to ensure that the
function returns the results you expect.
The other important difference between nested IF functions
and IFS is what to do if a condition is false. IF statements,
nested or not, require what Excel calls a “value if false.” In
other words, what should the IF function do if the logical test
is false? The IFS function is different. The IFS function is only
a series of logical tests and what to do if the test is true.
There are no instructions or default if the logical test is false.
Look at my IFS example formula again:
=IFS(D2>500,"Yes",C2="Over 90 Days", "Yes", C2 = "0-30
Days", "No", B2="Medicare","Yes",TRUE, "No")
Notice how the very last test is TRUE. The keyword TRUE
simply tells Excel to evaluate this logical test as true. If none
of the logical tests in an IFS function are true, IFS will return
an #N/A error message. By making the last logical test TRUE,
you can control what happens if none of the preceding tests
are true. Since the IFS statement evaluates the conditions
in order, always make TRUE your last condition, and then put
the default value to return if all other tests are false.
The new IFS function makes complex logic easier to read
and document. Microsoft released a new SWITCH function
that also makes complex logic easier. Watch for more infor-
mation on SWITCH in the next issue of RCM Advisor. Please
review more function examples in the Excel Video playlists
at
mooresolutionsinc.com n
Nate Moore, CPA, MBA, FACMPE, writes custom SQL Server code
to mine practice management data for analysis in Excel, web
pages, and via email. Nate’s second book, “Better Data, Better
Decisions – The SQL: Business Intelligence for Medical Practices,”
was recently published by MGMA. His free Excel videos have been
viewed over 2 million times and are available at mooresolu-
tionsinc.com. Attend the HBMA Annual Conference to get hands-
on training with Moore.
SOFTWARE TALK
FIGURE 3