Add results of an IF function

avikavik

New Member
Joined
Jun 27, 2014
Messages
4
Hi all,
I am trying to simplify the following task:

My excel sheet contains a work schedule:
- each row consists of the daily shift timetable of supervisors (30 supervisors) during a 3months period (shift work, so the cells contain text which says morning, evening or night).
- on row 36, i am copying the timetable of a junior staff.

I need to know how many times each supervisor worked with the junior staff member over the whole 3 month period (matching text values in the same column).
For now, I have used:
1) an IF function (=IF(B2:CG2=B36:CG36),"1",""). This generates a whole new table with 0 and 1 for each day.
2) a CountIF to know the number of 1's in the new table.

Could anyone tell me if there is an easier way to get the total number of cells at the end of each row which match the junior staff's cell (in the same column)? I have tried fiddling with multiple functions but can't figure out an easy way....

A million thanks to all excelgurus out there, and sorry if this is very basic ;)
 

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.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Maybe
Excel Formula:
=SUM(--(B2:CG2=B36:CG36))
 
Upvote 0

Forum statistics

Threads
1,214,996
Messages
6,122,636
Members
449,092
Latest member
bsb1122

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