A tale of 2 formulas: Which one is more efficient?

RICH937

Board Regular
Joined
Apr 15, 2023
Messages
53
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
A Couple of days ago, @Fluff helped me simplify a formula in a model I have been working on. between my posting the Q, and Fluff's much more elegant solution, I worked out a different simplified solution. To simplify the question, I didn't include that this is part of an 80/20 (Pareto) analysis, and the % values were identifiers for the 80/20 threshold. I now have 2 formulas that work perfectly! What I am wondering is if one of the two is more efficient in its use of excel and my computer's horsepower. Does anyone have an opinion, or a way I can check the efficiency of a formula being used?

I finally got Xl2bb to work, so here's the paste! (whoot! whoot!)
EXCEL HELP2.xlsx
BCDEFGHIJKL
1GOAL: Identify C+P Count associated with minimum 80|20 % ID for each product in each category.
2
3CATEGORY (C)PRODUCT (P)GROUP (G)QTY (Q)RUNNING Q% RUNNING Q80|20 % IDC+P COUNTFLUFFRICH937
4CATEGORY 1PRODUCT 1GROUP 16,4106,410100%20%1YESYES
5CATEGORY 1PRODUCT 3GROUP 79,3719,37134%46%1YESYES
6CATEGORY 1PRODUCT 3GROUP 68,44517,81664%16%2YESYES
7CATEGORY 1PRODUCT 3GROUP 54,71922,53581%1%3YESYES
8CATEGORY 1PRODUCT 3GROUP 82,96325,49892%12%4NONO
9CATEGORY 1PRODUCT 3GROUP 92,15927,657100%20%5NONO
10CATEGORY 1PRODUCT 4GROUP 117,5107,51030%50%1YESYES
11CATEGORY 1PRODUCT 4GROUP 105,94613,45653%27%2YESYES
12CATEGORY 1PRODUCT 4GROUP 145,53718,99375%5%3YESYES
13CATEGORY 1PRODUCT 4GROUP 13,32022,31388%8%4NONO
14CATEGORY 1PRODUCT 4GROUP 73,02925,342100%20%5NONO
15CATEGORY 1PRODUCT 5GROUP 228,2118,21169%11%1YESYES
16CATEGORY 1PRODUCT 5GROUP 163,65311,864100%20%2NONO
17CATEGORY 2PRODUCT 2GROUP 49,6129,61242%38%1YESYES
18CATEGORY 2PRODUCT 2GROUP 39,48619,09883%3%2YESYES
19CATEGORY 2PRODUCT 2GROUP 24,00323,101100%20%3NONO
20CATEGORY 2PRODUCT 4GROUP 139,2029,20280%0%1YESYES
21CATEGORY 2PRODUCT 4GROUP 121,59210,79493%13%2NONO
22CATEGORY 2PRODUCT 4GROUP 1577211,566100%20%3NONO
23CATEGORY 2PRODUCT 5GROUP 207,4407,44030%50%1YESYES
24CATEGORY 2PRODUCT 5GROUP 176,47313,91356%24%2YESYES
25CATEGORY 2PRODUCT 5GROUP 213,55017,46371%9%3YESYES
26CATEGORY 2PRODUCT 5GROUP 193,51220,97585%5%4YESYES
27CATEGORY 2PRODUCT 5GROUP 181,95122,92693%13%5NONO
28CATEGORY 2PRODUCT 5GROUP 81,79924,725100%20%6NONO
29FLUFF FORMULA:IF(I4<=(TAKE(SORT(FILTER($H$4:$I$28,($B$4:$B$28=B4)*($C$4:$C$28=C4))),1,-1)),"YES","NO")
30RICH937 FORMULA:IF(G4<=((MIN(FILTER($H$4:$H$28,($B$4:$B$28=B4)*($C$4:$C$28=C4))))+0.8),"YES","NO")
Sheet1
Cell Formulas
RangeFormula
K4:K28K4=IF(I4<=(TAKE(SORT(FILTER($H$4:$I$28,($B$4:$B$28=B4)*($C$4:$C$28=C4))),1,-1)),"YES","NO")
L4:L28L4=IF(G4<=((MIN(FILTER($H$4:$H$28,($B$4:$B$28=B4)*($C$4:$C$28=C4))))+0.8),"YES","NO")
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Using FastExcel v3 (over what is a small data set) there is nothing between them, at a push Fluff's is more often faster over the runs (but not always) but we we are talking in the range of 0.020 milliseconds difference.
 
Upvote 1
Solution

Forum statistics

Threads
1,215,080
Messages
6,123,013
Members
449,093
Latest member
ikke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top