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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,214,838
Messages
6,121,885
Members
449,057
Latest member
Moo4247

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