Filter function returning a "0" (Zero) when the source cell is blank or null

%3CLINGO-SUB%20id%3D%22lingo-sub-1378291%22%20slang%3D%22en-US%22%3EFilter%20function%20returning%20a%20%220%22%20(Zero)%20when%20the%20source%20cell%20is%20blank%20or%20null%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1378291%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20hoping%20that%20this%20isn't%20too%20obvious%20but%20I've%20noticed%20this%20situation%20several%20times%20and%20have%20had%20to%20work%20around%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BI%20have%20a%20situation%20where%20the%20output%20of%20a%20FILTER%20function%20is%20creating%20a%20%220%22%20(Zero)%20when%20the%20input%20cell%20is%20blank.%20I'%20tested%20for%20possible%20spaces%20or%20a%20real%20zero%20in%20the%20source%20and%20come%20up%20dry.%20The%20source%20really%20is%20a%20null.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20end%20result%20is%20when%20I%20go%20to%20compare%20the%20contents%20of%20the%20output%20cell%20in%20a%20SUMIFS%20there%20is%20a%20no-match%20situation%20and%20the%20values%20I%20need%20are%20not%20added%20into%20the%20sum.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20long%20as%20the%20source%20cell%20has%20anything%20in%20it%2C%20other%20than%20a%20null%2C%20all%20is%20good.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20seen%20this%20before%20but%20have%20yet%20to%20find%20an%20answer.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20the%20formula%20I'm%20using%20to%20create%20the%20data%20I%20need.%20The%20Cell%20in%20question%20is%20%3CSTRONG%3ETransactions!Expense_Sub_Center%3C%2FSTRONG%3E.%20When%20if%20is%20Null%20or%20empty%20I%20get%20a%20zero-entry%20in%20the%20output%20cell.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DSORT((FILTER(CHOOSE(%7B1%2C2%2C3%2C4%2C5%2C6%7D%2CTransactions!Provider%2CTransactions!Expense_Center%2C%20Transactions!Expense_Sub_Center%2CTransactions!Account%2CTransactions!Due_Date%2CTransactions!Budgeted_Amount)%2C(Transactions!Provider%26lt%3B%26gt%3B%22%22)*(Transactions!Expense_Center%26lt%3B%26gt%3B%22%22)*(Transactions!Category%3D%22Expense%22)*(Transactions!Budgeted_Amount%26lt%3B%26gt%3B%22%22)%2C%22%22))%2C%7B1%2C2%2C3%2C4%2C5%2C6%7D)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20attached%20a%20copy%20of%20the%20file.%20The%20source%20sheet%20is%20%22Transactions%22%20and%20the%20output%20sheet%20is%20%22Budget%20Table%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETheOldPuterMan%20AKA%20John%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1378291%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1794695%22%20slang%3D%22en-US%22%3ERe%3A%20Filter%20function%20returning%20a%20%220%22%20(Zero)%20when%20the%20source%20cell%20is%20blank%20or%20null%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1794695%22%20slang%3D%22en-US%22%3EI%20faced%20the%20same%20problem%20a%20few%20weeks%20ago.%20Since%20I%20could%20not%20find%20a%20permanent%20solution%2C%20I%20used%20the%20following%20basic%20formula%20as%20a%20workaround.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3DIF(SORT((FILTER(CHOOSE(%7B1%5C2%5C3%5C4%5C5%5C6%7D%3BTransactions!Provider%3BTransactions!Expense_Center%3B%20Transactions!Expense_Sub_Center%3BTransactions!Account%3BTransactions!Due_Date%3BTransactions!Budgeted_Amount)%3B(Transactions!Provider%26lt%3B%26gt%3B%22%22)*(Transactions!Expense_Center%26lt%3B%26gt%3B%22%22)*(Transactions!Category%3D%22Expense%22)*(Transactions!Budgeted_Amount%26lt%3B%26gt%3B%22%22)%3B%22%22))%3B%7B1%5C2%5C3%5C4%5C5%5C6%7D)%3D0%3B%22%22%3BSORT((FILTER(CHOOSE(%7B1%5C2%5C3%5C4%5C5%5C6%7D%3BTransactions!Provider%3BTransactions!Expense_Center%3B%20Transactions!Expense_Sub_Center%3BTransactions!Account%3BTransactions!Due_Date%3BTransactions!Budgeted_Amount)%3B(Transactions!Provider%26lt%3B%26gt%3B%22%22)*(Transactions!Expense_Center%26lt%3B%26gt%3B%22%22)*(Transactions!Category%3D%22Expense%22)*(Transactions!Budgeted_Amount%26lt%3B%26gt%3B%22%22)%3B%22%22))%3B%7B1%5C2%5C3%5C4%5C5%5C6%7D))%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1794856%22%20slang%3D%22de-DE%22%3ESubject%3A%20Filter%20function%20returning%20a%20%220%22%20(Zero)%20when%20the%20source%20cell%20is%20blank%20or%20null%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1794856%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F317593%22%20target%3D%22_blank%22%3E%40TheOldPuterMan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20are%20many%20ways%20in%20Excel%20that%20lead%20to%20a%20result%2C%20here%20is%20a%20small%20suggestion.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETry%20conditional%20formatting%20%3CBR%20%2F%3E%20How%20about%20with%20%3D%20and%20%3CBR%20%2F%3E%20(a1%20%26lt%3B%26gt%3B%20%22%22%3B%20a1%26gt%3B%20%3D%200)%3F%20%3CBR%20%2F%3E%20a1%20is%20of%20course%20your%20field%20to%20be%20checked.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20be%20happy%20to%20know%20if%20I%20could%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*%20Kindly%20Mark%20and%20Vote%20this%20reply%20if%20it%20helps%20please%2C%20as%20it%20will%20be%20beneficial%20to%20more%20community%20members%20reading%20here.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1796274%22%20slang%3D%22en-US%22%3ERe%3A%20Filter%20function%20returning%20a%20%220%22%20(Zero)%20when%20the%20source%20cell%20is%20blank%20or%20null%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1796274%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F762434%22%20target%3D%22_blank%22%3E%40ist_eco%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20IF()%20you%20return%20empty%20strings%20instead%20of%20zeroes%2C%20but%20that%20won't%20reduce%20the%20spill%20range.%20With%20that%20the%20option%20could%20be%20to%20apply%20custom%20number%20formatting%20which%20hides%20the%20zeroes.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIMHO%2C%20to%20exclude%20them%20at%20all%20it's%20better%20something%20like%20nested%20filter%3C%2FP%3E%0A%3CP%3E%3DFILTER(FILTER(something)%2CFILTER(something)%26lt%3B%26gt%3B0)%3C%2FP%3E%0A%3CP%3Eor%20even%20better%20with%20LET%20if%20it's%20avilable%3C%2FP%3E%0A%3CP%3E%3DLET(myFilter%2C%26nbsp%3BFILTER(something)%2C%20Result%2C%20FILTER(myFilter%2C%20myFilter%26lt%3B%26gt%3B0)%2C%20Result)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1928129%22%20slang%3D%22en-US%22%3ERe%3A%20Filter%20function%20returning%20a%20%220%22%20(Zero)%20when%20the%20source%20cell%20is%20blank%20or%20null%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1928129%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F317593%22%20target%3D%22_blank%22%3E%40TheOldPuterMan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20I'm%20understanding%20your%20question%20correctly.%20I'm%20new%20to%20excel%20but%20coming%20from%20google%20sheets.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20I%20recently%20was%20tasked%20with%20creating%20materials%20lists%20that%20use%20the%20%3DFILTER%20function.%20If%20there%20is%20an%20empty%20cell%20in%20my%20%3DFILTER%20range%2C%20it%20returns%20a%20zero.%20I%20realized%20that%20excel%20is%20programmed%20to%20ignore%20the%20apostrophe%20(%20'%20)%20symbol.%20I%20filled%20all%20the%20empty%20cells%20in%20my%20filter%20range%20with%20the%20apostrophes%20and%20now%20it%20presents%20a%20blank%20cell%20rather%20than%20a%20zero.%20in%20my%20test%2C%20SUMIFS%20skips%20over%20the%20apostrophe%20and%20continues%20to%20function%20properly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPerhaps%20I%20misunderstood%20your%20question%20and%20suggested%20an%20inexperienced%20solution%20to%20something%20else%20but%20I%20hope%20this%20helps%20you%20or%20someone%20else.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1928240%22%20slang%3D%22en-US%22%3ERe%3A%20Filter%20function%20returning%20a%20%220%22%20(Zero)%20when%20the%20source%20cell%20is%20blank%20or%20null%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1928240%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F880439%22%20target%3D%22_blank%22%3E%40NotARoofer%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EActually%20you%20added%20empty%20texts%20like%20%3D%22%22%20to%20such%20cells.%20SUM()%20and%20some%20other%20functions%20ignore%20any%20texts%20calculating%20results%2C%20thus%20cells%20with%20empty%20string%20(as%20well%20as%20cells%20with%20any%20other%20texts)%20don't%20affect%20totals%20calculated%20by%20SUM...().%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThus%20just%20take%20into%20account%20you%20are%20working%20with%20texts.%20If%2C%20for%20example%2C%20in%20A1%20you%20add%20'%2C%20when%20%3DA1%26gt%3B25%20returns%20TRUE%20since%20any%20text%20considered%20greater%20than%20any%20number.%20If%20A1%20is%20blank%2C%20when%26nbsp%3B%3DA1%26gt%3B25%20returns%20FALSE%20since%20blank%20here%20is%20interpreted%20as%20zero.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149466%22%20slang%3D%22en-US%22%3ERe%3A%20Filter%20function%20returning%20a%20%220%22%20(Zero)%20when%20the%20source%20cell%20is%20blank%20or%20null%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149466%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F317593%22%20target%3D%22_blank%22%3E%40TheOldPuterMan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20been%20faced%20with%20the%20same%20problem.%3C%2FP%3E%3CP%3ETo%20solve%20it%2C%20I%20enclose%20the%20FILTER%20function%20in%20a%20TEXT%20function.%3C%2FP%3E%3CP%3E%3DTEXT(%20FILTER(%20....%20)%2C%20%22%22%20)%3C%2FP%3E%3CP%3EThis%20keeps%20all%20texts%20in%20their%20normal%20format%2C%20but%20converts%20any%20number%20in%20an%20empty%20string.%3C%2FP%3E%3CP%3EOf%20course%2C%20il%20your%20source%20data%20contains%20numbers%20and%20you%20want%20to%20keep%20them%2C%20this%20is%20probably%20not%20the%20right%20solution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2396335%22%20slang%3D%22en-US%22%3ERe%3A%20Filter%20function%20returning%20a%20%220%22%20(Zero)%20when%20the%20source%20cell%20is%20blank%20or%20null%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2396335%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20was%20so%20close%20to%20solving%20my%20issue.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20it%20pulling%20people%20and%20it%20was%20showing%20a%200%20in%20the%20email%20address%20column%20if%20they%20didn't%20have%20an%20email%20address.%20Your%20TEXT()%20solution%20fixed%20that.%20Unfortunately%20I%20was%20also%20trying%20to%20pull%20in%20phone%20numbers.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F972362%22%20target%3D%22_blank%22%3E%40Sylvie_in_France%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEDIT%3A%20Now%20I%20am%20doing%20%3DIF(ISBLANK(FILTER(blahblahblah))%2C%22%22%2CFILTER(blahblahblah))%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2417084%22%20slang%3D%22en-US%22%3ERe%3A%20Filter%20function%20returning%20a%20%220%22%20(Zero)%20when%20the%20source%20cell%20is%20blank%20or%20null%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2417084%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F317593%22%20target%3D%22_blank%22%3E%40TheOldPuterMan%3C%2FA%3E%26nbsp%3BThe%20simple%20fix%20for%20me%20was%20unchecking%20the%20'Show%20a%20zero%20in%20cells%20that%20have%20zero%20value'%3C%2FP%3E%3CP%3ELocated%20here%3A%26nbsp%3B%20%3CSTRONG%3EFile%26gt%3BOptions%26gt%3BAdvanced%26gt%3BDisplay%20options%20for%20this%20worksheet%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202021-06-04%20102512.jpg%22%20style%3D%22width%3A%20615px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286328i8F14F1447CB41BDB%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202021-06-04%20102512.jpg%22%20alt%3D%22Screenshot%202021-06-04%20102512.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2425934%22%20slang%3D%22en-US%22%3ERe%3A%20Filter%20function%20returning%20a%20%220%22%20(Zero)%20when%20the%20source%20cell%20is%20blank%20or%20null%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2425934%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1065997%22%20target%3D%22_blank%22%3E%40RC2pc%3C%2FA%3E%26nbsp%3B%20the%20ISBlank%20worked%20for%20me%20thanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DIF(ISBLANK(FILTER(A2%3AM2911%2CB2%3AB2911%3DS4))%2C%22%22%2CFILTER(A2%3AM2911%2CB2%3AB2911%3DS4))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Enew%20formula%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hello all,

 

