Simple Formula Issue

ChrisFoster

Active Member
Joined
Jun 21, 2019
Messages
251
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I feel a bit silly here. I have the following simple formula that works, it brings back a value of 25 which is correct.

Excel Formula:
=COUNTA('Exception Breaches'!A2:A100)

However, as the data in column A may exceed 100, I am trying the below code but it just brings back a value of 1. What am I doing wrong?

Excel Formula:
=COUNTA('Exception Breaches'!A2:A)
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
You would need to change it to A:A. Excel will not accept A2:A
Assuming that there is something in cell A1:
Excel Formula:
=COUNTA('Exception Breaches'!A:A)-1
 
Upvote 0
Why not make your range an Excel Table ? The formula will then adapt automatically to the length of the range
 
Upvote 0
Another option is just increase the range to something you will never exceed like
Excel Formula:
=COUNTA('Exception Breaches'!A2:A10000)
 
Upvote 0

Forum statistics

Threads
1,215,745
Messages
6,126,636
Members
449,324
Latest member
AmirMalik

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