+ Reply to Thread
Results 1 to 9 of 9

Quartile with Multiple criteria without using Array

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 365
    Posts
    53

    Quartile with Multiple criteria without using Array

    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

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Quartile with Multiple criteria without using Array

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  3. #3
    Registered User
    Join Date
    10-10-2012
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 365
    Posts
    53

    Re: Quartile with Multiple criteria without using Array

    Hi Belida, I attached the sample file but in reality my data is around 50,000 rows that's why I am having problem using the array formula as it takes a lot of time to calculate the formula.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Quartile with Multiple criteria without using Array

    =SUMIFS(C2:C11,A2:A11,"10/1/2020",B2:B11,"Appointment")

  5. #5
    Registered User
    Join Date
    10-10-2012
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 365
    Posts
    53

    Re: Quartile with Multiple criteria without using Array

    That is SUM formula. Where's the quartile?

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Quartile with Multiple criteria without using Array

    This requires an array calculation if Column A and B are not sorted.

    Original formula
    =QUARTILE(IF($B:$B=B2,IF($A:$A=A2,$C:$C)),1) calcuatate 3 Million time per 1 cell

    Use limited row to reduce the calculation to 150k time would help with speed.

    =QUARTILE(IF($B$2:$B$50000=B2,IF($A$2:$A$50000=A2,$C$2:$C$50000)),1)


    Without array calculation, Column A and B need to be sorted and use a helper column.
    E2
    =A2&B2

    F2
    =QUARTILE(INDEX(C:C,MATCH(E2,E:E,)):INDEX(C:C,MATCH(E2,E:E)),1)
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-10-2012
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 365
    Posts
    53

    Re: Quartile with Multiple criteria without using Array

    Bo_Ry, this works! but how do I exclude in quartile calculation if the values is either blank or 0?

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Quartile with Multiple criteria without using Array

    Try
    =QUARTILE(IF($B$2:$B$50000=B2,IF($A$2:$A$50000=A2,IF($C$2:$C$50000,$C$2:$C$50000))),1)

  9. #9
    Registered User
    Join Date
    10-10-2012
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 365
    Posts
    53

    Re: Quartile with Multiple criteria without using Array

    Thanks a lot, Bo_Ry

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Quartile if basen on multiple variable criteria (3-7 out of 100)
    By Amonia in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-07-2019, 10:52 AM
  2. Quartile IF Array with OR conditions
    By TeamOSupremeO in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-20-2018, 06:18 PM
  3. Replies: 1
    Last Post: 08-05-2013, 01:52 PM
  4. Non Array QUARTILE and STDEV IF Formula
    By Maxpower33 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-28-2013, 08:15 AM
  5. Replies: 3
    Last Post: 06-01-2012, 02:06 PM
  6. Quartile Across Multiple sheets Given Criteria
    By ben10 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-28-2011, 01:25 PM
  7. Quartile with criteria
    By karaflas01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-16-2008, 11:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1