Hi All:
I have the following formula that is working on all 1800 lines of my spreadsheet, except for 11 lines (266-276). On these lines I get a #DIV/0! error.
=IF($D272="Store Total","",(W272-SUMIF($B$19:$B$1999,$B272,W$19:W$1999)/COUNTIF($B$19:$B$1999,$B272))/STDEV.P(INDIRECT("w"&MATCH($B272,$B$19:$B$1999,0)&":"&"w"&MATCH($B272,$B$19:$B$1999,1)))*(1.5))
Here's what is in each row that is referenced in the formula:
D is the cashier's last name, or the 'Store Total". If "store total" is present, I don't want anything in the cell. this part of the formula is working.
B is the Store number. Store 20 happens to be the problem store.
W is the percentage of refunds to sales given by each cashier.
The goal of the formula is to if each cashier's refunds to sales ratio is within a reasonable deviation from the store's refunds to sales ratio.
Again, it's working for all stores before store 20, and all stores after store 20.
Any help is appreciated.
I have the following formula that is working on all 1800 lines of my spreadsheet, except for 11 lines (266-276). On these lines I get a #DIV/0! error.
=IF($D272="Store Total","",(W272-SUMIF($B$19:$B$1999,$B272,W$19:W$1999)/COUNTIF($B$19:$B$1999,$B272))/STDEV.P(INDIRECT("w"&MATCH($B272,$B$19:$B$1999,0)&":"&"w"&MATCH($B272,$B$19:$B$1999,1)))*(1.5))
Here's what is in each row that is referenced in the formula:
D is the cashier's last name, or the 'Store Total". If "store total" is present, I don't want anything in the cell. this part of the formula is working.
B is the Store number. Store 20 happens to be the problem store.
W is the percentage of refunds to sales given by each cashier.
The goal of the formula is to if each cashier's refunds to sales ratio is within a reasonable deviation from the store's refunds to sales ratio.
Again, it's working for all stores before store 20, and all stores after store 20.
Any help is appreciated.