Consulting

Results 1 to 3 of 3

Thread: Conditional percentile calculation

  1. #1

    Conditional percentile calculation

    Hi,

    I have a file which I attached here (File.xlsx)

    I was basically trying to find some way, so that I can calculate Percentile for the 2nd column based on value at 1st column. Like, what is the 10th percentile of values corresponding to 'a' ???

    Ordinary way to calculate it using =PERCENTILE(B2:B12, 0.1) would give percentile for all numbers.

    Can somebody please help me how to do that?

    Thanks for your help.
    Attached Files Attached Files

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    try array-entering (Ctrl+Shift+Enter rather than just Enter):
    =PERCENTILE(IF(A2:A12="a",B2:B12), 0.1)
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    Thank you.

Posting Permissions

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