+ Reply to Thread
Results 1 to 11 of 11

Having trouble working with a dataset

  1. #1
    Registered User
    Join Date
    03-03-2015
    Location
    Denmark
    MS-Off Ver
    2013
    Posts
    5

    Having trouble working with a dataset

    Hi guys I hope you can help me out.

    I have a large data set where my results are given as a numerical value and another column with the number of observations for each value. I want to calculate quartiles and maybe some percentiles, but I have not been able to do this.

    Cheers Peter Kyvsgaard

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Having trouble working with a dataset

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    03-03-2015
    Location
    Denmark
    MS-Off Ver
    2013
    Posts
    5

    Re: Having trouble working with a dataset

    Hi Sithsense

    I have attach a sample of my data here. The observations are made over several decades and I want to have the result for each year. I hope you can see where I want to end up.
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Having trouble working with a dataset

    What is the expected result for 1985?

  5. #5
    Registered User
    Join Date
    03-03-2015
    Location
    Denmark
    MS-Off Ver
    2013
    Posts
    5

    Re: Having trouble working with a dataset

    The quartiles should be something like 241, 247 and 255.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Having trouble working with a dataset

    Sorry I am unable to understand the logic

    Could you please explain how you are arriving it so that I can offer the formula based on your logic

  7. #7
    Registered User
    Join Date
    03-03-2015
    Location
    Denmark
    MS-Off Ver
    2013
    Posts
    5

    Re: Having trouble working with a dataset

    I did it manually by adding observations so that there is two observations of 238, 7 for 241 and so on. Then I used excels quartile funktion. This is just a far to time consuming method.

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Having trouble working with a dataset

    @pedter

    add the formula of percentile AND the manualy result in your file and add it on the forum.

    looks like a pivot table solution, although percentile is not available in PivotTable.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  9. #9
    Registered User
    Join Date
    03-03-2015
    Location
    Denmark
    MS-Off Ver
    2013
    Posts
    5

    Re: Having trouble working with a dataset

    This is how I got the quatiles, but I am looking for at better way.Data sample2.xlsx

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Having trouble working with a dataset

    @pedter,

    I used several helpcolumns (light yellow cell) to get the result (green cells).

    See the attached file.
    Last edited by oeldere; 03-03-2015 at 03:08 PM. Reason: changed text in green cells

  11. #11
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Having trouble working with a dataset

    For a single cell formula try this "array formula" in M3

    =PERCENTILE.INC(IF(TRANSPOSE(ROW(INDIRECT("1:"&MAX($B2:$B12))))>=$B2:$B12,$C2:$C12),M2)

    confirm with CTRL+SHIFT+ENTER and copied across

    I limited the formula to the 1985 rows but if you want you can take the whole data range and add another condition to check the year, thereby using the same formula to get the Percentiles for all the years
    Audere est facere

+ 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. Working with large dataset - alternatives to SLOW sumproduct?
    By Teebo in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-26-2014, 04:36 PM
  2. Replies: 3
    Last Post: 01-23-2014, 10:13 AM
  3. [SOLVED] Vertical chart dataset needs to be converted into pivotable dataset
    By aspak84 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 09-17-2013, 06:06 PM
  4. Copying a dataset multiple times - and selecting titles for this dataset
    By alocke in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2012, 10:15 PM
  5. Replies: 0
    Last Post: 01-31-2011, 02: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