Combine multiple Statements

wvguy

New Member
Joined
Jul 25, 2011
Messages
6
I am trying to combine statements

The result I am looking for is to have it look at 4 different sheets and count how many times it finds the word TEST on each sheet.

The issue I have is when I use +if both sheets have to have TEST for it to count 1. If one of the sheets doesn't have TEST it won't report the sheet that does have TEST .

example:
=IF(COUNTIF(sheet1!M3:M2501,"TEST")=0,"",COUNTIF(sheet1!M3:M2501,"TEST"))+IF(COUNTIF(sheet2!M3:M2501,"TEST")=0,"",COUNTIF(sheet2!M3:M2501,"TEST"))

Is there a way to combine those (or more) so that it counts each sheet and if one if the two doesn't have the word TEST it will still return the count from the other sheet?

Thanks for any help
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

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