What is MIN function in Excel? MIN function is one of Statistical functions in Microsoft Excel that returns the smallest number in a set of values. Syntax of MIN function MIN(number1, [number2], …) The MIN function syntax has the following arguments: Number1, number2, … Number1 is optional, subsequent numbers are optional. 1 to 255 numbers for which you want to find the…

# Tag: MIN function

## Calculate cap percentage at specific amount in Excel

This tutorial shows how to calculate a percentage based value capped at a specific amount using MIN function. See illustration below: Formula =MIN(A1*percent,1000) Explanation In the example shown, the formula in D6 is: =MIN(C6*10%,1000) How this formula works This formula takes advantage of the fact that the MIN function works fine with small sets of data, even two values. Inside MIN,…

## Calculate max or min change in a set of data in Excel

To calculate the max or min change in a set of data as shown, without using a helper column, you can use an array formula. See basic array formula example below: Formula {=MAX(range1-range2)} Explanation In the example, the formula in G6 is: {=MAX(C5:C12-D5:D12)} Note: this is an array formula and myst be entered with control + shift + enter. How this formula works…

## Last row number in range

You can get the last row in a range with a formula based on the ROW function. See example below; Formula =MIN(ROW(range))+ROWS(range)-1 Explanation In the example shown, the formula in cell F5 is: =MIN(ROW(data))+ROWS(data)-1 where data is a named range for B5:D10 How this formula works When given a single cell reference, the ROW function returns the row number for…

## How to get last column number in range in Excel

You can get the last column in a range with a formula based on the COLUMN function. See example below: Formula =MIN(COLUMN(range))+COLUMNS(range)-1 Note: When given a single cell reference, the COLUMN function returns the column number for that reference. However, when given a range that contains multiple columns, the COLUMN function will return an array that contains all column numbers…

## How to get relative row numbers in a range in Excel

To get a full set of relative row numbers in a range, you can use an array formula based on the ROW function. See example below; Formula {=ROW(range)-ROW(range.firstcell)+1} Note: this is an array formula that must be entered with Control + Shift + Enter. If you’re entering this on the worksheet (and not inside another formula), make a selection that includes more…

## How to get first row number in range in Excel

You can get the first row (i.e. the starting row number) in a range with a formula based on the ROW function. Formula =MIN(ROW(range)) Explanation In the example shown, the formula in cell F5 is: =MIN(ROW(data)) where data is a named range for B5:D10 How this formula works When given a single cell reference, the ROW function returns the row…

## How to get first column number in range in Excel

You can get the first column (i.e. the starting column number) in a range with a formula based on the COLUMN function. Formula =MIN(COLUMN(range)) Explanation In the example shown, the formula in cell F5 is: =MIN(COLUMN(data)) where data is a named range for B5:D10 How this formula works When given a single cell reference, the COLUMN function returns the column number for…

## Split text and numbers in Excel

To separate text and numbers, you can use a formula based on the FIND function, the MIN function, and the LEN function with the LEFT or RIGHT function, depending on whether you want to extract the text or the number. Formula =MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&”0123456789″)) Explanation In the example shown, the formula in C5 is: =MIN(FIND({0,1,2,3,4,5,6,7,8,9},B5&”0123456789″)) which returns 7, the position of the…

## How to calculate next scheduled event in Excel

To get the next scheduled event from a list of events with dates, you can use an array formula based on the MIN and TODAY functions to find the next date, and INDEX and MATCH to display the event on that date. Formula {=MIN(IF((range>=TODAY()),range))} Note: this is an array formula and must be entered with Control + Shift + Enter. Explanation In…

## Calculate total hours that fall between two times in Excel

Case study You have a start time and an end time, and you want to know how many of the hours in between these two times overlap another time period in the day. For example, you want to know how many hours fall between 8:00 AM and 5:00 PM, or 7:00 PM to 7:00 AM, etc. You might need this information…

## Calculate date overlap in days in Excel

If you need to calculate the number of days that overlap in two date ranges, then this tutorials is for you. You can use basic date arithmetic, together with the the MIN and MAX functions. See example below; Formula =MAX(MIN(end1,end2)-MAX(start1,start2)+1,0) Explanation In the example shown, the formula in D6 is: =MAX(MIN(end,C6)-MAX(start,B6)+1,0) How this formula works Excel dates are just serial numbers, so…

