The If Function
The If Function
Legal Disclaimer
Table of Contents
IF
IFERROR
IFNA
SUMIFS
COUNTIFS
AVERAGEIFS
Instructions
tion allows you to retrieve results based on a condition being
TRUE or false
et started, Click File > Save As > Download a Copy
of Contents
Conditional function for decision-making in Excel formulas.
Handles errors, returns an alternative value on failure.
Specifically handles #N/A errors in Excel.
Sums values based on multiple specified conditions.
Counts cells meeting multiple specified conditions
Averages values based on multiple specified conditions
INSTRUCTIONS
IF
Date Revenue Gross Margin Gross Margin > 50%
Jan-23 249,966 52% 1.00
Feb-23 64,016 92%
Mar-23 170,039 35%
Apr-23 101,886 67%
May-23 227,285 1%
Jun-23 279,519 9%
Jul-23 55,532 93%
Aug-23 110,475 99%
Sep-23 158,081 30%
Oct-23 70,173 17%
Nov-23 231,136 35%
Dec-23 176,975 14%
Sum #DIV/0!
SOLVE THIS PROBLEM
IFERROR
0.41
IFNA
Departments
Advertising & Marketing
Software & Tech
Payroll
Other G&A
$236,666
$298,998
Total 1,640,000
=SUM(K3:K12)
SUMIF
Cash Jan-23 Feb-23 Mar-23
Cash In 172,944
Cash Out 121,946
=SUMIF($K$22:$K$32,$J19,M$22:M$32)
Account Net Cash Jan-23 Feb-23 Mar-23
Revenue Cash In 165,000 190,000 170,000
COGS Cash Out 57,750 66,500 59,500
Gross Profit 107,250 123,500 110,500
Advertising & Marketing Cash Out 19,671 28,126 12,473
Software & Tech Cash Out 15,882 15,521 22,309
Payroll Cash Out 4,040 13,452 15,057
Other G&A Cash Out 24,603 11,913 13,865
Total Operating Expenses 64,196 69,012 63,704
Net Operating Income 43,054 54,488 46,796
Other Income / (loss) Cash In 7,944 7,264 3,522
Net Income 35,110 47,224 43,274
SUMIFS
Department Category Jan-23 Feb-23
Select → Engineering Payroll 14,021
=SUMIFS(N$39:N$44,$K$39:$K$44,$K36,$L$39:$L$44,$L36)
Account Department Category Jan-23 Feb-23
Software Consultants Engineering Payroll 14,021 59,485
Travel Sales & MarketingTravel 70,941 66,471
Legal Fees G&A Payroll 36,245 1,145
Operations Salary G&A Payroll 21,824 12,419
Sales Software Sales & MarketingSoftware & Tech 57,293 37,718
Recruiting Fees Engineering Professional Fees 6,583 74,154
Mar-23
11,932
75,924
72,841
22,019
72,894
48,856
INSTRUCTIONS
COUNTIFS
Date Budget Department
Jan-23 $164,204 Advertising & Marketing
Feb-23 $174,393 Software & Tech
Mar-23 $181,127 Payroll
COUNT Result 4
COUNTIF
Condition Result
<$200,000 4
COUNTIFS
Condition 1 Condition 2 Result
AVERAGE 202,990
AVERAGEIF AVERAGEIF
Result Advertising & Marketing
Advertising & Marketing
39,164
AVERAGEIFS AVERAGEIFS
Result Other G&A
Other G&A
39,220
> 30,000 < 20,000
Result
Try above
Result
Try above