I'm hoping that this isn't too obvious but I've noticed this situation several times and have had to work around it.

 

 I have a situation where the output of a FILTER function is creating a "0" (Zero) when the input cell is blank. I' tested for possible spaces or a real zero in the source and come up dry. The source really is a null.

 

The end result is when I go to compare the contents of the output cell in a SUMIFS there is a no-match situation and the values I need are not added into the sum. 

 

As long as the source cell has anything in it, other than a null, all is good. 

 

I've seen this before but have yet to find an answer.

 

This is the formula I'm using to create the data I need. The Cell in question is Transactions!Expense_Sub_Center. When if is Null or empty I get a zero-entry in the output cell.

 

=SORT((FILTER(CHOOSE({1,2,3,4,5,6},Transactions!Provider,Transactions!Expense_Center, Transactions!Expense_Sub_Center,Transactions!Account,Transactions!Due_Date,Transactions!Budgeted_Amount),(Transactions!Provider<>"")*(Transactions!Expense_Center<>"")*(Transactions!Category="Expense")*(Transactions!Budgeted_Amount<>""),"")),{1,2,3,4,5,6})

 

I've attached a copy of the file. The source sheet is "Transactions" and the output sheet is "Budget Table".

 

Thanks all,

 

TheOldPuterMan AKA John

