formula help

sam__gleeson

Board Regular
Joined
Oct 11, 2012
Messages
102
I have this formula looking at range D7:AH7 for the word sick..can the formula not count the weekends?

Code:
=COUNTIF($D7:$AH7,"SICK")

Cheers
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi SpreedsheetCrusader

In your SUMPRODUCT formula, the multiplication of the two sub-expressions will yield numeric results, which SUMPRODUCT can interpret and add up. Both sub-expressions however yield logical results, so key here is the multiplication method you have used.

Sam's suggestion, by contrast, using two sumproduct arguments (essentially the x values and the y values). SUMPRODUCT, like many other functions such as SUM, COUNT, MAX, MIN etc, cannot compute the result using logical values. Numbers are interpreted as numbers. Errors are inherited. Everything else is ignored, so essentially without the double unary Sams formula would produce both x and y values as arrays of logical values, which SUMPRODUCT would ignore.

Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,981
Members
448,538
Latest member
alex78

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