Quartile with Multiple condition without using Array

Siops

Board Regular
Joined
Sep 8, 2011
Messages
76
Hi, I have big amount of data and I am trying to do a Quartile formula with multiple condition. My challenge right now is if I use the formula using array, my worksheet takes a lot of time to complete the formula. Is there an alternative formula to do this? Please help. Thank you in advance.

A= Criteria1 Range
B= Criteria2 Range
C= Values
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Are you using whole column references? If so, try referencing the actual ranges instead.

Also, which version of Excel are you using? If you're using the latest version where the Filter function is available, try something like this...

VBA Code:
=QUARTILE(FILTER(C2:C10,(A2:A10="X")*(B2:B10="Y")),1)

...which returns the first quartile for Column C, where Column A equals "X" and Column B = "Y".

By the way, you should update your profile to include your Excel version, since it could make a difference in the solutions offered.
 
Upvote 0
Hi,

Yes, i am using whole column as reference as the worksheet needs to be updated daily.

My Excel version is 2016 which doesn't work the formula. Unfortunately, I cannot update the version as it is company restriction.
 
Upvote 0
In that case, I would suggest that you convert your data into a Table (Ribbon >> Insert tab >> Tables group >> Table), and then use the actual ranges for your formula. The references will automatically adjust as rows are added or removed.
 
Upvote 0
Oh sorry, I thought you already had a formula, but only it was too slow. Okay, no problem. You can use something like this...

VBA Code:
=QUARTILE(IF(A2:A100="X",IF(B2:B100="Y",C2:C100)),1)

...which needs to be confirmed with CONTROL+SHIFT+ENTER, not just ENTER.
 
Upvote 0
Cross posted Quartile with Multiple criteria without using Array

While we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered elsewhere.
 
Upvote 0
Domenic, yes I do have that formula but even if I convert my data to Tables, it still takes a lot of time to calculate the formula since I have lots of data dump (around 50,000 rows)

Fluff, i apologize for not posting that. It is my fault not looking on the Forum Rules completely.
 
Upvote 0
Then I would suggest using VBA to do the calculations, and place the result in the desired cell.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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