Count formula counts 1 when table is blank or only has 1 row

CascadeDiver

Board Regular
Joined
Apr 10, 2020
Messages
62
Office Version
  1. 2016
Platform
  1. Windows
A strange situation that I cannot quite place. I have an array formula

{=COUNT(IF((Table1[Date]>=[@Month])*(Table1[Date]<=EOMONTH([@Month],0)),IF(Table1[[Person 1]:[Person 2]]=Table2[[#Headers],[Janet]],Table1[[D1AP]:[D2AP]])))}

If Table 1 is empty and has one row in the table the formula results in 1 across all columns in Table 2
If Table 1 has one row of data and only one table row the formula results in 1 across all columns in Table 2 except for the in the month row the data is pertaining to
If Table 1 is empty and has two rows in the table the formula results in "" across all columns in Table 2
If Table 1 has one row of data but has two rows in the table (Second one being blank) all formulas in Table 2 are correct. Showing "" when necessary and the count result where necessary
If Table 1 has two or more rows of data all formulas in Table 2 are correct. Showing "" when necessary and the count result where necessary
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top