Counting non-empty merged cells on another closed document with SUMPRODUCT

Pisus

New Member
Joined
Nov 14, 2019
Messages
19
Hello.
I am trying to count non-empty cells on another closed document with SUMPRODUCT.
I am using this formula:
Excel Formula:
=(SUMPRODUCT(('https://link/[Workbook.name]Worksheetname'!$Q$9:$Q$99999>"")+0))

Everything seems fine until the array encounters merged cells and returns #REF! from those cells as seen in formula evaluation window:
enter image description here
How to solve this problem. Easiest way is just to unmerge those cells or there are other formulas? Maybe there is a way to change those #REF! to 1's? Or maybe a VBA macro would be more suitable?
Thank you for your insights and help.

P.S. same question posted here
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
hi pisus,
Did the answer worked for you?
do let us know?
 
Upvote 0
Solution

Forum statistics

Threads
1,214,925
Messages
6,122,303
Members
449,078
Latest member
nonnakkong

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