9 Replies
I faced the same problem a few weeks ago. Since I could not find a permanent solution, I used the following basic formula as a workaround.


=IF(SORT((FILTER(CHOOSE({1\2\3\4\5\6};Transactions!Provider;Transactions!Expense_Center; Transactions!Expense_Sub_Center;Transactions!Account;Transactions!Due_Date;Transactions!Budgeted_Amount);(Transactions!Provider<>"")*(Transactions!Expense_Center<>"")*(Transactions!Category="Expense")*(Transactions!Budgeted_Amount<>"");""));{1\2\3\4\5\6})=0;"";SORT((FILTER(CHOOSE({1\2\3\4\5\6};Transactions!Provider;Transactions!Expense_Center; Transactions!Expense_Sub_Center;Transactions!Account;Transactions!Due_Date;Transactions!Budgeted_Amount);(Transactions!Provider<>"")*(Transactions!Expense_Center<>"")*(Transactions!Category="Expense")*(Transactions!Budgeted_Amount<>"");""));{1\2\3\4\5\6}))

@TheOldPuterMan 

 

There are many ways in Excel that lead to a result, here is a small suggestion.

 

Try conditional formatting
How about with
= and (a1 <> ""; a1> = 0)?
a1 is of course your field to be checked.

 

I would be happy to know if I could help.

 

