Excel, Power BI, SQL & VBA Prompt Library

Formula, DAX, VBA & SQL Library

Search, preview visual examples, custom-generate cell ranges, and copy ready-to-use
100+ formulas (Basic to Advance).

Excel Basic

Basic Sum (SUM)

Add all numeric values in a specified cell range instantly.

=SUM(A2:A100)
Excel Basic

Conditional Sum (SUMIF)

Adds all numbers in a range that meet a specified single criterion.

=SUMIF(A2:A100, "Sales", B2:B100)
Excel Advanced

Multi-Condition Sum (SUMIFS)

Adds all numbers in a range that meet multiple specified criteria.

=SUMIFS(C2:C100, A2:A100, "Sales", B2:B100, ">100")
Excel Basic

Basic Count (COUNT)

Counts the number of cells in a range that contain numeric values.

=COUNT(A2:A100)
Excel Basic

Count Non-Blank Cells (COUNTA)

Counts the number of cells in a range that are not empty, including text, numbers, and errors.

=COUNTA(A2:A100)
Excel Basic

Count Empty Cells (COUNTBLANK)

Counts the total number of blank or empty cells within a specified range.

=COUNTBLANK(A2:A100)
Excel Basic

Conditional Count (COUNTIF)

Counts the number of cells in a range that meet a specified single criterion.

=COUNTIF(A2:A100, "Active")
Excel Advanced

Multi-Condition Count (COUNTIFS)

Counts the number of times specified criteria are met across multiple ranges.

=COUNTIFS(A2:A100, "Active", B2:B100, ">50")
Excel Basic

Vertical Lookup (VLOOKUP)

Searches vertically down the first column of a table and retrieves data from a specified column in the same row.

=VLOOKUP(A2, D2:F100, 2, FALSE)
Excel Basic

Horizontal Lookup (HLOOKUP)

Searches horizontally across the top row of a table and retrieves data from a specified row in the same column.

=HLOOKUP(A2, B1:G5, 3, FALSE)
Excel Advanced

Modern Lookup (XLOOKUP)

Searches a range or array for a match and returns a corresponding item from a second range in any direction.

=XLOOKUP(A2, D2:D100, E2:E100, "Not Found")
Excel Basic

Minimum Value (MIN)

Returns the smallest numerical value from a specified range of cells.

=MIN(A2:A100)
Excel Basic

Maximum Value (MAX)

Returns the largest numerical value from a specified range of cells.

=MAX(A2:A100)
Excel Basic

K-th Largest Value (LARGE)

Returns the k-th largest value in a data set (e.g., 1st largest, 2nd largest, etc.).

=LARGE(A2:A100, 2)
Excel Basic

Basic Average (AVERAGE)

Calculates the arithmetic mean of all numeric values in a specified cell range.

=AVERAGE(A2:A100)
Excel Basic

Conditional Average (AVERAGEIF)

Calculates the average of cells in a range that meet a single specified criterion.

=AVERAGEIF(A2:A100, "Sales", B2:B100)
Excel Advanced

Multi-Condition Average (AVERAGEIFS)

Calculates the average of cells in a range that meet multiple specified criteria.

=AVERAGEIFS(C2:C100, A2:A100, "Sales", B2:B100, ">100")
Excel Basic

Extract Left Characters (LEFT)

Extracts a specified number of characters starting from the beginning (left) of a text string.

=LEFT(A2, 5)
Excel Basic

Extract Right Characters (RIGHT)

Extracts a specified number of characters starting from the end (right) of a text string.

=RIGHT(A2, 4)
Excel Basic

Extract Middle Characters (MID)

Extracts a specific number of characters from a text string, starting at the position you specify.

=MID(A2, 3, 5)
Excel Basic

Combine Text (CONCAT)

Combines text from multiple ranges or strings into a single text value.

=CONCAT(A2, " ", B2)
Excel Logical

Logical Condition (IF)

Checks whether a condition is met, returning one value if TRUE and another value if FALSE.

=IF(A2>=50, "Pass", "Fail")
Excel Logical

All Conditions True (AND)

Checks whether all arguments are TRUE, returning TRUE only if every condition is met.

=AND(A2>50, B2<100)
Excel Logical

Any Condition True (OR)

Checks whether any arguments are TRUE, returning TRUE if at least one condition is met.

=OR(A2="Sales", B2="Marketing")
Excel Logical

Handle Errors (IFERROR)

