Quartiles by Year

hales231

New Member
Joined
Dec 23, 2011
Messages
15
I have a large dataset (almost 300K rows) with multiple years of information (2003-2016). I'm trying to assign size into a Small, Medium, and Large category by year. My first attempt was to determine the quartiles then manually assign the size to a category but I'm sure there is a more efficient way of doing this. Thank you for your help.

YearSize
2003136
2003146
2003107
2003139
2003152
2003125
2003102
2004147
2004106
2004119
2004125
2004
2004152
2004107
2004116
2005129
2005106
2005102
2005114
2005120
2005126
2005118
2006119
2006108
2006149
2006143
2006132
2006128
2006135
2006113

<colgroup><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hey hales,

Can you please show your expected results so we know what your end results should be? Thank you.

-C
 
Upvote 0
I think you need define range criteria first, for Small, Medium and Large and use it in PivotTable
 
Last edited:
Upvote 0
Sorry for the vague question. I need to assign a quartile to each size based on the total range of sizes for the year. Every year has a different range of sizes so using a set criteria doesn't work with this dataset. I've also included the quartile table for reference.

YearSizeQuartile
200313675
200314675
200310725
200313975
200315275
200312550
200310225
200314775
200310625
200311950
200312550

<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>

Year255075
2003112120131
2004112118124
2005113121128
2006104111118
2007101105110
2008109116124
2009110117125
2010110117124
2011105111117
2012109116125
2013108115125
2014102111122
2015103111121
2016100109118

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Try:
This is an array formula that must be entered with CTRL-SHIFT-ENTER.
Drag formula down and across as needed.
Excel Workbook
ABCDEFG
1YearSizeYear0.250.50.75
220031362003116136143
320031462004112119136
420031072005110118123
520031392006118130137
62003152
72003125
82003102
92004147
102004106
112004119
122004125
132004
142004152
152004107
162004116
172005129
182005106
192005102
202005114
212005120
222005126
232005118
242006119
252006108
262006149
272006143
282006132
292006128
302006135
312006113
Sheet
 
Upvote 0

Forum statistics

Threads
1,214,639
Messages
6,120,679
Members
448,977
Latest member
dbonilla0331

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top