Challenges with Countifs function

mrpwagner

New Member
Joined
Jul 17, 2016
Messages
22
Using excel 2016.

I am working on a call schedule and trying to make some calculations based on assignment and day of the week - specifically the weekend.

The following formula works great - =COUNTIFS(Vertical!G11:G27,'Names and Values'!J11)
When I run this the formula returns the assignment the patient received.

This formula also works great -
=COUNTIFS(WE_01,"sat")

When I run this formula it returns the number of Saturdays.


HOWEVER, when I combine them I get an error.
=COUNTIFS(Vertical!G11:G27,'Names and Values'!J11,
WE_01,"sat"
)

Any tips?

Another issue I an having is combining to count the number of Saturdays or Sundays.
=COUNTIFS(WE_01,"sat")
will give me the correct number of Saturdays; and
=COUNTIFS(WE_01,"sun") will give men the correct number of Sundays. I tried combing in several formats, even using an array. I never get the correct number. Any tips?

Or do I have to do two separate formulas and add them? I would love to learn to combine all these and I would love for anyone in this forum to educate me!!

Thanks a million ahead of time!!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
check the version of all files...all must have same version files...else it gives an error..if you are using one file 65K rows & another higher verson
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

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