COUNTIFS with OR conditions

%3CLINGO-SUB%20id%3D%22lingo-sub-1765173%22%20slang%3D%22en-US%22%3ECOUNTIFS%20with%20OR%20conditions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1765173%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20count%20text%20values%20using%20the%20following%20formula.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DCOUNTIFS(Roster!%24C%3A%24C%2C%20%22Female%22%2C%20Roster!%24D%3A%24D%2C%7B%3CSTRONG%3E%3CFONT%20color%3D%22%23333399%22%3E%22New%20Freshman%22%2C%22Other%20Transfer%22%2C%22SUNY%2FCUNY%20Transfer%22%3C%2FFONT%3E%3C%2FSTRONG%3E%7D%2CRoster!%24F%3A%24F%2C%20%24B26%2C%20Roster!%24G%3A%24G%2C%22LLDB%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20the%20result%20to%20be%20the%20sum%20if%20a%20person%20is%20listed%20as%20a%26nbsp%3B%3CSTRONG%3E%3CFONT%20color%3D%22%23333399%22%3E%22New%20Freshman%22%3C%2FFONT%3E%3C%2FSTRONG%3E%3CFONT%20color%3D%22%23333399%22%3E%26nbsp%3Bor%26nbsp%3B%3C%2FFONT%3E%3CSTRONG%3E%3CFONT%20color%3D%22%23333399%22%3E%22Other%3C%2FFONT%3E%3CFONT%20color%3D%22%23333399%22%3E%20Transfer%22%3C%2FFONT%3E%3C%2FSTRONG%3E%3CFONT%20color%3D%22%23333399%22%3E%26nbsp%3Bor%26nbsp%3B%3C%2FFONT%3E%3CSTRONG%3E%3CFONT%20color%3D%22%23333399%22%3E%22High%20School%3C%2FFONT%3E%3CFONT%20color%3D%22%23333399%22%3E%26nbsp%3BTr%3C%2FFONT%3E%3CFONT%20color%3D%22%23333399%22%3Eansfer%22%3C%2FFONT%3E%3C%2FSTRONG%3E%3CFONT%20color%3D%22%23000000%22%3E.%26nbsp%3B%20What%20I%20am%20getting%20though%20is%20just%20a%20count%20of%26nbsp%3B%3CSTRONG%3ENew%20Freshman%3C%2FSTRONG%3E.%26nbsp%3B%20If%20I%20move%26nbsp%3B%3CSTRONG%3EHigh%20School%20Transfer%26nbsp%3B%3C%2FSTRONG%3Efirst%2C%20my%20results%20is%20just%20the%20count%20of%26nbsp%3B%3CSTRONG%3EHigh%20School%20Transfer%3C%2FSTRONG%3E.%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23000000%22%3EAny%20assistance%20with%20this%20formula%20would%20be%20appreciated.%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1765173%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Etraining%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1765344%22%20slang%3D%22en-US%22%3ERe%3A%20COUNTIFS%20with%20OR%20conditions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1765344%22%20slang%3D%22en-US%22%3ETry%20wrapping%20it%20with%20the%20sum%20function%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3DSUM(COUNTIFS(Roster!%24C%3A%24C%2C%20%22Female%22%2C%20Roster!%24D%3A%24D%2C%7B%22New%20Freshman%22%2C%22Other%20Transfer%22%2C%22SUNY%2FCUNY%20Transfer%22%7D%2CRoster!%24F%3A%24F%2C%20%24B26%2C%20Roster!%24G%3A%24G%2C%22LLDB%22))%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

I am trying to count text values using the following formula.

 

=COUNTIFS(Roster!$C:$C, "Female", Roster!$D:$D,{"New Freshman","Other Transfer","SUNY/CUNY Transfer"},Roster!$F:$F, $B26, Roster!$G:$G,"LLDB")

 

I want the result to be the sum if a person is listed as a "New Freshman" or "Other Transfer" or "High School Transfer".  What I am getting though is just a count of New Freshman.  If I move High School Transfer first, my results is just the count of High School Transfer.

 

Any assistance with this formula would be appreciated.

 

Thanks in advance.

2 Replies
Highlighted
Try wrapping it with the sum function:

=SUM(COUNTIFS(Roster!$C:$C, "Female", Roster!$D:$D,{"New Freshman","Other Transfer","SUNY/CUNY Transfer"},Roster!$F:$F, $B26, Roster!$G:$G,"LLDB"))

Highlighted

@fishnejt 

As a comment, COUNTIFS returns an array of count for each value in the list of {"New Freshman","Other Transfer","SUNY/CUNY Transfer"} 

If you are on Excel which supports dynamic arrays, result will be visible as array. If not, Excel silently takes only first element from this array and shows it.

 

In both cases to receive all counts array shall be summed as @JMB17 suggested.