Can someone please clarify why I'm having trouble with getting accurate results with the following formula? The formula will average the amount of ALL sales that took place within the specified date range in the formula (named cell ranges "begin_date" & "ending_date") and not eliminate the records with the ID of 001.
=AVERAGEFS(A1:A100,B1:B100,"<>001",C1:C100,">="&begin_date,C1:C100,"<="&ending_date) Note: I did also try "<>"&"001" to no avail.
On the contrary the formula seems to work fine when averaging the range for all that ARE equal to 001 (i.e. entering the formula in this form: =AVERAGEFS(A1:A100,B1:B100,"001",C1:C100,">="&begin_date,C1:C100,"<="&ending_date) ) but for some reason it will not work when using the operator <>.
I played around with the formula and tried substituting all ID's that were 001 with a text string of abc and then replaced the 001 in the formula with abc and then finally it worked.
Another note to point out is the "001" is the result of a formula that is extracting a 3 digit code from a string in another column elsewhere in the sheet using the LEFT function.
=AVERAGEFS(A1:A100,B1:B100,"<>001",C1:C100,">="&begin_date,C1:C100,"<="&ending_date) Note: I did also try "<>"&"001" to no avail.
On the contrary the formula seems to work fine when averaging the range for all that ARE equal to 001 (i.e. entering the formula in this form: =AVERAGEFS(A1:A100,B1:B100,"001",C1:C100,">="&begin_date,C1:C100,"<="&ending_date) ) but for some reason it will not work when using the operator <>.
I played around with the formula and tried substituting all ID's that were 001 with a text string of abc and then replaced the 001 in the formula with abc and then finally it worked.
Another note to point out is the "001" is the result of a formula that is extracting a 3 digit code from a string in another column elsewhere in the sheet using the LEFT function.