Simple Formula Issue

ChrisFoster

Board Regular
Joined
Jun 21, 2019
Messages
246
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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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,124
Messages
6,123,184
Members
449,090
Latest member
bes000

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