countifs arrays

zimzim

New Member
Joined
Aug 3, 2015
Messages
1
Hello, I'm trying to evaluate two ranges within a countifs formula for any potential identical values.

I have a calendar/schedule sheet with the days of the week and two rows of values using a three character letter code (ABC for the sake of the formula below) and a four digit number code indicating schedule.

I am using this formula:
=countifs(a3:a33,"SU",c3:c33,"ABC",b3:b33,????)
Where a3:a33 is a list of days of the week
c3:c33 is a list of three letter codes corresponding to certain schedules (ABC, etc.)
and b3:b33 is a list of four digit codes on the schedule
???? indicates the list of acceptable codes I'm trying to compare to b3:b33

I have gone through the four digit codes and determined that 12 of several hundred possibilities are the ones I'm specifically seeking and I have those saved in aa3:aa14.

How do I determine whether the corresponding value in b3:b33 matches any of the values in aa3:aa14? I have tried several variations and found no success. I've even looked into CSE formulas for evaluate multiple arrays. What am I missing here?

If countifs isn't the best function, is there a better function for this? Thanks!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
You have days of the week in A3:A33.
Are these dates that are formatted to show alpha for the day (like "SU" in your example) or are they text "SU".
Your formula will not fine a date formatted to show "SU"
 
Upvote 0

Forum statistics

Threads
1,215,145
Messages
6,123,291
Members
449,094
Latest member
GoToLeep

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