Evaluates a formula and returns a custom fallback value if it results in an error.

=IFERROR(A2/B2, "N/A")
Excel Lookup

Index Lookup (INDEX)

Returns the value of a cell at the intersection of a specific row and column within a given range.

=INDEX(B2:B100, 5)
Excel Lookup

Match Position (MATCH)

Searches for a specified item in a range of cells and returns the relative position of that item.

=MATCH(A2, C2:C100, 0)
Excel Advanced

Two-Way Lookup (INDEX & MATCH)

Combines INDEX and MATCH to perform flexible lookups in any direction across rows and columns.

=INDEX(B2:B100, MATCH(A2, C2:C100, 0))
Excel Date/Time

Current Date (TODAY)

Returns the current system date, updating automatically when the worksheet recalculates.

=TODAY()
Excel Date/Time

Current Date & Time (NOW)

Returns the current date and time formatted to your system settings, updating on calculation.

=NOW()
Excel Date/Time

Construct Date (DATE)

Creates a valid Excel date serial number from individual year, month, and day components.

=DATE(2026, 8, 15)
Excel Date/Time

Date Difference (DATEDIF)

Calculates the number of days, months, or years between two dates.

=DATEDIF(A2, B2, "Y")
Excel Advanced

Extract Unique Values (UNIQUE)

Returns a list of unique values from a list or range, automatically spilling into adjacent cells.

=UNIQUE(A2:A100)
Excel Advanced

Filter Data Array (FILTER)

Filters a range of data based on criteria you define, returning matching records as a dynamic array.

=FILTER(A2:C100, B2:B100="Sales", "No Results")
Excel Advanced

Sort Data Array (SORT)

Sorts the contents of a range or array by a specified column index in ascending or descending order.

=SORT(A2:C100, 2, -1)
Excel Text

Search Text Position (SEARCH)

Finds the starting position of a text string within another text string (case-insensitive).

=SEARCH("cat", A2)
Excel Text

Join Text with Delimiter (TEXTJOIN)

Combines text from multiple ranges or strings with a specified delimiter, ignoring empty cells if desired.

=TEXTJOIN(", ", TRUE, A2:A10)
Excel Text

Remove Extra Spaces (TRIM)

Removes all leading, trailing, and repeated spaces from text, leaving only single spaces between words.

=TRIM(A2)
Excel Text

Convert to Uppercase (UPPER)

Converts all letters in a specified text string to uppercase.

=UPPER(A2)
Excel Text

Convert to Lowercase (LOWER)

Converts all letters in a specified text string to lowercase.

=LOWER(A2)
Excel Text

Remove Non-Printable Characters (CLEAN)

Removes all non-printable characters (ASCII values 0 through 31) from a text string.

=CLEAN(A2)
Excel Text

Capitalize Words (PROPER)

Capitalizes the first letter of each word in a text string and converts all other letters to lowercase.

=PROPER(A2)
Excel Text

Text Length (LEN)

Returns the total number of characters in a text string, including spaces and punctuation.

=LEN(A2)
Excel Text

Replace Characters (REPLACE)

Replaces part of a text string with a different text string based on a starting position and character count.

=REPLACE(A2, 1, 4, "2026")
Excel Text

Convert Text to Number (VALUE)

Converts a text string that represents a number into a true numerical value.

=VALUE(A2)
Excel Text

Format Number as Text (TEXT)

Converts a numeric value into text using a specified custom format pattern.

=TEXT(A2, "$#,##0.00")
Excel Text

Substitute Text (SUBSTITUTE)

Replaces existing text with new text in a text string, with optional instance matching.

=SUBSTITUTE(A2, "-", "/")
Excel Text

Find Exact Position (FIND)

Finds the starting position of one text string within another (case-sensitive).

=FIND("Cat", A2)
Excel Math

Standard Rounding (ROUND)

Rounds a number to a specified number of decimal places or digits.

=ROUND(A2, 2)
Excel Math

Round Upward (ROUNDUP)

Rounds a number upward, away from zero, to a specified number of decimal places.

=ROUNDUP(A2, 2)
Excel Math

Round Downward (ROUNDDOWN)

Rounds a number downward, toward zero, to a specified number of decimal places.

=ROUNDDOWN(A2, 2)
Excel Logical

Multiple Conditions (IFS)

Evaluates multiple conditions in order and returns the value corresponding to the first TRUE condition.

