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
how to export datatable to Excel using Save dialog in VB.NET
Outlook 2007 Corrupt ost file
Microsoft® Hyper-V" Server 2008 R2 is out, and now ?
Need a MACRO to export an excel spreadsheet to word but only wish for certain columns in spreadsheet to be exported.
TreeView BOM
Virtualizing Backup Exec 12.5 on Hyper-V
Runtime error 2220
Save an Access Report as a PDF
Is there a way to unlock sql 2000 processes rather than killing it?
C# XML data showing System.Xml.XmlElement instead of the values