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

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
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,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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