Help with Countif formula

YOUNAN

Board Regular
Joined
Feb 10, 2015
Messages
101
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello,

I am using this formula to count how may times 2014 is repeated in a range

=countif(u4:u13;"2014").

I need to count how many times "2014" is repeated though multiple sheets , the range is same.

Thanks in advance.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Thanks for your reply, when removing quotes I get 0, I have 2014 repeated 3 times, but when I put back the quotes I get 3 . any help on a formula that can do this but count through multiple sheets.

Thanks in advance
 
Upvote 0
Try...

=SUMPRODUCT(COUNTIFS(INDIRECT("'"&$A$2:$A$5&"'!U4:U13"),2014))

where A2:A5 houses the relevant sheet names (adjust to suit).
 
Upvote 0
This ARRAY formula works.
Z1:Z3 in the same sheet contains the sheet names. Eg Z1=Sheet1,Z2=Sheet2 , etc

=SUM(COUNTIF(INDIRECT("'"&$Z$1:$Z$3&"'!U4:U13"),2014))

How ARRAY formula is entered


Paste Formula in the cell.
Press F2
Hold Shift+ Ctrl Keys and hit Enter key.
Now the formula is surrounded by {} by excel.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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