SOLVED

Sumifs >=

%3CLINGO-SUB%20id%3D%22lingo-sub-3511911%22%20slang%3D%22en-US%22%3ESumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3511911%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20all%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20sum%20all%20the%20units%20in%20column%20X%20assuming%20it%20says%20%22Sobeys%22%20in%20column%20O%2C%20and%20%22ON%22%20in%20column%20S%20and%20is%20%26gt%3B%3D%20200.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20some%20reason%20the%20formula%20works%20if%20it%20is%20%3D200%2C%20but%20not%20if%20I%20put%20%26lt%3B%20or%20%26gt%3B.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%2C%20the%20below%20formula%20does%20not%20work%20and%20I%20just%20get%200.%3C%2FP%3E%3CP%3E%3DSUMIFS('Iri%20Comp%20Data'!%24X%3A%24X%2C'Iri%20Comp%20Data'!%24O%3A%24O%2C%22*Sobeys*%22%2C'Iri%20Comp%20Data'!%24S%3A%24S%2C%22ON%22%2C'Iri%20Comp%20Data'!%24C%3A%24C%2C%22%26gt%3B%3D200%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%20the%20below%20formula%20counts%20all%20values%20of%20200%20perfectly.%3C%2FP%3E%3CP%3E%3DSUMIFS('Iri%20Comp%20Data'!%24X%3A%24X%2C'Iri%20Comp%20Data'!%24O%3A%24O%2C%22*Sobeys*%22%2C'Iri%20Comp%20Data'!%24S%3A%24S%2C%22ON%22%2C'Iri%20Comp%20Data'!%24C%3A%24C%2C%22%26gt%3B200%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20also%20tried%20the%20formula%20and%20I%20still%20just%20get%20a%200.%3C%2FP%3E%3CP%3E%3DSUMIFS('Iri%20Comp%20Data'!%24X%3A%24X%2C'Iri%20Comp%20Data'!%24O%3A%24O%2C%22*Sobeys*%22%2C'Iri%20Comp%20Data'!%24S%3A%24S%2C%22ON%22%2C'Iri%20Comp%20Data'!%24C%3A%24C%2C%22%26lt%3B200%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20am%20I%20doing%20wrong%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3511911%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3512077%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3512077%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1415563%22%20target%3D%22_blank%22%3E%40Renattae_Schmidt%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DSUMIFS('Iri%20Comp%20Data'!V%3AV%2C'Iri%20Comp%20Data'!O%3AO%2C%22*Sobeys*%22%2C'Iri%20Comp%20Data'!S%3AS%2C%22ON%22%2C'Iri%20Comp%20Data'!V%3AV%2C%22%26gt%3B%3D%22%26amp%3B200)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EI've%20changed%20the%20last%20criteria%20to%26nbsp%3B%22%26gt%3B%3D%22%26amp%3B200%20and%20it%20works%20in%20my%20sheet.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sumifs.JPG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F380635i34D2474F1D5AE666%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22sumifs.JPG%22%20alt%3D%22sumifs.JPG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3512226%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3512226%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1415563%22%20target%3D%22_blank%22%3E%40Renattae_Schmidt%3C%2FA%3E%26nbsp%3B%20I%20suspect%20the%20issue%20with%20the%20values%20in%20column%20C%20being%20text%20values%20instead%20of%20number%20values.%26nbsp%3B%20Try%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel-formula%22%3E%3CCODE%3E%3DSUMPRODUCT('Iri%20Comp%20Data'!%24X%3A%24X%20*%20ISNUMBER(SEARCH(%22Sobeys%22%2C'Iri%20Comp%20Data'!%24O%3A%24O))*('Iri%20Comp%20Data'!%24S%3A%24S%3D%22ON%22)*(--'Iri%20Comp%20Data'!%24C%3A%24C%20%26gt%3B%3D%20200))%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3516731%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3516731%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20the%20response%2C%20unfortunately%20the%20formula%20you%20gave%20give%20me%20a%20%23VALUE%20error.%20Also%2C%20column%20C%20is%20formatted%20as%20a%20number.%3CBR%20%2F%3E%3CBR%20%2F%3EAny%20other%20suggestions%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%2C%3CBR%20%2F%3ERenattae%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3517373%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3517373%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1415563%22%20target%3D%22_blank%22%3E%40Renattae_Schmidt%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat's%20better%20to%20discuss%20with%20sample%20file.%20Column%20C%20could%20be%20formatted%20as%20number%2C%20but%20contain%20texts%20(applying%20number%20format%20to%20%22200%22%20doesn't%20convert%20it%20to%20number%20200).%20That%20could%20be%20non-printable%20characters%20if%20you%20copy%2Fpaste%20your%20data%20from%20Web.%20Whatever.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3518686%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3518686%22%20slang%3D%22en-US%22%3EAs%20Sergei%20already%20mentioned%20it%20would%20be%20easier%20if%20you%20could%20attach%20the%20workbook%20or%20provide%20a%20link%20to%20it%20(no%20private%2C%20confidential%2C%20personal%20info).%20A%20simple%20test%20you%20could%20do%20is%20%3DC1%2B1%20and%20fill%20down%20to%20see%20if%20any%2Fall%20those%20cells%20have%20issues%20with%20the%20format.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3520257%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3520257%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20find%20attached%20an%20example%20of%20the%20work%20book%20I%20am%20using.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3520671%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3520671%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1415563%22%20target%3D%22_blank%22%3E%40Renattae_Schmidt%3C%2FA%3E%26nbsp%3BSo%20that%20column%20C%20is%20text.%26nbsp%3B%20The%20formula%20is%26nbsp%3B%3DRIGHT(B2%2C3)%20which%20returns%20text.%26nbsp%3B%20Even%20though%20you%20set%20the%20'formatting'%20of%20that%20column%20to%20formatting%20style%20called%20NUMBER%20it%20doesn't%20convert%20that%20text%20to%20numbers.%26nbsp%3B%20It%20is%20confusing%2C%20but%20it%20only%20sets%20the%20formatting%20of%20actual%20numbers%20in%20that%20column%20to%20a%20certain%20format.%26nbsp%3B%20That%20said%20you%20can%20fix%20you%20issue%20by%20simple%20changing%20that%20formula%20to%26nbsp%3B%3D--RIGHT(B2%2C3)%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20%22--%22%20before%20the%20RIGHT%20performs%20a%20multiplication%20by%20-1%20twice%20and%20Excel's%20Formula%20Calculator%20DOES%20try%20to%20convert%20the%20text%20into%20a%20value.%26nbsp%3B%20It%20is%20shortcut%20to%20the%20alternative%20function%2C%20which%20you%20could%20also%20use%3A%20NUMBERFORMAT()%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20recommend%20formatting%20the%20table%20of%20data%20as%20a%20Table%20(HOME%20-%26gt%3B%20STYLES%20-%26gt%3B%20Format%20as%20Table)%20and%20then%20use%20the%20table%20structure%20references%20so%20you%20aren't%20forcing%20Excel%20to%20look%20at%20the%20whole%20column%20of%20empty%20values.%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20attached%20I%20updated%20it%20accordingly%20and%20gave%20examples%20of%20both.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3520799%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3520799%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1415563%22%20target%3D%22_blank%22%3E%40Renattae_Schmidt%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3EIf%20you%20change%20in%20column%20C%20%3A%20right%20(B2%2C3)%20in%20value(right(b2%2C3))%20for%20all%20cells%2C%20all%20formules%20you%20used%20will%20work%20correctly.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3521340%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3521340%22%20slang%3D%22en-US%22%3EThank%20you%20for%20your%20response%2C%20but%20even%20when%20I%20put%20the%20above%20formula%20in%20column%20C%2C%20I%20get%20a%20number%20that%20is%20way%20higher%20then%20it%20should%20be.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3521341%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3521341%22%20slang%3D%22en-US%22%3EThank%20you%20for%20your%20response%2C%20but%20even%20when%20I%20put%20the%20above%20formula%20in%20column%20C%2C%20I%20get%20a%20number%20that%20is%20way%20higher%20then%20it%20should%20be.%20Indeed%20in%20the%20workbook%20you%20attached%20the%20numbers%20are%20higher%20then%20they%20should%20be.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3521617%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3521617%22%20slang%3D%22en-US%22%3Eyou%20set%20one%20'filter'%20as%20%22*Sobeys*%22%20so%20it%20will%20also%20include%20%22Sobeys%20Urban%20Fresh%22%2C%20so%20did%20you%20want%20to%20include%20that%20also%3F%3CBR%20%2F%3EAlso%20in%20this%20formula%20you%20have%20%26gt%3B200%20but%20it%20gets%20much%20bigger%20if%20you%20include%20%26gt%3B%3D200%20as%20you%20noted%20in%20the%20original%20post.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3521620%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3521620%22%20slang%3D%22en-US%22%3EI%20do%20want%20to%20include%20Sobeys%20Urban%20Fresh.%20I%20tried%20replicating%20the%20filters%20the%20formula%20should%20be%20doing%20to%20spot%20check%20my%20work%2C%20and%20I%20don't%20get%20the%20same%20number.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3521729%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3521729%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1415563%22%20target%3D%22_blank%22%3E%40Renattae_Schmidt%3C%2FA%3E%26nbsp%3B%20I'm%20not%20sure%20what%20to%20tell%20you.%26nbsp%3B%20What%20number%20do%20you%20think%20it%20should%20be%3F%26nbsp%3B%20I%20got%20the%20same%201688%20using%20the%20manual%20drop%20down%20filters%20as%20shown%20below.%26nbsp%3B%20Notice%20in%20the%20bottom%20info%20bar%20the%20Sum%3A%201688%3C%2FP%3E%3CP%3EAny%20chance%20you%20were%20expecting%20244%3F%20as%20in%20the%20COUNT%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mtarler_0-1655485046989.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mtarler_0-1655485046989.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mtarler_0-1655485046989.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mtarler_0-1655485046989.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mtarler_0-1655485046989.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mtarler_0-1655485046989.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F381410iB9CCE4CA379F266D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mtarler_0-1655485046989.png%22%20alt%3D%22mtarler_0-1655485046989.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3529123%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3529123%22%20slang%3D%22en-US%22%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20going%20a%20bit%20crazy%20trying%20to%20get%20the%20same%20number%20as%20you.%20My%20formula%20is%20also%20getting%201688%2C%20but%20if%20I%20filter%20manually%20I%20am%20getting%20195.%3CBR%20%2F%3E%3CBR%20%2F%3EColumn%20C%3AC%20is%20filtered%20for%20anything%20less%20then%20200%2C%20column%20O%3AO%20is%20filtered%20for%20anything%20with%20Sobeys%2C%20and%20column%20S%3AS%20is%20filtered%20for%20ON.%3CBR%20%2F%3E%3CBR%20%2F%3EAny%20ideas%20why%20I%20am%20not%20getting%20the%20same%20number%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3529205%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3529205%22%20slang%3D%22en-US%22%3EYes%20if%20you%20filter%20for%20%26lt%3B200%20then%20195%20is%20what%20you%20get.%20The%20formula%20is%20filtering%20for%20%26gt%3B200%20and%20the%20original%20post%20mentioned%20%26gt%3B%3D200%20...%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3529428%22%20slang%3D%22en-US%22%3ERe%3A%20Sumifs%20%26amp%3Bgt%3B%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3529428%22%20slang%3D%22en-US%22%3EOh%20my%20goodness%2C%20you%20are%201%2C000%20right!%20Sorry%20for%20wasting%20your%20time%2C%20the%20formula%20works%20like%20a%20charm!%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello all, 

 

I am trying to sum all the units in column X assuming it says "Sobeys" in column O, and "ON" in column S and is >= 200. 

 

For some reason the formula works if it is =200, but not if I put < or >. 

 

For example, the below formula does not work and I just get 0.

=SUMIFS('Iri Comp Data'!$X:$X,'Iri Comp Data'!$O:$O,"*Sobeys*",'Iri Comp Data'!$S:$S,"ON",'Iri Comp Data'!$C:$C,">=200")

 

However the below formula counts all values of 200 perfectly.

=SUMIFS('Iri Comp Data'!$X:$X,'Iri Comp Data'!$O:$O,"*Sobeys*",'Iri Comp Data'!$S:$S,"ON",'Iri Comp Data'!$C:$C,">200")

 

I have also tried the formula and I still just get a 0.

=SUMIFS('Iri Comp Data'!$X:$X,'Iri Comp Data'!$O:$O,"*Sobeys*",'Iri Comp Data'!$S:$S,"ON",'Iri Comp Data'!$C:$C,"<200")

 

What am I doing wrong?

 

Thank you!

15 Replies

@Renattae_Schmidt  I suspect the issue with the values in column C being text values instead of number values.  Try this:

 

=SUMPRODUCT('Iri Comp Data'!$X:$X * ISNUMBER(SEARCH("Sobeys",'Iri Comp Data'!$O:$O))*('Iri Comp Data'!$S:$S="ON")*(--'Iri Comp Data'!$C:$C >= 200))
Hi @mtarler,

Thank you for the response, unfortunately the formula you gave give me a #VALUE error. Also, column C is formatted as a number.

Any other suggestions?

Thanks,
Renattae

@Renattae_Schmidt 

That's better to discuss with sample file. Column C could be formatted as number, but contain texts (applying number format to "200" doesn't convert it to number 200). That could be non-printable characters if you copy/paste your data from Web. Whatever.

As Sergei already mentioned it would be easier if you could attach the workbook or provide a link to it (no private, confidential, personal info). A simple test you could do is =C1+1 and fill down to see if any/all those cells have issues with the format.

@Sergei Baklan 

 

Please find attached an example of the work book I am using. 

 

Thank you

best response confirmed by Renattae_Schmidt (Occasional Contributor)
Solution

@Renattae_Schmidt So that column C is text.  The formula is =RIGHT(B2,3) which returns text.  Even though you set the 'formatting' of that column to formatting style called NUMBER it doesn't convert that text to numbers.  It is confusing, but it only sets the formatting of actual numbers in that column to a certain format.  That said you can fix you issue by simple changing that formula to =--RIGHT(B2,3) 

The "--" before the RIGHT performs a multiplication by -1 twice and Excel's Formula Calculator DOES try to convert the text into a value.  It is shortcut to the alternative function, which you could also use: NUMBERFORMAT() 

I also recommend formatting the table of data as a Table (HOME -> STYLES -> Format as Table) and then use the table structure references so you aren't forcing Excel to look at the whole column of empty values. 

In the attached I updated it accordingly and gave examples of both.

@Renattae_Schmidt 
If you change in column C : right (B2,3) in value(right(b2,3)) for all cells, all formules you used will work correctly.

Thank you for your response, but even when I put the above formula in column C, I get a number that is way higher then it should be.
Thank you for your response, but even when I put the above formula in column C, I get a number that is way higher then it should be. Indeed in the workbook you attached the numbers are higher then they should be.
you set one 'filter' as "*Sobeys*" so it will also include "Sobeys Urban Fresh", so did you want to include that also?
Also in this formula you have >200 but it gets much bigger if you include >=200 as you noted in the original post.
I do want to include Sobeys Urban Fresh. I tried replicating the filters the formula should be doing to spot check my work, and I don't get the same number.

@Renattae_Schmidt  I'm not sure what to tell you.  What number do you think it should be?  I got the same 1688 using the manual drop down filters as shown below.  Notice in the bottom info bar the Sum: 1688

Any chance you were expecting 244? as in the COUNT?

mtarler_0-1655485046989.png

 

Hello,

I am going a bit crazy trying to get the same number as you. My formula is also getting 1688, but if I filter manually I am getting 195.

Column C:C is filtered for anything less then 200, column O:O is filtered for anything with Sobeys, and column S:S is filtered for ON.

Any ideas why I am not getting the same number?

Thank you!
Yes if you filter for <200 then 195 is what you get. The formula is filtering for >200 and the original post mentioned >=200 ...
Oh my goodness, you are 1,000 right! Sorry for wasting your time, the formula works like a charm!