SUMIFS trouble

JoshLyman

New Member
Joined
Jan 11, 2023
Messages
35
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Not sure if this is just a limitation of SUMIFS (happy to be given the bad news), but I'm struggling to get it to work with a couple of table columns.

I'm trying to use the following formula in cell B1, with the intention of dragging it down so that it'll tell me how many hours have been logged within the named months
=SUMIFS(OTJLog[OTJ Hours],OTJLog[Activity date dd/mm/yyyy],">="&BB21,OTJLog[Activity date dd/mm/yyyy,"<="&EOMONTH(BB21,0)))

DRAFT - OTJ Log - v0.1.xlsm
AB
1Jan-23
2Feb-23
3Mar-23
4Apr-23
5May-23
6Jun-23
7Jul-23
8Aug-23
9Sep-23
10Oct-23
11Nov-23
12Dec-23
Sheet8


The table it's drawing it's data from is here

DRAFT - OTJ Log - v0.1.xlsm
BCDEF
9Activity date dd/mm/yyyyOTJ HoursNon-OTJ HoursShort description of the activity e.g., assignments, online learning, practical training, lecturesKSB(s) covered within the activity Add a row for each one covered, where appropriate
10
11
12
13
14
15
16Total00
3 - OTJ LOG
Cell Formulas
RangeFormula
C16C16=SUBTOTAL(109,[OTJ Hours])
D16D16=SUBTOTAL(109,[Non-OTJ Hours])
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C10:C15Cell Value>7textNO
Cells with Data Validation
CellAllowCriteria
B10:B15Datebetween 01/01/1900 and 31/12/9999
C10:D15Custom=ISNUMBER(C10)
F10:F15List=Lookups!$D$2:$D$47


It works if I specify the range (e.g., C10:C15) but not if I try to reference the table column itself. The issue is, the table will expand, a lot, so I can't specify a range without just making the table enormous as a precaution, which I don't really want to do. Is this just a limitation of SUMIFS? Is there another solution, using SUMPRODUCT for example?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
=SUMIFS(OTJLog[OTJ Hours],OTJLog[Activity date dd/mm/yyyy],">="&BB21,OTJLog[Activity date dd/mm/yyyy,"<="&EOMONTH(BB21,0)))
Try, I think there was some Typo in formula
Excel Formula:
=SUMIFS(OTJLog[OTJ Hours],OTJLog[Activity date dd/mm/yyyy],">="&BB21,OTJLog[Activity date dd/mm/yyyy],"<="&EOMONTH(BB21,0))
 
Upvote 1
Solution

Forum statistics

Threads
1,215,077
Messages
6,122,992
Members
449,094
Latest member
masterms

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