Excel Functions Reference¶
CalcBridge supports over 50 Excel-compatible functions. This reference provides detailed syntax, parameters, and examples for each function.
Logical Functions¶
Functions for conditional logic and boolean operations.
IF¶
Returns one value if a condition is TRUE, another if FALSE.
Syntax: =IF(condition, value_if_true, value_if_false)
| Parameter | Type | Description |
|---|---|---|
condition | Boolean | Expression that evaluates to TRUE or FALSE |
value_if_true | Any | Value returned if condition is TRUE |
value_if_false | Any | Value returned if condition is FALSE |
Examples:
=IF(A1>100, "High", "Low") # Returns "High" if A1>100
=IF(B1="Active", 1, 0) # Returns 1 if B1 is "Active"
=IF(AND(A1>0, B1<100), "Yes", "No") # Nested condition
IFS¶
Checks multiple conditions and returns a value for the first TRUE condition.
Syntax: =IFS(condition1, value1, [condition2, value2], ...)
| Parameter | Type | Description |
|---|---|---|
condition1 | Boolean | First condition to evaluate |
value1 | Any | Value if condition1 is TRUE |
condition2... | Boolean | Additional conditions (optional) |
value2... | Any | Values for additional conditions |
Example:
IFERROR¶
Returns a specified value if a formula results in an error.
Syntax: =IFERROR(value, value_if_error)
| Parameter | Type | Description |
|---|---|---|
value | Any | Formula or value to evaluate |
value_if_error | Any | Value to return if error occurs |
Example:
AND¶
Returns TRUE if all arguments are TRUE.
Syntax: =AND(logical1, [logical2], ...)
Example:
OR¶
Returns TRUE if any argument is TRUE.
Syntax: =OR(logical1, [logical2], ...)
Example:
NOT¶
Reverses the logical value of its argument.
Syntax: =NOT(logical)
Example:
SWITCH¶
Evaluates an expression against a list of values and returns the corresponding result.
Syntax: =SWITCH(expression, value1, result1, [value2, result2], ..., [default])
Example:
CHOOSE¶
Returns a value from a list based on an index number.
Syntax: =CHOOSE(index_num, value1, [value2], ...)
Example:
Lookup Functions¶
Functions for finding and retrieving data.
VLOOKUP¶
Searches for a value in the first column of a range and returns a value from another column.
Syntax: =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
| Parameter | Type | Description |
|---|---|---|
lookup_value | Any | Value to search for |
table_array | Range | Table containing the data |
col_index_num | Number | Column number to return (1-based) |
range_lookup | Boolean | FALSE for exact match (recommended) |
Example:
HLOOKUP¶
Searches for a value in the first row and returns a value from another row.
Syntax: =HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])
Example:
XLOOKUP¶
Modern lookup function with more flexibility than VLOOKUP.
Syntax: =XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
| Parameter | Type | Description |
|---|---|---|
lookup_value | Any | Value to find |
lookup_array | Range | Range to search |
return_array | Range | Range containing return values |
if_not_found | Any | Value if no match (optional) |
match_mode | Number | 0=exact, -1=exact or smaller, 1=exact or larger |
search_mode | Number | 1=first-to-last, -1=last-to-first |
Example:
INDEX¶
Returns a value from a specified position in a range.
Syntax: =INDEX(array, row_num, [col_num])
Example:
MATCH¶
Returns the position of a value in a range.
Syntax: =MATCH(lookup_value, lookup_array, [match_type])
| Parameter | Type | Description |
|---|---|---|
lookup_value | Any | Value to find |
lookup_array | Range | Range to search |
match_type | Number | 0=exact, 1=less than or equal, -1=greater than or equal |
Example:
XMATCH¶
Modern version of MATCH with additional features.
Syntax: =XMATCH(lookup_value, lookup_array, [match_mode], [search_mode])
Example:
Math Functions¶
Functions for mathematical calculations.
SUM¶
Adds all numbers in a range.
Syntax: =SUM(number1, [number2], ...)
Example:
SUMIF¶
Sums cells that meet a single criterion.
Syntax: =SUMIF(range, criteria, [sum_range])
Example:
SUMIFS¶
Sums cells that meet multiple criteria.
Syntax: =SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Example:
=SUMIFS(Amount:Amount, Rating:Rating, "CCC", Status:Status, "Active")
=SUMIFS(D:D, A:A, ">=2025-01-01", B:B, "<100")
SUMPRODUCT¶
Returns the sum of the products of corresponding arrays.
Syntax: =SUMPRODUCT(array1, [array2], ...)
Example:
=SUMPRODUCT(Price:Price, Quantity:Quantity) # Sum of (Price * Quantity)
=SUMPRODUCT((A:A>100)*B:B) # Conditional sum using boolean
ABS¶
Returns the absolute value of a number.
Syntax: =ABS(number)
Example:
ROUND¶
Rounds a number to a specified number of digits.
Syntax: =ROUND(number, num_digits)
Example:
ROUNDUP / ROUNDDOWN¶
Rounds a number up or down.
Syntax: =ROUNDUP(number, num_digits) / =ROUNDDOWN(number, num_digits)
Example:
MOD¶
Returns the remainder after division.
Syntax: =MOD(number, divisor)
Example:
POWER¶
Returns the result of a number raised to a power.
Syntax: =POWER(number, power)
Example:
SQRT¶
Returns the square root of a number.
Syntax: =SQRT(number)
Example:
Statistical Functions¶
Functions for statistical analysis.
COUNT¶
Counts cells containing numbers.
Syntax: =COUNT(value1, [value2], ...)
Example:
COUNTA¶
Counts non-empty cells.
Syntax: =COUNTA(value1, [value2], ...)
Example:
COUNTBLANK¶
Counts empty cells in a range.
Syntax: =COUNTBLANK(range)
Example:
COUNTIF¶
Counts cells meeting a single criterion.
Syntax: =COUNTIF(range, criteria)
Example:
=COUNTIF(Rating:Rating, "CCC") # Count CCC ratings
=COUNTIF(Amount:Amount, ">1000000") # Count over 1M
COUNTIFS¶
Counts cells meeting multiple criteria.
Syntax: =COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Example:
AVERAGE¶
Returns the arithmetic mean.
Syntax: =AVERAGE(number1, [number2], ...)
Example:
AVERAGEIF / AVERAGEIFS¶
Conditional average functions.
Syntax: =AVERAGEIF(range, criteria, [average_range])
Example:
=AVERAGEIF(Rating:Rating, "BBB", Spread:Spread)
=AVERAGEIFS(Spread:Spread, Rating:Rating, "BBB", Status:Status, "Active")
MIN / MAX¶
Returns minimum or maximum value.
Syntax: =MIN(number1, [number2], ...) / =MAX(number1, [number2], ...)
Example:
MINIFS / MAXIFS¶
Conditional min/max functions.
Syntax: =MINIFS(min_range, criteria_range1, criteria1, ...)
Example:
MEDIAN¶
Returns the median (middle value).
Syntax: =MEDIAN(number1, [number2], ...)
Example:
Text Functions¶
Functions for text manipulation.
CONCATENATE / CONCAT¶
Joins text strings.
Syntax: =CONCATENATE(text1, [text2], ...)
Example:
TEXTJOIN¶
Joins text with a delimiter.
Syntax: =TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)
Example:
TEXT¶
Formats a number as text with a specified format.
Syntax: =TEXT(value, format_text)
Example:
LEFT / RIGHT / MID¶
Extract characters from text.
Syntax: - =LEFT(text, [num_chars]) - =RIGHT(text, [num_chars]) - =MID(text, start_num, num_chars)
Example:
=LEFT(A1, 3) # First 3 characters
=RIGHT(A1, 4) # Last 4 characters
=MID(A1, 2, 5) # 5 chars starting at position 2
LEN¶
Returns the length of a text string.
Syntax: =LEN(text)
Example:
TRIM¶
Removes extra spaces from text.
Syntax: =TRIM(text)
Example:
UPPER / LOWER / PROPER¶
Change text case.
Syntax: =UPPER(text) / =LOWER(text) / =PROPER(text)
Example:
Date Functions¶
Functions for date operations.
DATE¶
Creates a date from year, month, day components.
Syntax: =DATE(year, month, day)
Example:
TODAY / NOW¶
Returns current date or date/time.
Syntax: =TODAY() / =NOW()
Example:
YEAR / MONTH / DAY¶
Extract components from a date.
Syntax: =YEAR(date) / =MONTH(date) / =DAY(date)
Example:
DATEDIF¶
Calculates the difference between two dates.
Syntax: =DATEDIF(start_date, end_date, unit)
| Unit | Description |
|---|---|
"Y" | Complete years |
"M" | Complete months |
"D" | Days |
Example:
EDATE¶
Returns a date a specified number of months away.
Syntax: =EDATE(start_date, months)
Example:
EOMONTH¶
Returns the last day of the month.
Syntax: =EOMONTH(start_date, months)
Example:
Information Functions¶
Functions for checking cell content.
ISBLANK¶
Returns TRUE if cell is empty.
Syntax: =ISBLANK(value)
Example:
ISERROR / ISERR / ISNA¶
Check for error values.
Syntax: =ISERROR(value) / =ISERR(value) / =ISNA(value)
Example:
ISTEXT / ISNUMBER / ISLOGICAL¶
Check data types.
Syntax: =ISTEXT(value) / =ISNUMBER(value) / =ISLOGICAL(value)
Example:
Function Compatibility Notes¶
Excel Compatibility
CalcBridge aims for high compatibility with Excel functions. However, some advanced features may have limitations:
- Array Formulas: Basic array support; dynamic arrays partially supported
- Volatile Functions: TODAY() and NOW() update on each calculation
- Locale: Date and number parsing uses ISO formats
Performance
For best performance with large datasets:
- Use SUMIFS instead of SUMPRODUCT when possible
- Prefer XLOOKUP over VLOOKUP for large tables
- Minimize use of entire column references (A:A) when specific ranges work