How to use the MINA function
What is the MINA function?
The MINA function returns the smallest number from an array or cell range. Blank cells are ignored, boolean value TRUE evaluates to 1 and FALSE to 0 (zero). Text values are also evaluated to 0 (zero).
Table of Contents
1. Introduction
What is MINA an abbreviation of?
MINA stands for minimum alternative or minimum all meaning it also evaluates logical values and text as numbers. Text and boolean value FALSE is evaluated to 0 (zero), boolean value TRUE is 1.
What is the difference between the MIN function and the MINA function?
The MIN function excludes or ignores blank cells, text and boolean values. The MINA function ignores blank cells, includes text and boolean values. Text values are evaluated as 0 (zero), boolean value TRUE is 1 and boolean value FALSE is 0 (zero).
Related functions
Function | Description |
---|---|
MIN(number1,number2,...) | Returns the smallest numeric value |
MINA(value1,value2,...) | Returns the smallest value including text |
MINIFS(min_range, criteria_range1, criteria1,...) | Returns min from a range meeting multiple criteria |
SMALL(array, k) | Returns the k-th smallest value in array |
AGGREGATE(4,options,array,k) | Returns k-th smallest value ignoring hidden rows/columns |
DMIN(database, field, criteria) | Returns min value in a database meeting criteria |
When is the MIN function useful in statistics?
The MIN function allows you to find the minimum or lowest value in a set of data points. This can be helpful when you want to identify outliers or extreme values in your dataset.
The range of a dataset is the difference between the maximum and minimum values. You can use the MIN function in combination with the MAX function to calculate the range which is a measure of the spread of the data.
2. MINA Function Syntax
MINA(value1, [value2], ...)
3. MINA Function Arguments
value1 | Required. Value or cell ref for which you want to find the smallest number. |
[value2] | Optional. Up to 254 additional arguments. |
4. MINA Function Example
This example demonstrates how the MINA function works. Cell range B3:B10 contains values, the corresponding cells in C3:C10 shows how the MINA function "evaluates" these values.
Excel aligns values to the right if it is recognized as a number or numerical value. Excel aligns values to the left if Excel "evaluates" the value as a text value. The image above shows that Excel thinks that -2 is a text value. This can happen if you work with imported data from other sources like databases, the web etc.
Boolean values and error values are center aligned, FALSE in cell B5 is 0 (zero) and TRUE om cell B10 is 1.
Formula in cell B13:
The formula in cell B13 returns -1 which is the smallest number in cell range B3:B10. How do you convert numerical values stored as text values in Excel? Excel often labels the cell with a green arrow in the top left corner. Select the cell and a box containing an exclamation mark shows up.
Press with left mouse button on the exclamation mark and popup appears containing available options.
Select the second row "Convert to number" to do the obvious thing convert the value to a number. You also have the option to get more information about this particular error. You can also ignore the error entirely.
5. MINA Function Example 2
In a manufacturing quality control process, the number of defects found in 130 randomly selected days during a year were:
870 | 1463 | 1529 | 1024 | 1540 | 626 | 858 | 1176 | 1383 | 1282 |
1388 | 1008 | 1114 | 1886 | 1311 | 1128 | 1109 | 1702 | 929 | 1236 |
639 | 952 | 1059 | 1285 | 998 | 933 | 961 | 862 | 1308 | 898 |
386 | 1315 | 1282 | 1510 | 1110 | 1126 | 754 | 923 | 1259 | 912 |
1399 | 660 | 1372 | 883 | 496 | 1476 | 1213 | 864 | 1301 | 1508 |
1042 | 1479 | 1456 | 519 | 340 | 1849 | 1426 | 1558 | 690 | 773 |
777 | 1246 | 1276 | 1195 | 397 | 1022 | 1668 | 645 | 1028 | 1335 |
1457 | 1722 | 1559 | 1585 | 1212 | 934 | 1508 | 1037 | 1612 | 1205 |
1089 | 1341 | 1682 | 1189 | 1214 | 1355 | 1002 | 1030 | 478 | 1012 |
1305 | 1199 | 1834 | 999 | 830 | 1758 | 512 | 960 | 1669 | 1491 |
1390 | 982 | 1784 | 1669 | 1084 | 985 | 1034 | 751 | 1324 | 1462 |
1123 | 555 | 934 | 1048 | 1549 | 1768 | 1007 | 1211 | 1346 | 862 |
833 | 871 | 1273 | 1655 | 1563 | 1541 | 1099 | 1073 | 1672 | 1532 |
Build a frequency table based on the minimum and maximum values from the data set above. Let the number of frequency table bins be 10.
This formula calculates the smallest number in cell range B18:K30 displayed in the image above. Formula in cell E32:
The following formula calculates the largest number in cell range B18:K30 displayed in the image above. Formula in cell E33:
This formula calculates the bin ranges based on the minimum and maximum value. Formula in cell G32:
The FREQUENCY function counts the numbers based on the intervals calculated in cell G32 and cells below.
Formula in H32:
6. How to check if boolean or text values exist in a given cell range?
The MINA function evaluates TRUE to 1 and FALSE to 0 (zero), however, it can most often be useful to know if a given data set contains boolean values.
This example demonstrates how to find out if a cell range contains boolean or text values. Cell range B2:B10, in the image above, contains the following values:
Value |
4 |
-1 |
FALSE |
-2 |
A |
6 |
-3 |
TRUE |
Formula in cell B13:
This formula returns TRUE if the specified cell range contains at least one boolean or text value, this example shows that B3:B10 contains at least one boolean or text value. This formula can help you determine if you need to use the MIN function or the MINA function.
Explaining formula in cell B13
The Evaluate Formula tool is located on the Formulas tab in the Ribbon. It is a useful feature that allows you to step through and evaluate complex formulas to understand how the calculation is being performed and identify any errors or issues. The following steps shows these detailed evaluations for the formula above.
Step 1 - Identify boolean values
The ISLOGICAL function returns TRUE if value is boolean. A boolean value is either TRUE or FALSE.
Function syntax: ISLOGICAL(value)
ISLOGICAL(B3:B10)
becomes
ISLOGICAL({4;-1;FALSE;"-2";"A";6;"-3";TRUE})
and returns
{FALSE;FALSE;TRUE;FALSE;FALSE;FALSE;FALSE;TRUE}
Step 2 - Identify text values
The ISTEXT function returns TRUE if argument is text.
Function syntax: ISTEXT(value)
ISTEXT(B3:B10)
becomes
ISTEXT({4;-1;FALSE;"-2";"A";6;"-3";TRUE})
and returns
{FALSE;FALSE;FALSE;TRUE;TRUE;FALSE;TRUE;FALSE}
Step 3 - Apply OR logic
The OR function evaluates a logical expression in each argument and if at least one argument returns TRUE the OR function returns TRUE. If all arguments return FALSE the OR function also returns FALSE.
Function syntax: OR(logical1, [logical2])
OR(ISTEXT(B3:B10),ISLOGICAL(B3:B10))
becomes
OR({FALSE;FALSE;FALSE;TRUE;TRUE;FALSE;TRUE;FALSE},{FALSE;FALSE;TRUE;FALSE;FALSE;FALSE;FALSE;TRUE},)
and returns TRUE.
7. MINA function not working
- MINA function returns 0 (zero) if argument has no values.
- Error values in the source data cause the function to return an error.
Use the MIN function if you don't want to include logical values in the calculation.
Functions in 'Statistical' category
The MINA function function is one of 73 functions in the 'Statistical' category.
How to comment
How to add a formula to your comment
<code>Insert your formula here.</code>
Convert less than and larger than signs
Use html character entities instead of less than and larger than signs.
< becomes < and > becomes >
How to add VBA code to your comment
[vb 1="vbnet" language=","]
Put your VBA code here.
[/vb]
How to add a picture to your comment:
Upload picture to postimage.org or imgur
Paste image link to your comment.
Contact Oscar
You can contact me through this contact form