Tag: dynamic array functions

  • Complete List of Excel Functions 2025 – Categorized Guide with Descriptions for Excel 365

    In Microsoft Excel 365 (latest version, 2025), there are over 500 built-in functions.

    📊 Function Count Overview

    Excel VersionApprox. Number of FunctionsNotes
    Excel 2003~ 330 functionsMostly math, text, logical, financial
    Excel 2007~ 340 functionsAdded new statistical & financial functions
    Excel 2010~ 350 functionsIntroduced new functions like AGGREGATE
    Excel 2013~ 380 functionsAdded more engineering & cube functions
    Excel 2016~ 470 functionsAdded TEXTJOIN, IFS, MAXIFS, MINIFS, CONCAT
    Excel 2019~ 480 functionsSimilar to 2016 with some enhancements
    Excel 365≈ 520+ functionsIncludes Dynamic Array functions (FILTER, SORT, UNIQUE, RANDARRAY, SEQUENCE) and Lambda functions

    🔑 Categories of Functions in Excel

    1. Math & Trigonometry – SUM, ROUND, SIN, COS, etc.
    2. Statistical – AVERAGE, MEDIAN, STDEV, VAR, etc.
    3. Logical – IF, AND, OR, IFERROR, IFS.
    4. Text – LEFT, RIGHT, MID, TEXTJOIN, CONCAT, VALUE.
    5. Date & Time – TODAY, NOW, EOMONTH, DATEDIF.
    6. Lookup & Reference – VLOOKUP, HLOOKUP, INDEX, MATCH, XLOOKUP.
    7. Financial – NPV, IRR, PMT, FV.
    8. Engineering – COMPLEX, DELTA, CONVERT.
    9. Information – ISERROR, ISNUMBER, TYPE.
    10. Database – DSUM, DCOUNT.
    11. Cube – CUBEMEMBER, CUBEVALUE.
    12. Web / Dynamic Array (Excel 365) – FILTER, SORT, UNIQUE, SEQUENCE, RANDARRAY.
    13. Lambda & Custom Functions (Excel 365) – LAMBDA, MAP, REDUCE, MAKEARRAY, BYROW, BYCOL.

    1. Math & Trigonometry Functions

    FunctionDescription
    SUMAdds all numbers in a range
    SUMIFAdds numbers in a range that meet a condition
    SUMIFSAdds numbers that meet multiple conditions
    ROUNDRounds a number to a specified number of digits
    ROUNDUPRounds a number up, away from zero
    ROUNDDOWNRounds a number down, towards zero
    INTRounds a number down to the nearest integer
    TRUNCTruncates a number to a specified number of digits
    POWERReturns a number raised to a power
    SQRTReturns the square root of a number
    ABSReturns the absolute value of a number
    MODReturns the remainder after division
    PIReturns the value of π
    SINReturns the sine of an angle
    COSReturns the cosine of an angle
    TANReturns the tangent of an angle
    ASINReturns the arcsine of a number
    ACOSReturns the arccosine of a number
    ATANReturns the arctangent of a number
    ATAN2Returns the arctangent of two numbers (x, y)

    2. Statistical Functions

    FunctionDescription
    AVERAGEReturns the average of numbers
    AVERAGEIFReturns the average of numbers that meet a condition
    AVERAGEIFSReturns the average of numbers that meet multiple conditions
    COUNTCounts the number of numeric values
    COUNTACounts all non-empty cells
    COUNTBLANKCounts empty cells
    COUNTIFCounts cells that meet a condition
    COUNTIFSCounts cells that meet multiple conditions
    MAXReturns the maximum value in a range
    MINReturns the minimum value in a range
    MEDIANReturns the median of numbers
    MODEReturns the most frequent number
    STDEV.PStandard deviation for the entire population
    STDEV.SStandard deviation for a sample
    VAR.PVariance for the entire population
    VAR.SVariance for a sample
    RANK.EQReturns the rank of a number
    RANK.AVGReturns the rank with average in case of ties

    3. Logical Functions

    FunctionDescription
    IFReturns one value if condition is TRUE, another if FALSE
    ANDReturns TRUE if all conditions are TRUE
    ORReturns TRUE if any condition is TRUE
    NOTReverses the logical value
    IFERRORReturns a value if no error, otherwise specified value
    IFSChecks multiple conditions in order
    SWITCHEvaluates expressions against a list of values
    TRUEReturns logical TRUE
    FALSEReturns logical FALSE

    4. Text Functions

    FunctionDescription
    CONCATCombines text from multiple ranges or strings
    TEXTJOINJoins text with a delimiter, ignoring blanks
    LEFTReturns the first characters of a string
    RIGHTReturns the last characters of a string
    MIDReturns characters from the middle of a string
    LENReturns the length of a string
    TRIMRemoves extra spaces
    UPPERConverts text to uppercase
    LOWERConverts text to lowercase
    PROPERCapitalizes the first letter of each word
    REPLACEReplaces characters in a string
    SUBSTITUTEReplaces occurrences of text with new text
    VALUEConverts text to a number
    FINDFinds the position of text in a string (case-sensitive)
    SEARCHFinds the position of text (not case-sensitive)

    5. Date & Time Functions

    FunctionDescription
    TODAYReturns the current date
    NOWReturns the current date and time
    DATECreates a date from year, month, day
    TIMECreates a time from hour, minute, second
    DAYReturns the day of a date
    MONTHReturns the month of a date
    YEARReturns the year of a date
    HOURReturns the hour of a time
    MINUTEReturns the minute of a time
    SECONDReturns the second of a time
    EOMONTHReturns the last day of the month
    WORKDAYReturns a date after adding working days
    NETWORKDAYSCounts working days between two dates
    DATEDIFReturns difference between two dates

    6. Lookup & Reference Functions

    FunctionDescription
    VLOOKUPLooks up a value vertically in a table
    HLOOKUPLooks up a value horizontally in a table
    XLOOKUPAdvanced lookup (vertical or horizontal)
    INDEXReturns the value of a cell in a table based on row & column
    MATCHReturns the relative position of a value in a range
    OFFSETReturns a cell or range offset by rows and columns
    ROWReturns the row number
    COLUMNReturns the column number
    ROWSCounts the number of rows in a range
    COLUMNSCounts the number of columns in a range
    CHOOSEReturns a value from a list based on index number
    HYPERLINKCreates a clickable hyperlink

    7. Financial Functions

    FunctionDescription
    PMTCalculates loan payment
    FVFuture value of an investment
    PVPresent value of an investment
    NPVNet present value
    IRRInternal rate of return
    RATEInterest rate per period
    PPMTPrincipal portion of a loan payment
    IPMTInterest portion of a loan payment
    CUMIPMTCumulative interest payment
    CUMPRINCCumulative principal payment

    8. Engineering Functions

    FunctionDescription
    COMPLEXReturns a complex number
    IMABSAbsolute value of a complex number
    IMAGINARYImaginary coefficient of a complex number
    IMREALReal coefficient of a complex number
    DELTAChecks equality of two numbers
    CONVERTConverts a number from one measurement unit to another

    9. Information Functions

    FunctionDescription
    ISNUMBERChecks if a value is a number
    ISTEXTChecks if a value is text
    ISBLANKChecks if a cell is blank
    ISERRORChecks if a value is any error
    ISERRChecks if a value is an error except #N/A
    TYPEReturns the type of a value

    10. Database & Cube Functions

    FunctionDescription
    DSUMSum values that meet database criteria
    DCOUNTCount values in a database
    DGETExtract a single value from a database
    DMAXMaximum in database based on criteria
    DMINMinimum in database based on criteria
    CUBEMEMBERReturns a member from cube
    CUBEVALUEReturns value from cube
    CUBEMEMBERPROPERTYReturns member property from cube

    11. Dynamic Array & New Excel 365 Functions

    FunctionDescription
    FILTERReturns filtered array based on condition
    SORTSorts array of values
    SORTBYSorts array by another array
    UNIQUEReturns unique values from a range
    SEQUENCEGenerates a sequence of numbers
    RANDARRAYReturns array of random numbers
    XMATCHReturns position of a value in a range (better than MATCH)

    12. LAMBDA & Custom Functions (Excel 365)

    FunctionDescription
    LAMBDACreates reusable custom functions
    MAPApplies a LAMBDA to each element in an array
    REDUCEReduces an array to a single value using LAMBDA
    MAKEARRAYCreates an array using LAMBDA
    BYROWApplies LAMBDA row-wise
    BYCOLApplies LAMBDA column-wise

    💡 Tip: With Excel 365, you can combine dynamic arrays and LAMBDA functions to create an unlimited number of custom calculations, so technically the “number of functions” is infinite if you include user-defined ones.


  • How to Reshape Data in Excel Using WRAPROWS and WRAPCOLS Functions

    Here’s a detailed explanation of how to use the WRAPROWS and WRAPCOLS functions in Excel — these are part of Excel’s dynamic array functions available in Microsoft 365 and Excel 2021 onwards.


    1. WRAPROWS Function in Excel

    Purpose:

    WRAPROWS reshapes a single row or column of data into a table-like structure with a specified number of values per row.

    Syntax:

    WRAPROWS(vector, wrap_count, [pad_with])
    

    Parameters:

    • vector: The range or array to reshape (single row/column)
    • wrap_count: How many items per row
    • pad_with (optional): Value to fill in if the last row is incomplete

    Example:

    Given a list in A1:A10:

    A1:A10 = {1,2,3,4,5,6,7,8,9,10}
    

    Formula:

    =WRAPROWS(A1:A10, 4)
    

    Result:

    1   2   3   4  
    5   6   7   8  
    9  10
    

    With padding:

    =WRAPROWS(A1:A9, 4, "NA")
    

    Result:

    1   2   3   4  
    5   6   7   8  
    9  NA  NA  NA
    

    2. WRAPCOLS Function in Excel

    Purpose:

    WRAPCOLS reshapes data into a column-wise format, specifying how many values per column.

    Syntax:

    WRAPCOLS(vector, wrap_count, [pad_with])
    

    Example:

    List in A1:A10:

    =WRAPCOLS(A1:A10, 4)
    

    Result:

    1   5   9  
    2   6   10  
    3   7  
    4   8  
    

    With padding:

    =WRAPCOLS(A1:A9, 4, "N/A")
    

    Result:

    1   5   9  
    2   6   N/A  
    3   7   N/A  
    4   8   N/A
    

    ✅ Key Notes:

    • These functions are useful for layout transformation, preparing data for printing, visualization, or dashboards.
    • They work well with other dynamic functions like SEQUENCE, SORT, UNIQUE, etc.

  • XLOOKUP Function in Excel 365: Complete Guide with Examples and Top 20 Interview Questions


    🔍 How to Use the XLOOKUP Function in Excel 365 — Detailed Guide

    ✅ What is XLOOKUP?

    XLOOKUP is a powerful lookup function introduced in Excel 365 and Excel 2021 to replace older functions like VLOOKUP, HLOOKUP, and even INDEX + MATCH. It can search horizontally or vertically, supports approximate/partial matches, and even returns custom messages when no match is found.


    📌 Syntax:

    XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
    
    ArgumentDescription
    lookup_valueThe value to search for
    lookup_arrayThe range or array to search in
    return_arrayThe range or array to return data from
    if_not_found(Optional) Value to return if no match is found
    match_mode(Optional) 0 = exact match (default), -1 = exact or next smaller, 1 = exact or next larger, 2 = wildcard
    search_mode(Optional) 1 = search from first to last (default), -1 = search from last to first

    🧪 Basic Example:

    You have the following data:

    AB
    ProductPrice
    Apple100
    Banana60
    Mango80

    To find the price of Mango:

    =XLOOKUP("Mango", A2:A4, B2:B4)
    

    ➡️ Result: 80


    🧪 Example with if_not_found:

    =XLOOKUP("Orange", A2:A4, B2:B4, "Not Available")
    

    ➡️ Result: Not Available (because “Orange” doesn’t exist)


    🧪 Example using wildcard match:

    =XLOOKUP("*man*", A2:A4, B2:B4, , 2)
    

    ➡️ This matches any product containing “man” (e.g., “Mango”)


    🧪 Reverse Lookup (Bottom to Top):

    =XLOOKUP("Mango", A2:A4, B2:B4, , 0, -1)
    

    ➡️ Searches from bottom to top. Useful if the latest entry is preferred.


    🧠 20 Interview-Based Questions on XLOOKUP with Answers


    Q1. What is XLOOKUP in Excel?
    A1. XLOOKUP is a modern lookup function that replaces older functions like VLOOKUP and HLOOKUP. It can search vertically or horizontally and offers more flexibility.


    Q2. How is XLOOKUP better than VLOOKUP?
    A2. XLOOKUP allows lookup to the left, supports default return on no match, wildcards, and reverse searches, which VLOOKUP cannot do.


    Q3. Can XLOOKUP search horizontally?
    A3. Yes. You can use it like HLOOKUP by selecting rows instead of columns.


    Q4. What happens if the lookup value is not found?
    A4. If you specify the if_not_found parameter, that value is returned. Otherwise, Excel returns a #N/A error.


    Q5. How can you use XLOOKUP for an exact match?
    A5. Either omit the match_mode (default is exact) or explicitly set it to 0.


    Q6. Can XLOOKUP return an entire row or column?
    A6. Yes, it supports dynamic arrays, so it can return multiple values from a row or column.


    Q7. What does match_mode = 2 mean?
    A7. It enables wildcard matching using * (any number of characters) or ? (single character).


    Q8. What is the purpose of the search_mode parameter?
    A8. It controls the search direction: 1 = top to bottom (default), -1 = bottom to top.


    Q9. Is XLOOKUP case-sensitive?
    A9. No, XLOOKUP is not case-sensitive by default.


    Q10. Can XLOOKUP replace INDEX + MATCH?
    A10. Yes, and it’s simpler to write and understand.


    Q11. What’s the difference between XLOOKUP and LOOKUP?
    A11. LOOKUP is an older function requiring sorted data; XLOOKUP doesn’t and is more robust.


    Q12. What is returned if multiple matches are found?
    A12. XLOOKUP returns the first match, unless search_mode is set to -1 (then it returns the last match).


    Q13. Can XLOOKUP handle blank cells?
    A13. Yes. It will match blank cells if "" is used as the lookup_value.


    Q14. Can XLOOKUP be nested with other functions?
    A14. Yes, it works well inside other functions like IF, SUM, etc.


    Q15. How does XLOOKUP behave in arrays with errors?
    A15. It stops at the first error unless error handling (like IFERROR) is added.


    Q16. Is XLOOKUP available in Excel 2016 or 2019?
    A16. No. XLOOKUP is only available in Excel 365 and Excel 2021.


    Q17. Can XLOOKUP search from right to left?
    A17. Yes, it’s not restricted by column order like VLOOKUP.


    Q18. How to use XLOOKUP for range lookups (approximate match)?
    A18. Set match_mode to -1 (for next smaller) or 1 (for next larger).


    Q19. Can you perform two-way lookups using XLOOKUP?
    A19. Yes. Combine two XLOOKUPs — one for row and one for column.


    Q20. How does XLOOKUP handle dynamic named ranges or structured tables?
    A20. It works seamlessly with dynamic arrays, tables, and named ranges.


  • Mastering the DROP Function in Excel 365: Syntax, Examples, and Interview Q&A

    ✅ How to Use DROP Function in Excel 365

    The DROP function in Excel 365 is a dynamic array function that allows you to remove a specified number of rows or columns from the start or end of an array or range.


    🔧 Syntax:

    DROP(array, rows, [columns])
    
    ArgumentDescription
    arrayThe array or range of data to modify
    rowsNumber of rows to drop. Positive to drop from top, negative from bottom
    [columns](Optional) Number of columns to drop. Positive to drop from left, negative from right

    📘 Example 1: Drop Top 2 Rows

    =DROP(A1:C5, 2)
    

    ➡️ Drops the first 2 rows, returns rows 3 to 5 from columns A to C.


    📘 Example 2: Drop Last 1 Row and First 1 Column

    =DROP(A1:C5, -1, 1)
    

    ➡️ Drops the last row and the first column.


    📘 Example 3: Drop Last 2 Columns

    =DROP(A1:D4, 0, -2)
    

    ➡️ Keeps all rows, removes the last 2 columns.


    🧠 Interview-Based Questions (with answers)


    Q1. What is the use of the DROP function in Excel 365?

    A1. The DROP function is used to exclude a specific number of rows or columns from an array or range, returning the remaining values dynamically. It’s particularly helpful when cleaning data or adjusting tables on the fly.


    Q2. Can the DROP function be used with ranges that include text data?

    A2. Yes, the DROP function works with arrays that include text, numbers, dates, or any Excel-supported data types.


    Q3. What will the result be if you use a negative value for the rows or columns arguments in DROP?

    A3. A negative value for rows drops rows from the bottom. A negative value for columns drops columns from the right.


    Q4. What happens if you use the DROP function on a range smaller than the number of rows or columns you try to drop?

    A4. Excel will return a #CALC! error, indicating the drop exceeds the array bounds.


    Q5. Can you combine DROP with other dynamic array functions like SORT or FILTER?

    A5. Yes, DROP is often combined with functions like SORT, FILTER, TAKE, or UNIQUE to create powerful, flexible data transformations in Excel 365.


    On sale products