• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 62
  • Last Modified:

In Excel 2010, how do I to use countif for a number of tabs listed on the first sheet of a spreadsheet?

In the attached spreadsheet, I have a list of 42 tabs.
I want to create a formula in column b that will tell me how many non-blank rows there are in each of the tabs
from row a5 to the end of the spreadsheet. I have been using 1000 as the highest number, but I know there
are a lot fewer than that on the largest tab.
MS2003-to-2007.xlsx
0
Alex Campbell
Asked:
Alex Campbell
  • 3
1 Solution
 
Ryan ChongCommented:
in cell B5, try use formula:
=1000-5-COUNTA(INDIRECT("'"&A2&"'!A5:A1000"))

Open in new window

and drag down the formula.

you can customize the formula accordingly.
MS2003-to-2007_b.xlsx
0
 
Ryan ChongCommented:
if you want to use CountIF function, you can try this instead.
=1000-5-COUNTIF(INDIRECT("'"&A2&"'!A5:A1000"),"<>")

Open in new window

0
 
Ryan ChongCommented:
sorry... for non-blank rows, simply try this:
=COUNTA(INDIRECT("'"&A2&"'!A5:A1000"))

Open in new window

or
=COUNTIF(INDIRECT("'"&A2&"'!A5:A1000"),"<>")

Open in new window

0
 
Alex CampbellAuthor Commented:
Worked great, thanks!
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now