## Lookup lowest value in Excel

This tutorial shows how to Lookup lowest value in Excel using the example below; Formula =INDEX(range,MATCH(MIN(vals),vals,0)) Explanation To lookup information associated with the lowest value in table, you can use a formula based on INDEX, MATCH, and MIN functions. In the example shown, a formula is used to identify the name of the contractor with the lowest bid. The formula…

## Get nth match in Excel

This tutorial shows how to Get nth match in Excel using the example below; Formula =SMALL(IF(logical,ROW(list)-MIN(ROW(list))+1),n) Explanation To get the position of the nth match (for example, the 2nd matching value, the 3rd matching value, etc.), you can use a formula based on the SMALL function. In the example shown, the formula in G5 is: =SMALL(IF(list=E5,ROW(list)-MIN(ROW(list))+1),F5) This formula returns the position of…

## Get last match in Excel

This tutorial shows how to Get last match in Excel using the example below; Formula {=MAX(IF(criteria,ROW(rng)-MIN(ROW(rng))+1))} Explanation To get the position of the last match (i.e. last occurrence) of a lookup value, you can use an array formula based on the IF, ROW, INDEX, MATCH, and MAX functions. In the example shown, the formula in H6 is: {=MAX(IF(names=H5,ROW(names)-ROW(INDEX(names,1,1))+1))} Where “names”…

## Find closest match in Excel

This tutorial shows how to Find closest match in Excel using the example below; Formula {=INDEX(data,MATCH(MIN(ABS(data-value)),ABS(data-value),0))} Explanation To find the closest match with a lookup value and numeric data, you can use an array formula based the INDEX, MATCH, ABS and MIN functions. In the example shown, the formula in E5 is: {=INDEX(data,MATCH(MIN(ABS(data-E4)),ABS(data-E4),0))} where “data” is the named range B5:B14, and E4…

## Smaller of two values in Excel

This tutorial shows how to calculate Smaller of two values in Excel using the example below; To get the smaller, or lesser, of two values, you can use the MIN function. Formula =MIN(value1,value2) Explanation In the example shown, the formula in D5 is: =MIN(B5,C5) How this formula works The MIN function is fully automatic – it returns the smallest value…

## Minimum value if in Excel

This tutorial shows how to calculate Minimum value if in Excel using the example below; Formula {=MIN(IF(range=criteria,values))} Explanation To get a minimum value based on criteria, you can use the MIN function together with the IF function. In the example shown, the formula in cell G6 is: {=MIN(IF(names=F6,times))} Where “names” is the named range B6:B17, and times is the named range D6:D17. This…

## Minimum if multiple criteria in Excel

This tutorial shows how to calculate Minimum if multiple criteria in Excel using the example below; To get the minimum value in a data set using multiple criteria (i.e. to get MIN IF), you can use and array formula based on the MIN and IF functions. Formula {=MIN(IF(range1=criteria1,IF(range2=criteria2,values)))} Explanation In the example shown the formula in I6 is: {=MIN(IF(color=G6,IF(item=H6,price)))} With…

## Minimum value in Excel

This tutorial shows how to calculate Minimum value in Excel using the example below; Formula =MIN(range) Explanation To get the minimum value from a set of numbers, use the MIN function. In the example shown, the formula in cell I6 is: =MIN(C6:G6) The MIN function is fully automatic. It accepts one or more arguments, which can be numbers or cell references…

## Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions

To find the closest match to a target value in a data column, use the INDEX, MATCH, ABS and the MIN function in Excel. Use the VLOOKUP function in Excel to find an approximate match. 1. The ABS function in Excel returns the absolute value of a number. Explanation: C3-F2 equals -39. The ABS function removes the minus sign (-) from a negative number, making it positive.…

## 9 Mathematical Computations Example using Excel Statistical Function

In addition to formulas, another way to conduct mathematical computations in Excel is through functions. Statistical functions apply a mathematical process to a group of cells in a worksheet. This chapter gives an overview of some very useful statistical functions like: AVERAGE function, AVERAGEIF function, MEDIAN function, SUMIF function, MIN function, MODE function, STEDV function, LARGE function, SMALL function. Average To calculate the average of a range of cells, use the…