Hi therre
I’m using SUMIFs to sum data from a list of timesheet details based on
-project code: '2014 replicon data store’!A:A (range),$B6 (code to include)
-staff category: '2014 replicon data store’!E:E (range),$F6 (category to include)
-returning total number of hours meeting the above conditions: '2014 replicon data store’!D:D (range)
This is the formula that returns the above:
=(sumifs('2014 replicon data store'!D:D,'2014 replicon data store'!A:A,$B6,'2014 replicon data store'!E:E,$F6)
However, as some of our projects have more than one code, I’d like to expand this formula so that if I add more project codes below B6, it also includes these in the search.
A manual way to do this across codes in B6 and B7 is:
=(sumifs('2014 replicon data store'!D:D,'2014 replicon data store'!A:A,$B6,'2014 replicon data store'!E:E,$F6))+(sumifs('2014 replicon data store'!D:D,'2014 replicon data store'!A:A,$B7,'2014 replicon data store'!E:E,$F6))
However, it will be prohibitively laborious to have to roll this out across all my formulas, as I would like the option to count up to 10 different project codes. So I’m looking for something like:
=(sumifs('2014 replicon data store'!D:D,'2014 replicon data store'!A:A,$B6:$B16,'2014 replicon data store'!E:E,$F6)
…where I turn $B6 to $B6:$B16 - but this doesn’t work. Is there another way to modify this formula so that it will look for more than one project code in the SUMIF?
Many thanks from a newbie!
Tom
Bookmarks