From 817b0b51e78b6870379f595a1f370985179847df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Vajngerl?= Date: Sat, 15 Nov 2014 15:55:43 +0100 Subject: [PATCH] fdo#81801 add first and third quartile to "Descriptive Statistics" Change-Id: I7bfdb02a97d6a33c0a6e16b058cbb10b8ab2869b --- .../ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx | 2 ++ sc/source/ui/StatisticsDialogs/StatisticsDialogs.hrc | 2 ++ sc/source/ui/StatisticsDialogs/StatisticsDialogs.src | 8 ++++++++ 3 files changed, 12 insertions(+) diff --git a/sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx b/sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx index 485c04398589..363c84d08afd 100644 --- a/sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx +++ b/sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.cxx @@ -42,6 +42,8 @@ static const StatisticCalculation lclCalcDefinitions[] = { STRID_CALC_STD_ERROR, "=SQRT(VAR(%RANGE%)/COUNT(%RANGE%))"}, { STRID_CALC_MODE, "=MODE(%RANGE%)"}, { STRID_CALC_MEDIAN, "=MEDIAN(%RANGE%)"}, + { STRID_CALC_FIRST_QUARTILE, "=QUARTILE(%RANGE%; 1)" }, + { STRID_CALC_THIRD_QUARTILE, "=QUARTILE(%RANGE%; 3)" }, { STRID_CALC_VARIANCE, "=VAR(%RANGE%)"}, { STRID_CALC_STD_DEVIATION, "=STDEV(%RANGE%)"}, { STRID_CALC_KURTOSIS, "=KURT(%RANGE%)"}, diff --git a/sc/source/ui/StatisticsDialogs/StatisticsDialogs.hrc b/sc/source/ui/StatisticsDialogs/StatisticsDialogs.hrc index 3cbed4275dd2..cd2bacefbbc2 100644 --- a/sc/source/ui/StatisticsDialogs/StatisticsDialogs.hrc +++ b/sc/source/ui/StatisticsDialogs/StatisticsDialogs.hrc @@ -46,6 +46,8 @@ #define STRID_CALC_MAX 50 #define STRID_CALC_SUM 51 #define STRID_CALC_COUNT 52 +#define STRID_CALC_FIRST_QUARTILE 53 +#define STRID_CALC_THIRD_QUARTILE 54 #define STR_DESCRIPTIVE_STATISTICS_UNDO_NAME 60 #define STR_ANALYSIS_OF_VARIANCE_UNDO_NAME 61 diff --git a/sc/source/ui/StatisticsDialogs/StatisticsDialogs.src b/sc/source/ui/StatisticsDialogs/StatisticsDialogs.src index b08401935762..4faf2c56277b 100644 --- a/sc/source/ui/StatisticsDialogs/StatisticsDialogs.src +++ b/sc/source/ui/StatisticsDialogs/StatisticsDialogs.src @@ -181,6 +181,14 @@ Resource RID_STATISTICS_DLGS { Text [ en-US ] = "Count"; }; + String STRID_CALC_FIRST_QUARTILE + { + Text [ en-US ] = "First Quartile "; + }; + String STRID_CALC_THIRD_QUARTILE + { + Text [ en-US ] = "Third Quartile"; + }; /* RandomNumberGeneratorDialog */