+ Reply to Thread
Results 1 to 11 of 11

group and analyse data

  1. #1
    Registered User
    Join Date
    11-04-2021
    Location
    Motru
    MS-Off Ver
    2019
    Posts
    11

    Question group and analyse data

    event_id menu_hint EVENT_NAME EVENT_DT SELECTION_NAME WIN_LOSE BSP
    191856472 AUS / Warragul (AUS) 4th Dec R1 520m Gr5 04-12-2021 08:08 5. Convoluted 0 9.953745
    191856472 AUS / Warragul (AUS) 4th Dec R1 520m Gr5 04-12-2021 08:08 3. Loui Wonton 0 38.853743
    191856472 AUS / Warragul (AUS) 4th Dec R1 520m Gr5 04-12-2021 08:08 1. Cherokee Outlaw 0 1.848149
    191856472 AUS / Warragul (AUS) 4th Dec R1 520m Gr5 04-12-2021 08:08 8. Smooth Jack 1 19.109564

    Hello . I have a CSV file with lots of entries like in the table above.
    this is just one of them and its a greyhound race with 4 dogs in it. the winner is the one with a 1 in the WIN_LOSE column .
    and there are about 80-90 of them each with 4 5 6 7 or eight dogs .
    I would like to analyse those races. but I have no Idea how to do that in excel.


    First I would like to know how can I see the relations between dogs , like:

    what is the BSP of the favorite in every race where it didnt win . in my example the favorite would be the one with 1.84 as BSP . and the winner with 19.1

    I have no idea how to .. kinda group those entries by the ID and analyse each one of them .
    I hope this is not too much to post or ask ..
    thanks !

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: group and analyse data

    You could use a column of formulas like this - assuming your table starts in column A

    =G2=MINIFS(G:G,A:A,A2,F:F,0)

    copied down to match your data - you can filter for TRUE to show all the favorites in a race who lost

    OR to show both winners and losers for those races

    =OR(G2=MINIFS(G:G,A:A,A2,F:F,0),AND(F2=1, G2<>MINIFS(G:G,A:A,A2,F:F,0)))
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: group and analyse data

    Hi,

    I'd be inclined to use a Pivot Table. The attached might give you a starter.. You can of course add all the fields for a full analysis. Add slicers as appropriate to more easily filter the data.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    11-04-2021
    Location
    Motru
    MS-Off Ver
    2019
    Posts
    11

    Re: group and analyse data

    this might be what I am looking for . I will learn a little bit about this pivot table and hopefully do my work . thanks you all excel wizards !

  5. #5
    Registered User
    Join Date
    11-04-2021
    Location
    Motru
    MS-Off Ver
    2019
    Posts
    11

    Re: group and analyse data

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    I'd be inclined to use a Pivot Table. The attached might give you a starter.. You can of course add all the fields for a full analysis. Add slicers as appropriate to more easily filter the data.


    umm. another question to you .you created another column with "Lowest BSP" . and it works . but only for a race . in my example with one race and 4 runners . in the real dataset with lots of races if I try to drag the formula down to be applied to all rows this part of your code ($H$2:$H$5,$G$2:$G$5,0) doesn't move down . and I cant figure it out how to make it work !

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,544

    Re: group and analyse data

    Please upload an Excel file that is representative of "real the dataset with lots of races" (instructions are given in the banner at the top of the page).
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    11-04-2021
    Location
    Motru
    MS-Off Ver
    2019
    Posts
    11

    Re: group and analyse data

    I did now attach a real example file of my dataset !
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,544

    Re: group and analyse data

    Form Post #1: I would like to know how can I see the relations between dogs , like: what is the BSP of the favorite in every race where it didnt win.
    1. Modify Richard's formula to read: =AND(G2=0,MINIFS(H$2:H$62,B$2:B$62,B2)=H2)
    2. Use the new column as a filter for the pivot table.
    Let us know if you have any questions.

  9. #9
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,290

    Re: group and analyse data

    Power Query
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    11-04-2021
    Location
    Motru
    MS-Off Ver
    2019
    Posts
    11

    Re: group and analyse data

    with your help and a little bit of python I managed to do what I wanted . thanks you very much !

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,544

    Re: group and analyse data

    Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Analyse of Data in a row
    By stephanep in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-31-2020, 08:39 AM
  2. Help - Statistical tools to use to analyse my data
    By Jessica91 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-17-2018, 10:49 AM
  3. Pivottable data analyse
    By harignz in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-27-2016, 03:28 AM
  4. [SOLVED] Help With Macro To Analyse Data
    By dodgemain in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2015, 03:47 PM
  5. How to make this data easy to analyse?
    By daniel24 in forum Excel General
    Replies: 1
    Last Post: 05-20-2010, 11:58 PM
  6. How to analyse data in spreadsheet
    By ravinella in forum Excel General
    Replies: 1
    Last Post: 01-29-2009, 05:04 PM
  7. Analyse Data in a Row
    By NeedHelpFast in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-23-2008, 06:05 AM

Tags for this Thread

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