Google Sheets is among the most powerful and free productivity tools for business people. It enables you to create from simple to more complex spreadsheets, with minimum sophistication, and in many cases, with out of the box formulas, that can handle complex tasks and all this in the cloud, therefore your document is always updated, it can be shared easily with other team members and worked upon.
This function restricts the size of the input arrays and outputs the specified number of rows and columns of that array. Following is the syntax of this function.
ARRAY_CONSTRAIN (range_of_input, output_rows, output_columns)
Here the range_of _input is a range of the input data, output_rows is the number of rows that we want in our data, and output_columns is the number of columns that our result may contain. This function is employed along with other formulas when a fewer number of rows and columns are needed in the output.
This array function is employed to calculate the frequency of values in a range, known as the one-column range. It gives a vertical array result. The syntax for this function is as follows.
FREQUENCY (data, classes)
Here, data refers to the range or array with the values that are required to be counted. Classes refer to the range with a set of classes. It should be noted that the classes must be sorted to have clarity. The FREQUENCY will output in the form of a specific vertical sized range one greater than classes. An example of the use of this function is given below.
This function is employed to find out the determinant matrix of a given array. Matrix determinant enables the user to calculate the different qualities of the matrix. It should be noticed that the array must be a square matrix comprising only numbers and not any blanks. Following is the syntax for this function.
Here, square_of_matrix represents an array consisting of an equal number of rows and columns; it is the input of this function. A complete matrix should be the input, which will result in a matrix determinant of that specific square matrix. This function can be employed in mathematics to solve system equations in linear algebra. The example is as follows.
This function determines the multiplicative inverse matrix of a square matrix. This function works specifically with a square matrix, containing numbers only and comprising equal numbers of rows and columns. Following is the syntax for the function.
Here, MINVERSE is the name of our function; square_of_matix is the input of this function. This function does not work if the array is empty or if it includes text. It enables among other things to calculate a series of simultaneous equations. Following is an example of the use of this function.
This array function enables the user to multiply two matrices classified into ranges or arrays. Following is the syntax for the function.
MMULT (matrix1, matrix2)
Here, MMULT is the name of our function. Matrix1 is the name of the first matrix indicated as range or array while matrix2 is the name of the second matrix also indicated as range or array. For the function to work, the standard must be followed. The standard indicates that the columns in matrix1 must be equal in numbers to the rows in matrix2. The output of this function results in the same number of rows as array 1 and the same number of columns in array 2. An example of the use of this function is as follows.
This array function multiplies 2 or more corresponding entries of equal-sized arrays or ranges and then determines their sum. This function is pivotal in situations where we need to multiply entries across arrays and determine their sum. Following is the syntax for this function.
SUMPRODUCT (array1, [array2, …])
Here, SUMPRODUCT is the name of our function. Array1 refers to the first array or range whose items are to be multiplied with the items of the second array or range via the SUMPRODUCT formula. Array2 refers to the additional arrays or ranges consisting of the same length as the first array or range. Its entries are to be multiplied with the corresponding entries of the first array or range via SUMPRODUCT. Furthermore, SUMPRODUCT can be paired with TRANSPOSE function, resulting in MMULT.
This function enables the user to determine the sum of differences of the entries in two arrays. Following is the syntax for this function.
SUMX2MY2 (array_of_x, array_of_y)
Here, SUMX2MY2 is our function, array_of_x represents the array or range of the entries whose squares are to be minimized by the squares of correlating items in the array_of_y. Then their sum is obtained. On the other hand, Array_of_y represents the array or range of the entries whose squares are to be deducted from the correlating, and then their sum is calculated. An example of the use of this function is shown below.
SUMX2PY2 is an array function that is utilized to find the sum of correlating square entries in two arrays or ranges, which in turn result in sums of their results. It should be noted that the non-numeric values including the text are ignored in the array while using this function. It is used in many statistical problems. The syntax for this function is as follows.
SUMX2PY2 (array_of_x, array_of_y)
Here, SUMX2PY2 is the name of our function. Array_of_x refers to the set of given square entries that are to be added to the square entries of the correlating array or range of array_of_y. While array_of_y refers to the square entries of range or an array whose items are to be added to the correlating square entries of array_of_x.
This array function enables the user to determine the sum of squares of differences of values in two given arrays. This function outputs a numeric value. Following is the syntax of this function.
SUMXMY2 (array_of_x, array_of_y)
Here, SUMXMY2 is the name of the function, array_of_x refers to the array or range of the entries that are first minimized by correlating items in array_of_y, then they get squared, and finally, these results are summed up. On the other hand, array_of_y represents the range or array of the entries that will first be deducted from the correlating items of array_of_x, and then they get squared, and finally, these results are summed up.
This array function is very useful when the user wants to relocate the column or rows in an array or range of cells in Google sheets. This function can alter the arrangement of spreadsheets from vertical to horizontal or vice-versa. Following is the syntax of this function.
Here, TRANSPOSE is the name of the function, while array_or_range consists of the columns and rows of array or range, which are required to be interchanged. This transpose function is very suitable for presentation purposes.
The DATE function is employed when the user needs to convert the data in the form of DATE from the data that is in the form of a year, month, or day. The syntax for this function is as follows.
DATE (year, month, day)
Here, DATE is the name of this function, a year represents the year section of the date, a month represents the month section of the date, while day refers to the day section of the date. Now certain things should be considered. Firstly, all the input of date should be in numeric form for the function to work properly, otherwise, the output will contain a value error. Further, the DATE is recalculated if the numeric value of the date goes beyond the valid month or day range. For example, the date (2007, 13, 1) which includes the invalid month 13, will be automatically translated into a date of 1/1/2007. Likewise, the date (2007, 1, 32) contains an unreal day of January which will translate into the date of 2/1/2007. The date system that Google Sheets uses is 1900 date system which starts with the date 1/1/1900.
This function is very simple and it is used when the user needs to calculate the number of days, months, and years between two given dates. So basically this function enables the user to determine the difference between two date values. Following is the syntax for the function.
DATEDIF (start_of_date, end_of_date, unit)
Here, DATEDIF is the name of this date function. Start_of_date refers to the date from where the calculations should start. It may contain a numeric value, a cell consisting of a DATE, or a function translating into a DATE type. End_of_date indicates the date on which the calculations are to end. Likewise, it may also contain a numeric value, a cell consisting of a DATE or a function translating into a DATE type. Units are the text acronyms for the units of time. For example, ‘M’ for a month, ‘D’ for a date, and ‘Y’ represents the year. Following terms should also be known by the users. “Y” indicates the number of years from the start to the end dates. “M” qualifies for the number of total months from the start date to the end date. “D” refers to the total number of days from the start date to the end date.” MD” suggests the total number of days from the start date to the end date after deducting whole months. “YM” represents the total number of months from the start date to the end date after deducting whole years. Now imagine that there is a difference of not more than one year from the start date and end date, then “YD” refers to the number of days from the start date to the end date.
This function translates a string with a date represented in text and of known format into a date value. Following is the syntax for this function.
Here DATEVALUE is the name of the function. Date_of_string refers to a string that consists of the textual representation of date but a known format. It should be noted that the input for this function should be a date string and any numeric value in the input will result in an error value. Further, known formats in Google sheets are different in different regions, so if a format i not known in Google sheets then no need to worry. You only have to enter that format into an empty cell sans quotation marks.
This is another date function and it outputs a certain day from a particular time. It is useful when you are working on time and only require the day from that certain data. The function works in numeric format. The syntax for this function is as follows.
Here, DAY is the name of the function. The date refers to the date from which you want to take out the day. Date must contain a numeric value, a function providing date type, or a cell with a date. It should be noted that Google sheets refer to date and time as numeric values, therefore this function works only when the input is in number format.
As evident from the name, this date function works for values containing more than one date. Therefore, this function outputs the number of days between two dates. The syntax is as follows.
DAYS (end_of_date, start_of_date)
Here DAYS is the name of the function. End date and start date refer to the two dates between which the user wants to calculate the days. Its format is also numeric. The function outputs the difference between the total number of days between the two dates.
This date function enables the user to know a certain date and also a certain number of months before or after that certain date depending on the requirement. The syntax for the function is as follows.
EDATE (start_of_date, months)
EDATE is the name of the function. The start date represents the given date from which the calculation is to be started. Months refer to the number of months the user wants to calculate. It has two types of values; the negative ones refer to the number of months before the start date, while the positive ones refer to the number of months after the start date.
Hour is the date function that outputs the hour section of a particular given time. The output is in numeric format. Following is the syntax for the function.
Here Hour is the name of this function and time refers to that given bit of time from which the user needs to extract the hour portion. It should be noted that it should be a cell consisting of date/time, a function with a date/time format, or simply a numeric value. This function can also be utilized for other calculations.
This date function outputs the MINUTE section of a given time in a numeric format. For this function to work, this is necessary that the input should be referring to a cell containing a date/time function which returns date/time or containing a serial number of date to be translated by N function. Following is the syntax of this function.
Here, TIME is the name of our function, and time refers to the input. This time contains the required portion of time; minute. As mentioned, Google sheets display date and time as numbers, so it is important to use a numeric format for input. For example, an invalid time format such as MINUTE (12:00:00) will translate as an error. This function extracts the MINUTE section of a given time.
This time function is also a simple one, it outputs the components of time such as an hour, minute, or a second as TIME. The input of this function should always be in the numeric format as well; otherwise, the function will return an error. Following is the syntax of this function.
TIME (hour, minute, second)
Here, TIME refers to the name of the function. Hour is the input of the hour portion of the given time, a minute is the input of the minute portion of time and finally, the second refers to the input of the second component of time. All the data in numeric format will output TIME. The values of the time that go beyond the valid range of time will automatically recalculate. For example, a time(28, 0, 0) that contains an invalid 28 hours, will be returned as 04:00 AM. Further, TIME will approximate the input which is in decimal form. For example, an hour of 7.25 will return as 7.
Most of the time, the dates and times in spreadsheets are in the string format, which cannot be directly employed to do any sort of calculations. This TIMEVALUE function is primarily to convert dates and times of string format into time format. Following is the syntax.
TIMEVALUE is the name of the function. Time_of_string refers to the string containing the text used in the time string. It should be noted that input should be written in the standard form within quotation marks and the time format should be either 12-hour or 24-hour. For example, it should be either 07:38 PM or 19:38. Further, the time string ignores the dates such as the day of the month. So the TIMEVALUE converts simply the time string into a numeric value.