column count error

Ronderbecke

Board Regular
Joined
Oct 4, 2017
Messages
73
Currently, I am trying to count all the fields that have a date (some have links inserted to them and some don't) and I am getting an error message. My formula is:

=SUMPRODUCT(--(MOD(COLUMN(H12:FB)-COLUMN(H12),7)=0),--(LEN(H12:FB)>0),ISTEXT(H12:FB)+ISNUMBER(H12:FB))

the error it's giving me is this:

ErrorSUMPRODUCT has mismatched range sizes. Expected row count: 1. column count: 151. Actual row count: 989, column count: 151.

Is there a way to count every nth column but counting the full row as well? It looks like it wants me to simply count only 1 row?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
is this something you normally do

COLUMN(H12:FB) to me thats a range of sorts

COLUMN(H:FB) would be columns

not sur where the claifier for FB exists (or is that hust me)
 
Upvote 0
is this something you normally do

COLUMN(H12:FB) to me thats a range of sorts

COLUMN(H:FB) would be columns

not sur where the claifier for FB exists (or is that hust me)

Yes, the reason you have the 12 on the H12 is because it needs to start at row 12 and count down from there. There is no range set for FB because I want it to continue counting all rows continuously. That way if there are 40 rows it counts to H52 and if there are 60 it goes to H72 and so on. Does that make sense? This is done in google sheets which is why you are able to have no end point.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,314
Members
452,634
Latest member
cpostell

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