Nikolino

I know I don't know anything (Socrates)

 

* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here.

@ist_eco 

With IF() you return empty strings instead of zeroes, but that won't reduce the spill range. With that the option could be to apply custom number formatting which hides the zeroes.

 

IMHO, to exclude them at all it's better something like nested filter

=FILTER(FILTER(something),FILTER(something)<>0)

or even better with LET if it's avilable

=LET(myFilter, FILTER(something), Result, FILTER(myFilter, myFilter<>0), Result)

@TheOldPuterMan 

 

I hope I'm understanding your question correctly. I'm new to excel but coming from google sheets.

 

However, I recently was tasked with creating materials lists that use the =FILTER function. If there is an empty cell in my =FILTER range, it returns a zero. I realized that excel is programmed to ignore the apostrophe ( ' ) symbol. I filled all the empty cells in my filter range with the apostrophes and now it presents a blank cell rather than a zero. in my test, SUMIFS skips over the apostrophe and continues to function properly.

 

Perhaps I misunderstood your question and suggested an inexperienced solution to something else but I hope this helps you or someone else.

@NotARoofer 

Actually you added empty texts like ="" to such cells. SUM() and some other functions ignore any texts calculating results, thus cells with empty string (as well as cells with any other texts) don't affect totals calculated by SUM...().

 

Thus just take into account you are working with texts. If, for example, in A1 you add ', when =A1>25 returns TRUE since any text considered greater than any number. If A1 is blank, when =A1>25 returns FALSE since blank here is interpreted as zero.

@TheOldPuterMan 

Hi 

I've been faced with the same problem.

To solve it, I enclose the FILTER function in a TEXT function.

=TEXT( FILTER( .... ), "" )

This keeps all texts in their normal format, but converts any number in an empty string.

Of course, il your source data contains numbers and you want to keep them, this is probably not the right solution.

 

This was so close to solving my issue. 

I have it pulling people and it was showing a 0 in the email address column if they didn't have an email address. Your TEXT() solution fixed that. Unfortunately I was also trying to pull in phone numbers. 

@Sylvie_in_France 

 

EDIT: Now I am doing =IF(ISBLANK(FILTER(blahblahblah)),"",FILTER(blahblahblah))

@TheOldPuterMan The simple fix for me was unchecking the 'Show a zero in cells that have zero value'

Located here:  File>Options>Advanced>Display options for this worksheet

 

 

Screenshot 2021-06-04 102512.jpg

@RC2pc  the ISBlank worked for me thanks

 

=IF(ISBLANK(FILTER(A2:M2911,B2:B2911=S4)),"",FILTER(A2:M2911,B2:B2911=S4))

 

new formula