- •Auto Filling Cells
- •Filling a Cell Range with a Series
- •Filling a multiplication chart
- •Paste Special I
- •Paste Special II - Removing formulae
- •Using Names as constants
- •Conditional Formatting I
- •Conditional Formatting II
- •Conditional Formatting III
- •Conditional Formatting IV : Masking errors
- •Adding a background graphic
- •Basic functions : sumif
- •Cell Counting 1: countif
- •Ranking and sorting data I
- •Conditional summation revisited
- •Largest values in an array
- •Date & Time Basics
- •Date & Time : Calculating Dates of Holidays
- •Financial Functions 1 : Mortgage calculation
- •In this case, we are calculating the future value of loan one time period in the future, based on the present loan value and interest rate.
- •Financial Functions 2: Accumulation
- •Financial Functions 3 : Complex Accumulation
- •Financial Functions: cumipmt & cumprinc
- •Financial Functions: Calculating Principal & Interest
- •In case you need further convincing, the ipmt and ppmt components are summed in column e, and are constant throughout the life of the loan - as expected.
- •Array Formulas: Working with Matrices
- •Datasources : Spreadsheets
- •Datapilot Revisited
- •DataPilot Revisited II
- •Data Filtering : Standard Filter
- •Data Filtering : Advanced Filter
- •Basic functions : subtotal
- •Adding notes to cells
- •A simple recursive macro: gcd
Basic functions : sumif
This short tutorial illustrates the two basic ways that SUMIF can be used in a spreadsheet.
The SUMIF function takes two or three arguments.
For the two argument version, the condition is applied to each cell in the range being SUMmed. In the example below, C9 is the sum of all values in C3:C8 that are greater than 5.
In the three argument version, the condition is applied to a separate range of cells. This range can be numerical of textual. In the example below, the values corresponding to Tom are summed in C10
This entry was posted on Thursday, December 9th, 2004 at 10:34 pm and is filed underFunction Tips. You can follow an
Cell Counting 1: countif
September 8th, 2004
One of the most useful and versatile builtin functions in OOo Calc, with a bit of creativity, you can use for a slew of tasks…
How many cells in a given range are negative. =COUNTIF(A1:A20;”<0")
How many cells have the string “Yes”. =COUNTIF(A1:A20;”Yes”)
Don’t forget to include the quotation marks around the condition argurment. Otherwise, you get an Err:510
Stefano Lenzi commented if you want that your criteria contains reference to other cells you can refer to the following example.
To count the cells less then A3: =COUNTIF(”A1:A20″;CONCATENATE(”<";A3))
Ranking and sorting data I
April 25th, 2005
Computing the rank order of entries in an array of data is needed in many applications.
There are a number of builtin OOo functions that deal with the ranking and ordering of data. We will look at four - RANK, PERCENTRANK, PERCENTILE, and LARGE
In the example below, we see two variants of RANK wherein the entries can be ordered in descening or ascending order. The first two arguments of RANK are the value to be ranked and the array that contains the data. By default, with these two arguments, the entries will be ranked in descending order. The optional third argument - when set to 1 - ranks the entires in ascending order.
The PERCENTRANK function assigns a percentage value to a given value based on a 100% range between the minumum and maximum values of the specified range. If you don’t format these results as a percentage value, the output from PERCENTRANK will lie betwen 0 and 1.
The PERCENTILE function accepts a percentage value as input and returns the percentile of data values in an array. A percentile returns the scale value for the array which goes from the smallest (%age=0) to the largest value (%age=1) of the array. The 50% percentile of an array is the same as the MEAN.
Posted in Function Tips | 1 Comment »
Conditional summation revisited
April 20th, 2005
For OOo 2.0, enhanced functionality seems to have been introduced with respect to using array formulas for conditional summation. Consider the example below, where we wish to total numbers in a column corresponding to a particular month.
Contrast this with the use of SUMIF in a previous tip. We have also covered SUMPRODUCT before
Now, the SUM IF and SUMPRODUCT constructs shown below accept a function of an array. MONTH normally accepts a single date as a parameter - but within an array formula as in the examples below, it makes more sense to be able to apply an array of dates to MONTH. This has always been possible in Excel.
It seems, OOo Calc continues to match and/or surpass Excel in functionality - which can onloy be a good thing for those who wish to migrate from Excel.
Posted in Function Tips | No Comments »
