[Solved] Count criteria in multiple columns with blanks

Discuss the spreadsheet application
Post Reply
abelt
Posts: 3
Joined: Fri Mar 26, 2021 10:25 pm

[Solved] Count criteria in multiple columns with blanks

Post by abelt »

I need to get a total when A2:A25 =1 AND E2:E25 is blank. How can I do this?
Last edited by robleyd on Sat Mar 27, 2021 12:11 am, edited 1 time in total.
Reason: Tagged [Solved]; add green tick
OpenOffice 4.1.7 on Windows 10 Pro
FJCC
Moderator
Posts: 9274
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Count criteria in multiple columns with blanks

Post by FJCC »

The following formula will sum F2:F25 in rows where column A = 1 and column E is blank.

Code: Select all

=SUMPRODUCT(A2:A25=1;ISBLANK(E2:E25);F2:F25)
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
abelt
Posts: 3
Joined: Fri Mar 26, 2021 10:25 pm

Re: Count criteria in multiple columns with blanks

Post by abelt »

Thanks, but it didn't work. It should return 1. My first column is either 1, 2, or 3. The second criteria is either text or blank. I need a total if the criteria is both a 1 and blank. In my sample, one row has a 1 in column A, and the cell in column E blank.
Last edited by abelt on Fri Mar 26, 2021 11:20 pm, edited 1 time in total.
OpenOffice 4.1.7 on Windows 10 Pro
FJCC
Moderator
Posts: 9274
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Count criteria in multiple columns with blanks

Post by FJCC »

Do you mean that you want a count of the rows that have a 1 in column A and are blank in column E? That would be

Code: Select all

=SUMPRODUCT(A2:A25 = 1; ISBLANK(E2:E25))
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
abelt
Posts: 3
Joined: Fri Mar 26, 2021 10:25 pm

Re: Count criteria in multiple columns with blanks

Post by abelt »

Yes! Thank you :)
OpenOffice 4.1.7 on Windows 10 Pro
Post Reply