I have a curious question about using the "OR" in an excel SUMIF.
Basically, in a
SUMIF(A:A,"Cat" OR "Dog", C1:C10)
How can I use the OR function in an excel SUMIF function?
You need to wrap the different OR parameters into curly brackets and enclose the whole Sumif in a SUM function, because Sumif will return an array of values that need to be summed up.
Also, the two ranges need to be the same size.
=SUM(SUMIF(A1:A10,{"cat","dog"}, C1:C10))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.