Excel Formula: incorporate MATCH with SUBTOTAL to count number of rows

2Took

Board Regular
Joined
Jun 13, 2022
Messages
203
Office Version
  1. 365
Platform
  1. Windows
Instead of
Excel Formula:
=COUNTA(A11:A5000)
below formula automatically adjusts to however many rows with data, instead of limiting to 5000 rows, or putting a million rows:

Excel Formula:
=MATCH("zzz",A:A)-10

Tried to incorporate same solution into
Excel Formula:
=SUBTOTAL(103,A11:A5000)
with
Excel Formula:
=SUBTOTAL(103,(MATCH("zzz",A:A)-10))
and
Excel Formula:
=MATCH("zzz",SUBTOTAL(103,A:A))
but those are not correct, per Excel.

> What is the way to incorporate it correctly?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
How about this?

Excel Formula:
=COUNTA(FILTER(A:A, A:A="zzz"))

Hope that works for you!
 
Upvote 0
How about this?

Excel Formula:
=COUNTA(FILTER(A:A, A:A="zzz"))

Hope that works for you!
no... my data starts at row 11, but even with adjusting to:

Excel Formula:
=COUNTA(FILTER(A11:A, A11:A="zzz"))

it results in 1, which is way way waay off 😒
 
Upvote 0
no... my data starts at row 11, but even with adjusting to:

Excel Formula:
=COUNTA(FILTER(A11:A, A11:A="zzz"))

it results in 1, which is way way waay off 😒
A11:A is an invalid address. There's "zzz" between A1 and A11? If not, what's the problem with doing the whole column?
 
Upvote 0
A11:A is an invalid address. There's "zzz" between A1 and A11? If not, what's the problem with doing the whole column?
There are other formulas that I need to keep in first few A rows. My data starts at row 11, so need the count specifically from A11 and down.
 
Upvote 0

Forum statistics

Threads
1,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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