+ Reply to Thread
Results 1 to 4 of 4

How to calculate five number summary across an array

  1. #1
    Registered User
    Join Date
    07-20-2018
    Location
    Mesa, AZ
    MS-Off Ver
    Windows7
    Posts
    1

    How to calculate five number summary across an array

    I'm having trouble figuring out how to calculate the five number summary (min, Q1, Q2, Q3, max) with my data set. My data is set up like this:

    Column A, Column B

    China, 1 (China in Column A, 1 in column B)
    Argentina, 1
    Canada, 3
    China, 4
    Argentina, 6
    Canada, 8
    China, 10
    Argentina, 5
    Canada, 11

    The formula for min that doesn't work is =if(A:A="Argentina,Min(B:B)). Q1 through Max I tried to do in a similar fashion. Any ideas on how to write the formulas so that it only calculates the five number summary across a range of values that meet the specific country parameter?

    Thanks for your help! And hello from boiling AZ.

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: How to calculate five number summary across an array

    Attach a sample workbook mocking up what you expect as your result.

    Go Advanced -> Manage Attachments -> Upload

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to calculate five number summary across an array

    I don't see your excel version (profile - Windows7 is not a version of Office)
    but maybe you are allowed to use PowerQuery

    is that what you want?

    Ctry no Ctry Min Max
    China
    1
    China
    1
    10
    Argentina
    1
    Argentina
    1
    6
    Canada
    3
    Canada
    3
    11
    China
    4
    Argentina
    6
    Canada
    8
    China
    10
    Argentina
    5
    Canada
    11

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: How to calculate five number summary across an array

    try the below array formula (better to use specific range instead of using entire column, like A1:A1000 AND B1:B1000)

    =MIN(if(A:A="Argentina",B:B))


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ 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. vba to calculate record summary
    By saravanan1981 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-09-2017, 07:28 AM
  2. [SOLVED] Calculate Break deduction for timesheet summary
    By majorqt75 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-16-2017, 12:20 PM
  3. How to calculate percentage rate increase with annual summary?
    By brianheins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-07-2014, 12:55 PM
  4. Calculate Consolidated Summary
    By ManInRed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-26-2013, 05:44 AM
  5. I want help about calculate summary in excel.
    By wordinvestor in forum Excel General
    Replies: 8
    Last Post: 04-09-2012, 07:32 AM
  6. Customer List Summary (Array?)
    By robert_shindorf in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-10-2011, 07:06 PM
  7. Calculate Summary dynamic name range
    By Souris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2005, 12:05 PM

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