countif or countifs?

Davidcat

New Member
Joined
Jun 24, 2011
Messages
2
This is my first time posting here.
Am Having a problem (I’m probably missing the obvious or I’m stupid).
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
Essentially, I have a spreadsheet with 15 tabs. I want the 1st tab "master copy tab" to count the number of Yes, No, N/A and blank cells on each row for the other spreadsheet tabs in their F Column. The F Columns of the other tabs (i.e. Burford, Chichester etc –there are 14 of them), have conditional formatting so that an input of Yes will turn the cell to Green, No to Red etc.
<o:p> </o:p>
All I want to do is to correctly formulate the Master Copy tab so that it will count as follows:
<o:p> </o:p>
Column C on the master copy should count all tabs where the input in the F column on the other tabs is “Yes”.
Column D on the master copy should count all tabs where the input in the F column on the other tabs is “No”.
Column E on the master copy should count all tabs where the input in the F column on the other tabs is “N/A”.
Column F on the master copy should count all tabs where the input in the F column on the other tabs is blank.
<o:p> </o:p>
Can you help with this pleeeeeeeeeease?
<o:p> </o:p>
Thanks
David
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Welcome to MrExcel.

Make a list of the names of your worksheets and name it SheetList. Then you can use a formula like:

=SUMPRODUCT(COUNTIF(INDIRECT("'"&SheetList&"'!C:C"),"Yes"))
 
Upvote 0
I think this small modification in the formula suggested by Andrew Poulsom can help solve your problem.

Try this formula in C1:

=SUM(INDEX(COUNTIF(INDIRECT("'"&SheetList&"'!F1:F10"),{"Yes","No","N/A",""}),,COLUMN(C1)-COLUMN($B$1)))

Markmzz
 
Upvote 0

Forum statistics

Threads
1,224,588
Messages
6,179,743
Members
452,940
Latest member
rootytrip

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