SUMIF function - Zoho Sheet - Help Guide

SUMIF

Returns the sum of the given numbers based on a specified condition.

 

Syntax

 

SUMIF(test_range; condition; sum_range)

test_range: The range to test. Eg., A2:A8

condition: The condition may be:

A number, such as 15

An expression, such as 2/3 or SQRT(A1)

A text string, such as "lockers"

Other than testing for similar values in test_range for the given condition, SUMIF function also allows the use of >, <, >=, <=, =, <> in the condition.

sum_range: The range containing the values to add. Eg., D2:D8

 

Remarks

  • If you don't remember the complete text you need to search for, use  .* .?  and  instead.

           .* - Can be used to replace any number of characters. For example.,  Zyl.*  finds  Zylker
           .? - Can be used to replace a single character. For example,.,  Karthi.?  finds  Karthik  and  Karthic

            / - Can be used to include *, ? and / in the search term. For example.,  Zylker/*  finds  Zylker*  and  Karthi.?/?  finds  Karthik?  and  Karthic?

Examples  

 

Formula

Result

=SUMIF(A2:A8;"Lockers";D2:D8)

$44,014

=SUMIF(A2:A8;"Portable Wardrobes";B2:B8)

633


Get a hands-on experience of the function in the embedded range below.   



Possible Errors

 

Errors

Meaning

#N/A!

  • The function could not find the value it was asked to look for. Commonly occurs in VLOOKUP and similar functions.

#NAME!

  • The function name is incorrect or invalid.

  • The given defined name (if any) is invalid.

  • There is a typo in the defined name used in the function.

  • Double quotes are missing for text values in the function.

  • Colon missing in a cell range reference.

#VALUE!

  • The given argument's data type is incorrect or invalid.
    For example, the function =DATE(A1:A3) will return a #VALUE error when a text value is present in the range.

#REF!

  • The given cell reference is incorrect or invalid. This error may occur when a cell/range has been deleted, moved, or pasted over.

 

Similar Functions