+ Reply to Thread
Results 1 to 6 of 6

Require a method to summarise my data

  1. #1
    Registered User
    Join Date
    11-19-2014
    Location
    Leicester, England
    MS-Off Ver
    MS Office 2010
    Posts
    3

    Require a method to summarise my data

    Hello, I'm a bit stumped as to the best way of displaying my data in meaningful way. To best explain it, I've attached a simple scenario in an excel file in the same format as my actual spreadsheet.

    Working with the attached file, lets say I want a table that orders each colour of ball by size. Like so:

    Colour Average diameter
    Red 8.2
    Blue 4.9
    Green 7.8
    Yellow 9.6

    The values above aren't true, but are what I'm trying to work out. Would something like this be possible? I am unsure how to go about it.

    Thank you,
    Rob
    Attached Files Attached Files
    Last edited by OmegaRob; 11-20-2014 at 12:55 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Require a method to summarise my data

    Hi, welcome to trhe forum

    Im not sure I understand what you want here There are 2 functions that can be used to determine the order of a range of values, perhaps 1 of these will be of use?

    1. RANK() will return the rank (1, 2 etc) of a value within a range
    2. LARGE() will return a list (when copied down) of values from a range, ranked from highest to lowest (=SMALL() will do teh same in ascending order
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Require a method to summarise my data

    It's complicated. I used ARRAYED formulas. With "red" in A17,

    =SUM((INDEX($C$3:$F$12,,MATCH(A17,$C$2:$F$2,0))*$B$3:$B$12)/SUM(INDEX($C$3:$F$12,,MATCH(A17,$C$2:$F$2,0))))
    ...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. Press F2 on that cell and try again.

    I checked it by typing out each ball diameter separately for red and got the same answer. See attached.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    11-19-2014
    Location
    Leicester, England
    MS-Off Ver
    MS Office 2010
    Posts
    3

    Re: Require a method to summarise my data

    Thank you for the responses, Chemist seems to have provided a working solution. Would you be able to explain the maths behind the formula?

    Thank you very much

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Require a method to summarise my data

    =SUM((INDEX($C$3:$F$12,,MATCH(A17,$C$2:$F$2,0))*$B$3:$B$12)/SUM(INDEX($C$3:$F$12,,MATCH(A17,$C$2:$F$2,0))))

    Part 1: SUM(INDEX($C$3:$F$12,,MATCH(A17,$C$2:$F$2,0))) will give the total number of red balls (A17 = red)

    Part 2: INDEX($C$3:$F$12,,MATCH(A17,$C$2:$F$2,0))*$B$3:$B$12) takes the number of red balls in each group and multiplies that * the avg diameter of that group.

    Part 3, SUM,( Part 1/Part 2) is calculated for each group and then summed for the total red balls. This works out to be the average diameter of the red balls.

    Did that make any sense?

  6. #6
    Registered User
    Join Date
    11-19-2014
    Location
    Leicester, England
    MS-Off Ver
    MS Office 2010
    Posts
    3

    Re: Require a method to summarise my data

    Yes, that makes sense. Thank you very much for your help - I've got it working in the actual spreadsheet

+ 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. Summarise data
    By harignz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-05-2014, 03:35 AM
  2. Summarise data
    By NWSIT in forum Excel General
    Replies: 2
    Last Post: 11-30-2010, 02:42 PM
  3. Pie chart to summarise data
    By t0v3 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-08-2008, 11:05 AM
  4. Summarise Worksheet Data
    By Jade in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2006, 12:40 AM
  5. [SOLVED] How do I summarise data from several workbooks?
    By Bobak in forum Excel General
    Replies: 4
    Last Post: 02-15-2006, 06:35 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