The syntax to use a criteria can vary if you want to make it depend on another cell.
Here are various examples of using the SUMIF() function in Google Spreadsheets and/or Excel.
Sum cells in column B if column A = 10. =SUMIF(A1:A10,10,B1:B10)
Sum cells in column B if column A = what's in A2. =SUMIF(A1:A10,A2,B1:B10)
Sum cells in column B if column A > 10. =SUMIF(A1:A10,">10",B1:B10) =SUMIF(A1:A10,">"&10,B1:B10) Sum cells in column B if column A > what's in A2. =SUMIF(A1:A10,">"&A2,B1:B10)
Excel, Hyperion, Pinball, and Open Suggestions (Things that bug me, things that I'd like to see improved or fixed, things that need to be set straight).
Showing posts with label Functions. Show all posts
Showing posts with label Functions. Show all posts
Wednesday, November 2, 2011
Friday, February 11, 2011
SUMIF() Criteria Example
The syntax to use a criteria can vary if you want to make it depend on another cell. Here are various examples of using the SUMIF() function in Google Spreadsheets and/or Excel.
Sum cells in column B if column A = 10.
=SUMIF(A1:A10,10,B1:B10)
Sum cells in column B if column A = what's in A2.
=SUMIF(A1:A10,A2,B1:B10)
Sum cells in column B if column A > 10.
=SUMIF(A1:A10,">10",B1:B10)
=SUMIF(A1:A10,">"&10,B1:B10)
Sum cells in column B if column A > what's in A2.
=SUMIF(A1:A10,">"&A2,B1:B10)
in reference to: Function list : Functions - Google Docs Help (view on Google Sidewiki)
Sum cells in column B if column A = 10.
=SUMIF(A1:A10,10,B1:B10)
Sum cells in column B if column A = what's in A2.
=SUMIF(A1:A10,A2,B1:B10)
Sum cells in column B if column A > 10.
=SUMIF(A1:A10,">10",B1:B10)
=SUMIF(A1:A10,">"&10,B1:B10)
Sum cells in column B if column A > what's in A2.
=SUMIF(A1:A10,">"&A2,B1:B10)
in reference to: Function list : Functions - Google Docs Help (view on Google Sidewiki)
Labels:
Criteria,
Excel,
Functions,
Google Spreadsheets,
SUMIF()
Subscribe to:
Posts (Atom)