How to sum up the values of the working schedule symbols from a range that matching the value legend for these characters

Roumen Roussev

New Member
Joined
Nov 21, 2018
Messages
6
I have a shift schedule with symbol and legend with duration value of each shift symbol. I want to summarize the value corresponding to the symbols for each employee.

Now I use:
=COUNTIF($D5:$AH5;$A$13)*($N$13*24)+COUNTIF(D5:AH5;$A$14)*($N$14*24)+COUNTIF(D5:AH5;$A$15)*($N$15*24)
where
D5:AH5 is range with shift symbols
A13:A15 is range for symbols fom legend
N13:N15 is range of corresponding symbols value with "hh:mm" formatting
Image: https://ibb.co/WpQfQyY

This is the WeTransfer link to an Excel file. https://we.tl/t-eyGTJAH9KB
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi & welcome to MrExcel.
You could use
=SUMPRODUCT((D5:AH5=A13:A34)*(N13:N34))*24
but for it to work you will need to remove the merged cells A17:A18
you will also need a value of 0 in col N rather than ""
 
Upvote 0
Hi & welcome to MrExcel.
You could use
=SUMPRODUCT((D5:AH5=A13:A34)*(N13:N34))*24
but for it to work you will need to remove the merged cells A17:A18
you will also need a value of 0 in col N rather than ""
Thank you very much. The solution works perfectly without merged cells .
 
Upvote 0
I do not know whether it's right to continue the topic, but I'm faced with another problem in the formula.
I need to use the formula so as to summarize only if another condition for comparison is fulfilled in the second range. I have identical symbols that differ only by criteria in another column
I tried:
=SUMPRODUCT((AND((D5:AH5=$A$35:$A$63);(A5=$C$35:$C$63))*($N$35:$N$63))*24)
But it doesn't work.
This is WeTransfer link to an Excel file. https://we.tl/t-acRK0YoCGO
 
Upvote 0
Try
=SUMPRODUCT(((D5:AH5=$A$35:$A$63)*(A5=$C$35:$C$63)*($N$35:$N$63))*24)
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,888
Messages
6,181,602
Members
453,055
Latest member
cope7895

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