INDIRECT function to count non blank cells on another worksheet

ManCityPete

New Member
Joined
Oct 30, 2015
Messages
6
Office Version
  1. 365
Platform
  1. Windows
I’m trying to count non-blank cells on another worksheet referenced using the INDIRECT function.

Oddly it’s returning the number of cells in the entire range, ie the whole column, and I don’t know why.

In L4 is the name of the worksheet I am wanting to count

My formulae is =COUNTA(INDIRECT(“‘“&L$4&”’!”&”A:A”)

This is returning 1048576 😂 but I’m to dumb to figure out why?

Any help would be appreciated.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Did you copy/paste the formula direct from Excel to the board?
 
Upvote 0
Thank you for replying. Just your question re whether I'd coied the formula fixed it. When I looked, I'd done a subtraction to that formula that screwed it up. Like I said, dumb!

Thank you anyway
 
Upvote 0
Glad you sorted it & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,949
Messages
6,175,581
Members
452,653
Latest member
craigje92

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