=IFS(A2>=90, "A", A2>=80, "B", A2>=70, "C")
Excel Logical

Evaluate Expression (SWITCH)

Evaluates an expression against a list of values and returns the result corresponding to the first matching value.

=SWITCH(A2, 1, "Low", 2, "Medium", 3, "High", "Unknown")
Excel Date/Time

Calculate Future Workday (WORKDAY)

Returns the date before or after a specified number of workdays, automatically excluding weekends and optional holidays.

=WORKDAY(A2, 10, F2:F10)
Excel Date/Time

Count Working Days (NETWORKDAYS)

Returns the total number of whole working days between two dates, automatically excluding weekends and optional holidays.

=NETWORKDAYS(A2, B2, F2:F10)
Excel Date/Time

End of Month Date (EOMONTH)

Returns the serial number of the last day of the month before or after a specified number of months.

=EOMONTH(A2, 1)
Excel Date/Time

Shift Date by Months (EDATE)

Returns the date that is the indicated number of months before or after a specified start date.

=EDATE(A2, 3)
Excel Date/Time

Date Difference (DATEDIF)

Calculates the number of days, months, or years between two specified dates.

=DATEDIF(A2, B2, "Y")
Excel Date/Time

Extract Year (YEAR)

Returns the four-digit year corresponding to a specified date value.

=YEAR(A2)
Excel Date/Time

Extract Month (MONTH)

Returns the month of a date, represented as an integer ranging from 1 to 12.

=MONTH(A2)
Excel Date/Time

Extract Day (DAY)

Returns the day of the month for a given date, represented as a number from 1 to 31.

=DAY(A2)
Excel Date/Time

Day of Week (WEEKDAY)

Returns an integer representing the day of the week for a given date (e.g., 1 for Sunday, 7 for Saturday).

=WEEKDAY(A2, 1)
Excel Date/Time

Week Number of Year (WEEKNUM)

Returns the week number of a specific date in the year (1 through 54).

=WEEKNUM(A2, 1)
Excel Information

Check Numeric Value (ISNUMBER)

Checks whether a value is a number, returning TRUE if it is numeric and FALSE if not.

=ISNUMBER(A2)
Excel Information

Check Text Value (ISTEXT)

Checks whether a value is text, returning TRUE if it contains text characters and FALSE otherwise.

=ISTEXT(A2)
Excel Information

Check Blank Cell (ISBLANK)

Checks whether a cell is completely empty, returning TRUE if blank and FALSE if it contains data.

=ISBLANK(A2)
Excel Text

Extract Text Only (T)

Returns the text referred to by a value, or an empty string if the value is not text.

=T(A2)
Excel Information

Convert to Number (N)

Converts a value to a number (dates to serials, TRUE to 1, non-numeric to 0).

=N(A2)
Excel Math

Round Down to Integer (INT)

Rounds a number down to the nearest whole integer.

=INT(A2)
Excel Math

Round to Next Even Integer (EVEN)

Rounds a positive number up and a negative number down to the nearest even integer.

=EVEN(A2)
Excel Math

Round to Next Odd Integer (ODD)

Rounds a positive number up and a negative number down to the nearest odd integer.

=ODD(A2)
Excel Logical

Logical TRUE Value (TRUE)

Returns the logical value TRUE directly in a formula.

=TRUE()
Excel Logical

Logical FALSE Value (FALSE)

Returns the logical value FALSE directly in a formula.

=FALSE()
Excel Text

Format Number as Text (TEXT)

Converts a numeric value into text using a specified custom format pattern.

=TEXT(A2, "$#,##0.00")
Excel Information

Check for Any Error (ISERROR)

Checks whether a value or formula returns any Excel error (#N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!).

=ISERROR(A2)
Excel Information

Check for Formula Presence (ISFORMULA)

Checks whether a cell reference contains a formula, returning TRUE if it does and FALSE if it contains a static value.

=ISFORMULA(A2)
Excel Financial

Calculate Loan Payment (PMT)

Calculates the periodic payment for a loan based on constant payments and a constant interest rate.

=PMT(0.05/12, 60, -25000)
Excel Financial

Present Value (PV)

Calculates the total current value of a series of future cash flows or annuity payments.

=PV(0.06/12, 36, -500)
Excel Financial

Future Value (FV)

Calculates the future value of an investment based on periodic, constant payments and interest rate.

=FV(0.07/12, 120, -200)

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top