CountIf formula help

Martmorg

New Member
Joined
Mar 6, 2014
Messages
25
Good Afternoon,

I am trying to calculate how many 'A12' cells are completed with 'Yes' across multiple tabs and am using the below forumula which does not appear to work. Anyone have any suggestions what is going wrong with the formula i am using or an alternative?

=Countif('Tab Name 1:Tab Name 20!A12,"Yes")

Any help greatly appreciated

Regards

Martin
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi.

Unfortunately, COUNTIF is not capable of operating on 3D ranges as such.

You would need to do it as follows:

First enter all of your sheet names (precisely as they appear on the tabs) into a vertical range somewhere in your master sheet, e.g. H1:H20.

A quick way to do this (assuming your sheet names follow the pattern "Tab Name " followed by the integers from 1 to 20) would be to enter, in H1:

="Tab Name "&ROWS($1:1)

and copy down to H20.

Your formula would then be:

=SUMPRODUCT(COUNTIF(INDIRECT("'"&H1:H20&"'!A12"),"Yes"))

If you don't like the idea of having your sheet names in the actual worksheet, there is an alternative in which we could store them directly into Name Manager. Let me know if that would be preferable to you.

However, arguably even better than all this is to simply use an extra cell in each of your 20 worksheets, e.g. A13, with the formula:

=0+(A12="Yes")

Then in your master sheet, simply:

=SUM('Tab Name 1:Tab Name 20'!A13)

Regards
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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