Microsoft
Software
Hardware
Network
Question : SUM with IFs
If I have two columns like in the below image, what formula can I use to sum all the "Yes" rows in one cell, all the "No" rows in another?
Something like: =IF(M10="No",L10,0)+IF(M11
="No",L11,
0)+IF(M12=
"No",L12,0
)+IF(M13="
No",L13,0)
+IF(M14="N
o",L14,0)+
IF(M15="No
",L15,0)+I
F(M16="No"
,L16,0)+IF
(M17="No",
L17,0)+IF(
M18="No",L
18,0)
but simplier?
Answer : SUM with IFs
=sumif(NONBILABLECOLUM, CRITERIA, SUMRANGE)
if the exampe you provided are using the columns you said then should be like this
=sumif(M10:M20,"No",L10:L2
0)
=sumif(M10:M20, "Yes", L10:L20)
Random Solutions
VBA - Calling a function from outside a Private Sub
using cast and case...
MS Access add image to form at runtime
Novell Zenworks 10 vs MS System Center Essentials 2007
How can I retrieve the HTML source from a web page at a certain URL?
dateadd function returns weekends even when weekday "w" is specified
How to import data into excel sheet from remote unix box.
Can someone suggest the easiest way to print 1099-R Forms in MS Word
UserForm Initialization
How to make all the controls readonly at runtime in c# windows form