Hi there!
I'm currently working on a spreadsheet where I need to calculate a quartile based on data in one of the columns. However the data is categorised by a variable in a preceeding column. Here's an example:
Column A Column B
Type 1 1.4
Type 1 2.8
Type 1 3.4
Type 1 1.2.....(for hundreds of rows, then...)
Type 2 3.6
Type 2 2.1
Type 2 2.0....etc...
I wish to include a column "C" which returns the top quartile for data items in each range defined by column A. For example, the top quartile for all of "type 1" data, to be shown in column C (so in effect, the same quartile value will be displayed next to all type 1 data items).
The spreadsheet is massive, with lots of different data types, so I would like to define the quartiles based on the ranges in column A through a formula that can be copied and pasted throughout the sheet.
Any advice appreciated!
I'm currently working on a spreadsheet where I need to calculate a quartile based on data in one of the columns. However the data is categorised by a variable in a preceeding column. Here's an example:
Column A Column B
Type 1 1.4
Type 1 2.8
Type 1 3.4
Type 1 1.2.....(for hundreds of rows, then...)
Type 2 3.6
Type 2 2.1
Type 2 2.0....etc...
I wish to include a column "C" which returns the top quartile for data items in each range defined by column A. For example, the top quartile for all of "type 1" data, to be shown in column C (so in effect, the same quartile value will be displayed next to all type 1 data items).
The spreadsheet is massive, with lots of different data types, so I would like to define the quartiles based on the ranges in column A through a formula that can be copied and pasted throughout the sheet.
Any advice appreciated!