I am attempting to remove the highest outlier(s) from a data set and return the next highest value. The following formula has been created, =MAX(IF($B:$B=R2,IF(E:E<((QUARTILE(IF($B:$B=R2,E:E),3)+((QUARTILE(IF($B:$B=R2,E:E),3)-QUARTILE(IF($B:$B=R2,E:E),1))*3))),E:E))) This formula returns the expected result after hours of calculation. I believe there must be a simpler and quicker way to return the result I need either through a less volatile formula or VBA. I am also wondering if unformatted data is causing the lag. The raw data from the client is formatted at General.
Column B is the list of store #'s
R2 = is the store I am looking for the highest value in column E
I've pared down the data to provide an example but there are several hundred store numbers and a transaction for each date for each store, approximated 80,000 rows of data. In the below data the result I am expecting is 6,610
3360 10/9/2016 6,503
3360 10/28/2016 6,210
3360 10/1/2016 6,251
3360 10/21/2016 6,610
3360 10/30/2016 6,308
3360 10/13/2016 6,001
3360 10/27/2016 6,080
3360 10/2/2016 6,204
3360 10/7/2016 7,205
3360 10/19/2016 5,812
3360 10/5/2016 5,701
3360 10/25/2016 5,810
3360 10/24/2016 5,707
Bookmarks