SUMPRODUCT Vertical & Horizontal

gomukuma

New Member
Joined
Jan 7, 2014
Messages
48
Hi There.

I need to add a further stipulation to a formula im using, but it doesn't quite seem to be as simple as i thought and wonder if anyone could help.

DATA (Unsocials)
MACHSHIFTSun 30 AprMon 1 MayTue 2 MayWed 3 MayThurs 4 MayFri 5 MaySat 6 MaySun 7 May
Month1Month2Month2Month2Month2Month1Month2Month2
XAMPaulPaulZoe
XPMShaneSarahShane
ZAMSarahPhilJenny
ZPMJennyPeterPaul

<TBODY>
</TBODY>











There is a column for every day of the year


Summary (Table14)
InitialsSat Unsocial (PM)Sun Unsocial (AM)
Sarah1 (formula)1
Jenny01
Paul00
Phil00
Peter1

<TBODY>
</TBODY>










So int this part of the Summary, i am calculating how many SAT PM / SUM AM Shifts have been worked for each employee. I can't change the data around because its linked to a roster.

This is the formula im using at the moment which will count the number of Saturdays/Sundays.
=SUMPRODUCT((Unsocials!$C$1:$NC$1="Saturday")*(Roster!$C$72:$NC$72=Table14[[#Headers],[Month 1]])*(Unsocials!$C$4:$NC$39=[@Initials]))

I need to add to this so it will only count the Saturdays is a PM in column B on the DATA Sheet.

This is the final peice of my puzzle, any help would be grately appreciated!

Thank you! :)
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,222,046
Messages
6,163,588
Members
451,846
Latest member
ajk99

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