SOLVED

formula that will return the sum of values with a given name in a given month

%3CLINGO-SUB%20id%3D%22lingo-sub-118749%22%20slang%3D%22en-US%22%3Eformula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-118749%22%20slang%3D%22en-US%22%3E%3CP%3ETrying%20to%20find%20a%20sumif%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month.%3C%2FP%3E%3CP%3EI%20have%20multiple%20entries%20within%20each%20month%20that%20are%20labeled%20to%20fit%20into%20a%20certain%20category%20and%20a%20value%20for%20each%20entry.%20I%20would%20like%20to%20pull%20this%20info%20out%20for%20each%20month%20of%20the%20year.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EColumn%20H5%3AH307%20%3D%20value%20for%20each%20entry%20that%20I%20want%20to%20add%20up%3C%2FP%3E%3CP%3EColumn%20E5%3AE307%20%3D%20the%20entry%E2%80%99s%20label%20or%20category%26nbsp%3B%3C%2FP%3E%3CP%3EColumn%20B5%3AB307%20%3D%20the%20dates%20for%20each%20entry%3C%2FP%3E%3CP%3EA3%3AA43%20in%20another%20tab%20%3D%20the%20full%20list%20of%20categories%20(to%20make%20it%20easier%20to%20pull%20from%20rather%20than%20typing%20each%20category%20label%20into%20the%20formula%20manually)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIdeally%20i'd%20like%20to%20be%20pulling%20this%20same%20info%20(H%2C%20E%2C%20and%20B)%20from%20two%20separate%20tabs%20(different%20info%2C%20same%20format)%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-118749%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20%26amp%3B%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENeed%20Help%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-124113%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-124113%22%20slang%3D%22en-US%22%3E%3CP%3EI%20figured%20it%20out!%20The%20dates%20in%20the%20second%20set%20of%20data%20had%20a%20zero%20in%20front%20of%20the%20first%20number%20so%20they%20didn't%20turn%20into%20numbers%20when%20i%20changes%20them%20to%20text%20like%20you%20suggested!%20Good%20catch!%20I%20just%20made%20them%20all%20real%20dates%20and%20now%20everything%20is%20fine.%20Thank%20you!!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-124099%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-124099%22%20slang%3D%22en-US%22%3E%3CP%3Eso%20i%20just%20looked%20this%20up%20and%20yes%2C%20my%20categories%20all%20match%20(from%20the%20set%20of%20data%20that%20is%20correctly%20pulling%20and%20the%20set%20of%20data%20that%20is%20not%20pulling).%20I%20have%20them%20set%20to%20pull%20from%20a%20category%20list%2C%20so%20that%20is%20not%20the%20issue.%20Could%20it%20be%20somewhere%20else%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-124096%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-124096%22%20slang%3D%22en-US%22%3E%22Check%20your%20look%20up%20text%20matches%20your%20data%20text%20by%20picking%202%20cells%20and%20use%20%3DEXACT%20to%20compare%22%3CBR%20%2F%3E%3CBR%20%2F%3Ecan%20you%20explain%20further%20what%20you%20mean%20by%20this%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-124087%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-124087%22%20slang%3D%22en-US%22%3EHi%20Rebecca%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20would%20break%20the%20formula%20apart%20to%20see%20what%E2%80%99s%20not%20working.%20Often%20there%E2%80%99s%20things%20like%20spaces%20at%20the%20end%20of%20text%20that%20cause%20things%20not%20to%20work.%3CBR%20%2F%3E%3CBR%20%2F%3ECheck%20your%20look%20up%20text%20matches%20your%20data%20text%20by%20picking%202%20cells%20and%20use%20%3DEXACT%20to%20compare%3CBR%20%2F%3E%3CBR%20%2F%3EAlso%20check%20your%20dates%20are%20real%20dates%20by%20changing%20the%20format%20to%20number%20and%20see%20if%20they%20change%20to%20numbers%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-123999%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-123999%22%20slang%3D%22en-US%22%3E%3CP%3EI%20moved%20all%20of%20my%20data%20into%20a%20new%20workbook%20and%20pasted%20only%20the%20values%20and%20reformatted%20everything%20to%20make%20sure%20there%20was%20nothing%20funky%20going%20on%20in%20the%20background%20that%20might%20be%20messing%20up%20the%20formula.%20I'm%20still%20running%20into%20the%20same%20problem.%20Even%20thought%20the%20formula%20has%20the%20data%20being%20pulled%20from%20two%20separate%20sheets%20within%20this%20one%20workbook%2C%20only%20Data%20sheet%201%20is%20being%20pulled%20into%20the%20totals%20sheet.%20Data%20sheet%202%20is%20not%20being%20pulled%20at%20all.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-122003%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-122003%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20is%20possible%20with%20the%20use%20of%20INDIRECT%20but%20I%20wouldn't%20really%20recommend%20it%20as%20the%20formula%20becomes%20very%20long%20and%20un-auditable%20due%20to%20the%20INDIRECT.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20preferred%20approach%20would%20be%20to%20use%20Power%20Query%20to%20consolidate%20the%20data%20into%20a%20single%20table%20and%20then%20run%20the%20formula%20of%20that%2C%20or%20better%20still%20just%20use%20a%20Pivot%20Table%20for%20the%20reporting.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121935%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121935%22%20slang%3D%22en-US%22%3E%3CP%3Eand%20wouldn't%20want%20to%20point%20to%20the%20sheets%20and%20highlight%20the%20info%20to%20be%20picked...Hope%20am%20not%20complicating%20things%20here!%20I%20am%20thinking%20of%20say%20listing%20the%20tab%20names%20in%20a%20schedule%20some%20where%20and%20a%20user%20can%20pick%20the%20tab%20name%20to%20be%20able%20to%20use%20the%20same%20setup%20you%20have%20provided%20but%20generate%20a%20report%20for%20either%20both%20Data%201%20and%20Data%202%20info%20or%20Data%201%20info%20only.%20Attached%20is%20a%20modified%20formula%20highlighted%20in%20yellow%20and%20reference%20in%20green%20to%20guide%20the%20discussion!!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121934%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121934%22%20slang%3D%22en-US%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9832%22%20target%3D%22_blank%22%3E%40Wyn%20Hopkins%3C%2FA%3E%20wrote%3A%3CBR%20%2F%3E%3CP%3EHi%20Rebecca%2C%3C%2FP%3E%3CP%3EIf%20you%20copy%20the%20whole%20formula%20(not%202%20separate%20parts)%20it%20should%20work%20(assuming%20your%20columns%20are%20set%20up%20in%20the%20same%20way)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20I've%20attached%20a%20version%20including%20Tables%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3EHi%20Wyn%2C%20I%20am%3C%2FP%3E%3CP%3ERichard%20just%20joining%20the%20community%2C%20Thanks%20for%20the%20solution%20to%20Rebecca's%20request.%3C%2FP%3E%3CP%3EIs%20there%20away%20to%20dynamically%20pick%20the%20sheet%20names%20without%20necessarily%20typing%20them%20into%20the%20formula!%26nbsp%3BFor%20example%26nbsp%3BI%20wouldn't%20want%20to%20be%26nbsp%3Btyping%26nbsp%3B'Data%26nbsp%3B1'%20or%26nbsp%3B'Data%202'%20in%20the%20formula%20you%20have%26nbsp%3Bprovided%20below....%3C%2FP%3E%3CP%3E%3DSUMIFS('Data%201'!%24H%3A%24H%2C'Data%201'!%24E%3A%24E%2C%24A2%2C'Data%201'!%24B%3A%24B%2C%22%26gt%3B%3D%22%26amp%3BC%241%2C'Data%201'!%24B%3A%24B%2C%22%26lt%3B%3D%22%26amp%3BEOMONTH(C%241%2C0))%3CBR%20%2F%3E%2BSUMIFS('Data%202'!%24H%3A%24H%2C'Data%202'!%24E%3A%24E%2C%24A2%2C'Data%202'!%24B%3A%24B%2C%22%26gt%3B%3D%22%26amp%3BC%241%2C'Data%202'!%24B%3A%24B%2C%22%26lt%3B%3D%22%26amp%3BEOMONTH(C%241%2C0))%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121187%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121187%22%20slang%3D%22en-US%22%3E%3CP%3EI%20set%20it%20up%20just%20like%20yours%2C%20so%20maybe%20there%20is%20just%20something%20wrong%20with%20my%20data.%20I'll%20try%20to%20recreate%20all%20the%20data%20and%20keep%20trying%20different%20things.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121075%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121075%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Rebecca%2C%3C%2FP%3E%3CP%3EIf%20you%20copy%20the%20whole%20formula%20(not%202%20separate%20parts)%20it%20should%20work%20(assuming%20your%20columns%20are%20set%20up%20in%20the%20same%20way)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20I've%20attached%20a%20version%20including%20Tables%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-120223%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-120223%22%20slang%3D%22en-US%22%3EThe%20first%20half%20of%20the%20sumifs%20statement%20worked%20-%20pulled%20correctly%20from%20sheet%201%3CBR%20%2F%3E%3CBR%20%2F%3E%3DSUMIFS('Data%201'!%24H%3A%24H%2C'Data%201'!%24E%3A%24E%2C%24A2%2C'Data%201'!%24B%3A%24B%2C%22%26gt%3B%3D%22%26amp%3BB%241%2C'Data%201'!%24B%3A%24B%2C%22%26lt%3B%3D%22%26amp%3BEOMONTH(B%241%2C0))%3CBR%20%2F%3E%3CBR%20%2F%3EWhen%20i%20include%20the%20second%20half%20it%20just%20gives%20me%20a%20zero%2C%20not%20pulling%20from%20sheet%202%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-120162%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-120162%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20so%20much%20it%20worked!!!%20I%20can't%20even%20tell%20you%20how%20long%20i've%20been%20working%20on%20this%20formula.%20I%20turned%20my%20sheets%20that%20have%20the%20original%20data%20into%20tables%2C%20is%20that%20what%20you%20mean%3F%20How%20does%20that%20effect%20the%20formula%3F%20Sorry%2C%20im%20somewhat%20new%20to%20all%20of%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-119887%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-119887%22%20slang%3D%22en-US%22%3E%3CP%3EHi!%20Wyn%2C%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20apologize%2C%20i%20forgot%20to%20remove%20the%20lock.%20Anyway%20thank%20you%20for%20reminding%20me.%3C%2FP%3E%3CP%3EPW%20is%20(1)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20a%20nice%20day%20Wyn%E2%98%BA%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-119883%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-119883%22%20slang%3D%22en-US%22%3EHi%20Joey%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20noticed%20you%20protected%20your%20sheet%20and%20hid%20the%20formulas%20in%20your%20file.%20This%20isn't%20particularly%20helpful%20for%20people%20in%20the%20forum.%3CBR%20%2F%3E%3CBR%20%2F%3EAfter%20unprotecting%20your%20sheet%20I%20can%20see%20that%20you%20have%20used%20VLOOKUPS%20on%20a%20moving%20range%20(as%20the%20formula%20moves%20down%20the%20VLOOKUP%20range%20moves%20down)%2C%20this%20could%20easily%20result%20in%20values%20not%20being%20picked%20up%20and%20if%20you%20are%20using%20this%20approach%20anywhere%20I'd%20recommend%20you%20should%20use%20%24%20sign%20to%20lock%20that%20VLOOKUP%20range%20reference.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-119853%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-119853%22%20slang%3D%22en-US%22%3E%3CP%3EHi!%26nbsp%3B%3C%2FP%3E%3CP%3EAttached%20is%20a%20drop%20down%20list%20of%20your%20excel%20copy.%20First%20tab%20is%20where%20all%20the%20entries%20that%20you%20inserted%20from%20Second%20Tab%20(Data%201)%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20some%20changes%20that%20i%20made%20but%20i%20don't%20know%20if%20this%20one%20will%20help.%3C%2FP%3E%3CP%3EHave%20nice%20day....%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-119561%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-119561%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Rebecca%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBit%20of%20a%20long%20formula%26nbsp%3B%20(I'd%20also%20encourage%20you%20to%20turn%20your%202%20Data%20sets%20into%20Tables%20(Ctrl%20T)%26nbsp%3B%20so%20that%20the%20formula%20is%20more%20meaningful.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DSUMIFS('Data%201'!%24H%3A%24H%2C'Data%201'!%24E%3A%24E%2C%24A2%2C'Data%201'!%24B%3A%24B%2C%22%26gt%3B%3D%22%26amp%3BB%241%2C'Data%201'!%24B%3A%24B%2C%22%26lt%3B%3D%22%26amp%3BEOMONTH(B%241%2C0))%3CBR%20%2F%3E%2BSUMIFS('Data%202'!%24H%3A%24H%2C'Data%202'!%24E%3A%24E%2C%24A2%2C'Data%202'!%24B%3A%24B%2C%22%26gt%3B%3D%22%26amp%3BB%241%2C'Data%202'!%24B%3A%24B%2C%22%26lt%3B%3D%22%26amp%3BEOMONTH(B%241%2C0))%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-119127%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-119127%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20uploaded%20a%20sample%20document.%20The%20first%20tab%20is%20where%20I%20would%20want%20all%20the%20totals%20pulled%20into%20(from%20both%20sheets)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20second%20and%20third%20tabs%20are%20where%20the%20data%20is.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-118832%22%20slang%3D%22en-US%22%3ERe%3A%20formula%20that%20will%20return%20the%20sum%20of%20values%20with%20a%20given%20name%20in%20a%20given%20month%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-118832%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20this%20may%20help%20(I'm%20only%20doing%20it%20to%20row%208%20but%20hopefully%20you%20get%20the%20idea%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DSUMIFS(%20%24H%245%3A%24H%248%2C%26nbsp%3B%20%26nbsp%3B%24B%245%3A%24B%248%2C%20%22%26gt%3B%3D%22%26amp%3BB15%2C%26nbsp%3B%20%26nbsp%3B%20%24B%245%3A%24B%248%2C%22%26lt%3B%3D%22%20%26amp%3B%20C15%2C%26nbsp%3B%26nbsp%3B%24E%245%3A%24E%248%2C%20D15%26nbsp%3B%20)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20767px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F22537iF058A2D222FA2504%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22SUMIFS.PNG%22%20title%3D%22SUMIFS.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIf%20this%20isn't%20what%20you%20need%20could%20you%20upload%20a%20sample%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWyn%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Trying to find a sumif formula that will return the sum of values with a given name in a given month.

I have multiple entries within each month that are labeled to fit into a certain category and a value for each entry. I would like to pull this info out for each month of the year.

 

Column H5:H307 = value for each entry that I want to add up

Column E5:E307 = the entry’s label or category 

Column B5:B307 = the dates for each entry

A3:A43 in another tab = the full list of categories (to make it easier to pull from rather than typing each category label into the formula manually)

 

Ideally i'd like to be pulling this same info (H, E, and B) from two separate tabs (different info, same format)

Thank you!

18 Replies

Hi

 

I think this may help (I'm only doing it to row 8 but hopefully you get the idea

 

=SUMIFS( $H$5:$H$8,   $B$5:$B$8, ">="&B15,    $B$5:$B$8,"<=" & C15,  $E$5:$E$8, D15  )

 

SUMIFS.PNG

If this isn't what you need could you upload a sample file.

 

Thanks

 

Wyn

I have uploaded a sample document. The first tab is where I would want all the totals pulled into (from both sheets)

 

The second and third tabs are where the data is.

best response confirmed by Rebecca Schneider (Occasional Contributor)
Solution

Hi Rebecca

 

Bit of a long formula  (I'd also encourage you to turn your 2 Data sets into Tables (Ctrl T)  so that the formula is more meaningful.

 

=SUMIFS('Data 1'!$H:$H,'Data 1'!$E:$E,$A2,'Data 1'!$B:$B,">="&B$1,'Data 1'!$B:$B,"<="&EOMONTH(B$1,0))
+SUMIFS('Data 2'!$H:$H,'Data 2'!$E:$E,$A2,'Data 2'!$B:$B,">="&B$1,'Data 2'!$B:$B,"<="&EOMONTH(B$1,0))

Hi! 

Attached is a drop down list of your excel copy. First tab is where all the entries that you inserted from Second Tab (Data 1) 

 

There is some changes that i made but i don't know if this one will help.

Have nice day....

Hi Joey,

I noticed you protected your sheet and hid the formulas in your file. This isn't particularly helpful for people in the forum.

After unprotecting your sheet I can see that you have used VLOOKUPS on a moving range (as the formula moves down the VLOOKUP range moves down), this could easily result in values not being picked up and if you are using this approach anywhere I'd recommend you should use $ sign to lock that VLOOKUP range reference.

Hi! Wyn, 

My apologize, i forgot to remove the lock. Anyway thank you for reminding me.

PW is (1)

 

Have a nice day Wyn☺

Thank you so much it worked!!! I can't even tell you how long i've been working on this formula. I turned my sheets that have the original data into tables, is that what you mean? How does that effect the formula? Sorry, im somewhat new to all of this.

The first half of the sumifs statement worked - pulled correctly from sheet 1

=SUMIFS('Data 1'!$H:$H,'Data 1'!$E:$E,$A2,'Data 1'!$B:$B,">="&B$1,'Data 1'!$B:$B,"<="&EOMONTH(B$1,0))

When i include the second half it just gives me a zero, not pulling from sheet 2

Hi Rebecca,

If you copy the whole formula (not 2 separate parts) it should work (assuming your columns are set up in the same way)

 

Also I've attached a version including Tables

I set it up just like yours, so maybe there is just something wrong with my data. I'll try to recreate all the data and keep trying different things.

 

Thank you for your help.


@Wyn Hopkins wrote:

Hi Rebecca,

If you copy the whole formula (not 2 separate parts) it should work (assuming your columns are set up in the same way)

 

Also I've attached a version including Tables


Hi Wyn, I am

Richard just joining the community, Thanks for the solution to Rebecca's request.

Is there away to dynamically pick the sheet names without necessarily typing them into the formula! For example I wouldn't want to be typing 'Data 1' or 'Data 2' in the formula you have provided below....

=SUMIFS('Data 1'!$H:$H,'Data 1'!$E:$E,$A2,'Data 1'!$B:$B,">="&C$1,'Data 1'!$B:$B,"<="&EOMONTH(C$1,0))
+SUMIFS('Data 2'!$H:$H,'Data 2'!$E:$E,$A2,'Data 2'!$B:$B,">="&C$1,'Data 2'!$B:$B,"<="&EOMONTH(C$1,0)) 

and wouldn't want to point to the sheets and highlight the info to be picked...Hope am not complicating things here! I am thinking of say listing the tab names in a schedule some where and a user can pick the tab name to be able to use the same setup you have provided but generate a report for either both Data 1 and Data 2 info or Data 1 info only. Attached is a modified formula highlighted in yellow and reference in green to guide the discussion!!!

It is possible with the use of INDIRECT but I wouldn't really recommend it as the formula becomes very long and un-auditable due to the INDIRECT.

 

My preferred approach would be to use Power Query to consolidate the data into a single table and then run the formula of that, or better still just use a Pivot Table for the reporting.

I moved all of my data into a new workbook and pasted only the values and reformatted everything to make sure there was nothing funky going on in the background that might be messing up the formula. I'm still running into the same problem. Even thought the formula has the data being pulled from two separate sheets within this one workbook, only Data sheet 1 is being pulled into the totals sheet. Data sheet 2 is not being pulled at all.

Hi Rebecca,

I would break the formula apart to see what’s not working. Often there’s things like spaces at the end of text that cause things not to work.

Check your look up text matches your data text by picking 2 cells and use =EXACT to compare

Also check your dates are real dates by changing the format to number and see if they change to numbers

"Check your look up text matches your data text by picking 2 cells and use =EXACT to compare"

can you explain further what you mean by this?

so i just looked this up and yes, my categories all match (from the set of data that is correctly pulling and the set of data that is not pulling). I have them set to pull from a category list, so that is not the issue. Could it be somewhere else? 

I figured it out! The dates in the second set of data had a zero in front of the first number so they didn't turn into numbers when i changes them to text like you suggested! Good catch! I just made them all real dates and now everything is fine. Thank you!!!