SUMPRODUCT help

JoshLyman

New Member
Joined
Jan 11, 2023
Messages
35
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I'm (perhaps wrongly) assuming SUMPRODUCT is the way to achieve this, but please correct me if i'm wrong. In the Hours covered column I want to calculate how many hours have been spent on each Apprenticeship KSB, which have been logged on the 3 - OTJ LOG sheet. Each time a user logs an entry, they're asked to specify which elements they've covered by choosing from a dropdown in the KSB covered columns, and saying how many hours they spent doing so in the OTJ Hours column:

I'm trying to use the below formula to sum the OTJ Hours where the KSB they've chosen corresponds to the list on the 4 - KSB Tracker sheet, but getting an error. Thank you in advance for any help!

=SUMPRODUCT(--(OTJLog[OTJ Hours]=[@[Apprenticeship KSB]]),OTJLog[[KSB(s) covered]:[KSB(s) covered2]])

DRAFT - OTJ Log - v0.2.xlsm
BCDEFG
16Activity date dd/mm/yyyyOTJ HoursNon-OTJ HoursShort description of the activity e.g., assignments, online learning, practical training, lecturesKSB(s) coveredKSB(s) covered2
172K5: Systems thinking, knowledge/data management, research methodologies and programme managementK2: Organisation structures; business modelling; diversity; global and horizon scanning perspectives; governance and accountability; technological and policy implications
3 - OTJ LOG
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B17Expression=ISBLANK($B17)=TRUEtextYES
B17Expression=OR(WEEKDAY($B17)=7,WEEKDAY($B17)=1)textNO
C17Cell Value>'1 - APPRENTICE INFO'!$K$20textNO
Cells with Data Validation
CellAllowCriteria
F17:G17List=Lookups!$D$2:$D$47
B17Datebetween '1 - APPRENTICE INFO'!$K$22 and 31/12/9999
C17:D17Custom=ISNUMBER(C17)

DRAFT - OTJ Log - v0.2.xlsm
BCDE
7Apprenticeship KSBTimes coveredHours coveredNotes
8K1: How to shape organisational mission, culture and values3#VALUE!
9K2: Organisation structures; business modelling; diversity; global and horizon scanning perspectives; governance and accountability; technological and policy implications1#VALUE!
10K3: New market strategies, changing customer demands and trend analysis0#VALUE!
11K4: Innovation; the impact of disruptive technologies (mechanisms that challenge traditional business methods and practices); drivers of change and new ways of working across infrastructure, processes, people and culture and sustainability0#VALUE!
12K5: Systems thinking, knowledge/data management, research methodologies and programme management1#VALUE!
4 - KSB TRACKER
Cell Formulas
RangeFormula
C8:C12C8=COUNTIF(OTJLog[[KSB(s) covered]:[KSB(s) covered8]],[@[Apprenticeship KSB]])
D8:D12D8=SUMPRODUCT(--(OTJLog[OTJ Hours]=[@[Apprenticeship KSB]]),OTJLog[[KSB(s) covered]:[KSB(s) covered8]])
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C8:D53Cell Value>1textNO
C8:D53Cell Value=1textNO
C8:D53Cell Value<1textNO
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,223,879
Messages
6,175,150
Members
452,615
Latest member
bogeys2birdies

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