Tag: Excel Functions

  • Top 10 Ways to Clean Data in Excel Easily (With Examples)

    Data cleaning is crucial when working with large datasets in Excel. Raw data often contains errors like extra spaces, duplicates, inconsistent formatting, or missing values. Cleaning data ensures accurate analysis, professional reports, and better decision-making. Here’s a step-by-step guide to the top 10 ways to clean data in Excel with real examples.


    1. Remove Extra Spaces with TRIM Function

    Extra spaces often appear when importing data from other sources. These spaces can cause formulas to fail or make data look inconsistent.

    How to Apply:

    1. Suppose cell A1 contains " John Doe " (with spaces at start and end).
    2. Use the formula: =TRIM(A1)
    3. Excel removes all leading, trailing, and extra spaces between words.

    Example:

    OriginalCleaned
    ” John Doe ““John Doe”

    2. Convert Text to Numbers

    Sometimes numeric values are stored as text, which can break calculations.

    How to Apply:

    1. Suppose cell B1 has "100" stored as text.
    2. Use the formula: =VALUE(B1)
    3. Excel converts text to a number that can be used in calculations.

    Example:

    OriginalConverted
    “100”100

    Alternative: Select the column → Click Data > Text to Columns → Finish. This also converts text numbers into actual numbers.


    3. Remove Duplicates

    Duplicate entries can skew analysis and reports.

    How to Apply:

    1. Select the dataset.
    2. Go to Data → Remove Duplicates.
    3. Choose the columns to check duplicates.
    4. Click OK.

    Example:

    NameCity
    John DoeDelhi
    Jane SmithMumbai
    John DoeDelhi

    ✅ Now only unique entries remain.


    4. Use Find and Replace for Bulk Changes

    Correct common errors or format data quickly.

    How to Apply:

    1. Press Ctrl + H.
    2. In Find What, type the incorrect data (e.g., “Indai”).
    3. In Replace With, type the correct data (e.g., “India”).
    4. Click Replace All.

    Example:

    OriginalCorrected
    IndaiIndia

    This method also works for symbols, extra characters, or formatting changes.


    5. Standardize Text Case (PROPER, UPPER, LOWER)

    Inconsistent capitalization can make data look unprofessional.

    Formulas:

    • =PROPER(A1) → Capitalizes first letter of each word.
    • =UPPER(A1) → Converts to uppercase.
    • =LOWER(A1) → Converts to lowercase.

    Example:

    OriginalProper CaseUpper CaseLower Case
    john doeJohn DoeJOHN DOEjohn doe

    6. Handle Missing Data

    Missing values can affect calculations and charts.

    Methods:

    1. Replace with 0: =IF(A1="","0",A1)
    2. Replace with average: =IF(A1="",AVERAGE($A$1:$A$100),A1)

    Example:

    ValueCleaned
    100100
    0

    7. Text-to-Columns for Splitting Data

    Useful when multiple values are in a single column (e.g., Name, City, State).

    How to Apply:

    1. Select the column.
    2. Go to Data → Text to Columns.
    3. Choose Delimited → Select delimiter (comma, space, etc.).
    4. Click Finish.

    Example:

    OriginalNameCityState
    John Doe, Delhi, DLJohn DoeDelhiDL

    8. Use SUBSTITUTE for Text Errors

    Replace unwanted characters, symbols, or words automatically.

    Formula:

    =SUBSTITUTE(A1,"-","")
    

    Example:

    OriginalCleaned
    123-456-78901234567890

    9. Use Flash Fill for Quick Formatting

    Automatically fills a column based on the pattern you provide.

    How to Apply:

    1. Type the desired output in one cell.
    2. Press Ctrl + E to auto-fill the rest.

    Example:

    OriginalFirst Name
    John DoeJohn
    Jane SmithJane

    ✅ Flash Fill extracts first names automatically.


    10. Data Validation to Prevent Future Errors

    Prevent users from entering invalid data in a column.

    How to Apply:

    1. Select the column.
    2. Go to Data → Data Validation.
    3. Set criteria (e.g., numbers between 1–100, date range, dropdown list).

    Example:

    • Prevents typing letters in a numeric score column.
    • Creates dropdown menus for cities or product categories.

    Conclusion

    Cleaning data in Excel is essential for accurate reporting, analysis, and decision-making. By mastering these 10 methods—TRIM, Remove Duplicates, Flash Fill, Data Validation, and more—you can save time and avoid errors.

    ✅ Pro Tip: Combine methods like TRIM + Remove Duplicates + Data Validation for maximum efficiency.


  • Top 20 Excel Tricks That Will Make You Work Faster

    Microsoft Excel is more than just rows and columns—it’s a productivity powerhouse. Yet, most people only use a fraction of its potential. Whether you are a student, a professional, or someone managing personal finances, knowing the right Excel tricks can save you hours of work every week.

    In this article, we’ll cover the top 20 Excel tricks that will make you faster, smarter, and more confident while working with data.


    1. Use Flash Fill for Instant Data Entry

    Typing repetitive patterns like names, email IDs, or codes?

    • Just type the first example, press Ctrl + E, and Excel will auto-complete the rest.
      👉 Example: If you have a column of full names, type the first first-name in the next column and press Ctrl + E. Excel instantly extracts all first names.

    2. Quickly Select Data with Ctrl + Shift + Arrow Keys

    Instead of dragging the mouse, use:

    • Ctrl + Shift + ↓ to select an entire column of data.
    • Ctrl + Shift + → to select a full row.
      Perfect for big data sets!

    3. Turn Numbers into Charts in Seconds

    Highlight your data → Press Alt + F1 → Boom! Instant chart on the same sheet.
    👉 Use F11 to create the chart in a new sheet.


    4. Paste Special (Values, Formats, Operations)

    Right-click → Paste Special (or Ctrl + Alt + V) to:

    • Paste only values (skip formulas).
    • Paste formats only.
    • Even add, subtract, multiply directly while pasting.
      Huge time-saver!

    5. Insert Today’s Date & Time Instantly

    • Ctrl + ; → Inserts today’s date.
    • Ctrl + Shift + ; → Inserts current time.

    6. Use Conditional Formatting for Insights

    Highlight data trends without formulas.
    👉 Example: Use Color Scales to quickly spot highest and lowest values in a report.


    7. Freeze Panes for Easy Navigation

    Working on long spreadsheets?

    • Go to View → Freeze Panes to lock headers or first columns so they stay visible as you scroll.

    8. Quickly Remove Duplicates

    Go to Data → Remove Duplicates.
    👉 Example: Clean email lists or product codes in seconds.


    9. Use Text to Columns

    Split data without formulas.
    👉 Example: Separate first and last names or split data by commas, spaces, or custom delimiters.


    10. VLOOKUP (Still a King!)

    Find data instantly from large tables.
    👉 Example: =VLOOKUP(101, A2:D100, 3, FALSE) → Finds product info for ID 101.


    11. XLOOKUP (The Modern Alternative)

    Available in newer Excel versions. Unlike VLOOKUP, it works left-to-right and right-to-left.
    👉 Example: =XLOOKUP(101, A2:A100, D2:D100)


    12. Use FILTER Function

    Extract data that matches a condition.
    👉 Example: =FILTER(A2:D100, C2:C100=”Sales”) → Pulls all Sales department rows.


    13. Quick AutoSum with Alt + =

    Select a column → Press Alt + = → Excel automatically inserts a SUM formula.


    14. Turn Data into a Table (Ctrl + T)

    Tables auto-expand, have filters, and make formulas easier to manage.


    15. Power Query for Data Cleaning

    Found in Data → Get & Transform Data.
    👉 Combine multiple sheets, clean messy data, and automate tasks without writing a single formula.


    16. Use Named Ranges

    Instead of =SUM(A2:A100), use =SUM(Sales).
    👉 Named ranges make formulas easier to read and maintain.


    17. Keyboard Shortcuts You Must Know

    • Ctrl + Z → Undo
    • Ctrl + Y → Redo
    • Ctrl + F → Find
    • Ctrl + H → Replace
    • Ctrl + Space → Select entire column
    • Shift + Space → Select entire row

    18. IF Function for Logic

    👉 Example: =IF(C2>=50, “Pass”, “Fail”)
    Automates decision-making in your reports.


    19. Use PivotTables for Instant Summaries

    Analyze large data sets without writing formulas.
    👉 Example: Summarize sales by region, month, or product with just a few clicks.


    20. Protect Sheets and Cells

    Go to Review → Protect Sheet to lock formulas while allowing data entry in specific cells.


    ✅ Final Thoughts

    Learning these 20 Excel tricks can easily make you 2X faster at work. The key is not just to know them but to practice regularly. The more you use these shortcuts, formulas, and tools, the more time you’ll save.

    💡 Whether you’re preparing financial reports, handling business data, or cracking a job interview, mastering these Excel hacks will give you a professional edge.


    Office Productivity Courses


  • 1-Day Excel Interview Prep Plan: How to Master Key Skills Overnight

    If you have just one day to prepare for an Excel-related interview, your goal isn’t to learn everything — it’s to refresh the essentials, cover high-frequency questions, and get hands-on practice so you can answer with confidence.

    Here’s a step-by-step crash plan (8–10 hours total):


    ⏰ Hour 1: Understand the Job Role

    • Check the job description → Which Excel skills do they want? (e.g., data analysis, reporting, dashboards, VBA, Power Query).
    • Identify focus areas → If it says MIS, focus more on reporting formulas. If Data Analyst, focus more on lookup, filters, and pivot tables.
    • Quickly note down:
      • Core functions mentioned
      • Tools (Pivot Table, Power Query, Macros, SQL, etc.)
      • Business context (sales reports, financial data, etc.)

    ⏰ Hours 2–4: Formula Mastery

    Focus on 10–12 key formulas you will almost certainly be tested on:

    Formula / FunctionWhy ImportantQuick Example
    VLOOKUP / XLOOKUPMerge datasets, fetch related data=XLOOKUP(101, A2:A100, B2:B100, "Not Found")
    INDEX + MATCHFlexible lookups=INDEX(Sales, MATCH("Apple", Product, 0))
    IF + IFSConditional logic=IF(B2>5000,"High","Low")
    SUMIF / SUMIFSConditional totals=SUMIFS(Sales, Region, "East", Product, "Apple")
    COUNTIF / COUNTIFSCount with conditions=COUNTIFS(Region,"West", Sales, ">5000")
    TEXT functions (LEFT, RIGHT, MID, TRIM, LEN)Clean & extract text=LEFT(A2,5)
    FILTERDynamic filtering=FILTER(A2:D100, Region="North")
    UNIQUERemove duplicates=UNIQUE(Product)
    Date functions (YEAR, MONTH, EOMONTH, TEXT)Date-based analysis=TEXT(A2,"MMM-YYYY")

    Action:

    • Open Excel and type small practice datasets (10–15 rows).
    • Try each formula 3–4 times until you can do it without looking up syntax.

    ⏰ Hours 5–6: Pivot Tables & Data Cleaning

    • Create 2–3 quick Pivot Tables:
      • Sales by Region and Month
      • Top 5 products by revenue
    • Practice:
      • Sorting, filtering
      • Grouping dates
      • Adding calculated fields
    • In Power Query:
      • Remove duplicates
      • Split columns
      • Change data types
      • Merge two tables

    ⏰ Hours 7–8: Practice Real Problems

    • Download any sample dataset (e.g., sales data, HR data from Kaggle or random CSV).
    • Do these exercises:
      • Find top performer by sales
      • Monthly sales trend
      • Count customers who purchased more than 3 times
      • Merge customer table with orders table
      • Create a simple dashboard (Pivot + Slicer)

    ⏰ Hour 9: Review Common Interview Questions

    Technical Qs:

    1. Difference between VLOOKUP and INDEX+MATCH?
    2. How to remove duplicates without affecting original data?
    3. How do you handle missing data in Excel?
    4. How to extract month name from a date?
    5. What is the difference between Absolute and Relative cell references?

    Scenario Qs:

    1. “You have sales data; find the top 3 regions by revenue.”
    2. “Find customers who purchased in Jan but not in Feb.”
    3. “Your report shows wrong totals—how do you troubleshoot?”

    ⏰ Hour 10: Mock Drill

    • Set a 30-min timer.
    • Ask a friend (or yourself) to give you 5 tasks on a dataset.
    • Solve them without Google — this simulates test conditions.
    • After the drill, check your answers and note mistakes.

    💡 Last-Minute Tips for the Interview

    • Think out loud → Even if you don’t know the answer, walk through your approach.
    • Show shortcut keys (Ctrl+T for tables, Alt+N+V for Pivot Tables) — looks impressive.
    • Focus on accuracy first, speed later — wrong answers ruin trust.

  • Top 10 Excel Functions Every Data Analyst Must Master

    When Rohan, a 26-year-old commerce graduate from Pune, started preparing for his first data analyst interview, he quickly realized one thing – Excel is not just a spreadsheet tool, it’s a career-making skill.

    He had always used Excel for basic sums and formatting, but during mock interviews, he froze when asked,

    “Can you combine INDEX and MATCH to find a sales figure for a product in a given month?”

    That day, Rohan decided – No more guesswork. I will master the top Excel functions recruiters expect.
    Here’s what he learned, with examples from his practice sessions.


    1. VLOOKUP / XLOOKUP – Rohan’s ‘Data Detective’ Tool

    One day, Rohan had two datasets – one with Product Names, another with Sales Values.
    Instead of scrolling endlessly, he used:

    =XLOOKUP("Mango Juice", A2:A100, B2:B100, "Not Found")
    

    Result: Sales value for Mango Juice in seconds.
    Lesson: Lookup functions save hours in data matching.


    2. INDEX + MATCH – Rohan’s Upgrade

    During an interview test, the product name was in column C, and sales were in column A.
    VLOOKUP couldn’t help (it needs the lookup column first).
    Rohan used:

    =INDEX(A2:A100, MATCH("Mango Juice", C2:C100, 0))
    

    Lesson: INDEX+MATCH works in any direction and is interview gold.


    3. TEXT Functions – Cleaning Rohan’s Messy Data

    His dataset had customer IDs like " AB1234 " with spaces.
    He cleaned it using:

    =TRIM(A2)
    

    And extracted first 2 letters for state code:

    =LEFT(A2, 2)
    

    Lesson: TEXT functions like LEFT, RIGHT, MID, TRIM, and LEN are must-haves for messy datasets.


    4. IF + IFS – Decision Maker

    When given sales targets, Rohan categorized them:

    =IF(B2>=100000, "Top Performer", "Needs Improvement")
    

    For multiple conditions:

    =IFS(B2>=100000, "Top Performer", B2>=50000, "Average", TRUE, "Low")
    

    Lesson: IF helps classify data instantly.


    5. SUMIF / SUMIFS – Finding Patterns

    To know the total sales for “Mango Juice” in the “East” region:

    =SUMIFS(Sales, Product, "Mango Juice", Region, "East")
    

    Lesson: SUMIFS is perfect for quick conditional aggregations.


    6. COUNTIF / COUNTIFS – Counting What Matters

    In one dataset, Rohan needed to know how many orders were above ₹5,000:

    =COUNTIF(Sales, ">5000")
    

    Lesson: COUNT functions are quick ways to spot trends in large datasets.


    7. FILTER – Rohan’s Shortcut to Relevant Data

    Instead of applying Excel’s manual filter, Rohan extracted all sales for the “North” region with:

    =FILTER(A2:D100, Region="North")
    

    Lesson: Dynamic, criteria-based extraction beats manual filtering.


    8. UNIQUE – Finding Distinct Customers

    When asked for the number of unique buyers, Rohan did:

    =UNIQUE(CustomerName)
    

    Lesson: UNIQUE quickly deduplicates lists for better analysis.


    9. Date Functions – Time Travel in Excel

    Rohan needed monthly trends. He used:

    =TEXT(OrderDate, "MMM-YYYY")
    

    For month-end date:

    =EOMONTH(OrderDate, 0)
    

    Lesson: Date functions help slice and dice time-based data.


    10. Power Query + Power Pivot – Rohan’s Secret Weapon

    By now, Rohan could clean data in Power Query, load millions of rows, and use DAX for calculated measures.
    In one interview, he impressed the panel by transforming raw CSV files into a dashboard-ready table in 10 minutes.


    Rohan’s Takeaway

    “Excel isn’t about knowing formulas by heart—it’s about knowing which function to use when, and how to combine them.”

    Master these 10 functions, and you’re not just prepared for a data analyst job—you’re prepared for real-world problem solving.


    Top rated products

  • Extract Numbers from Text in Excel Using VBA – Works for Indian & European Formats

    🧾 Scenario:

    At Shree Tech Pvt. Ltd., Priya is a finance executive handling a lot of messy Excel data received from multiple vendors and sales teams across India and Europe.

    One day, she encounters a peculiar problem.
    In the “Remarks” column, instead of clean numbers, she sees entries like:

    • "₹3,499 paid in full"
    • "1.250,50 EUR"
    • "Advance of 7500.00 received"
    • "Amount is Rs. 2,50,000/-"

    She needs to extract only the numeric value from these cells, but Excel’s built-in tools can’t help much.

    That’s when her teammate, Rohit, a skilled MIS guy, steps in with a magic wand—a custom VBA function called getNumber.


    🧙‍♂️ The Magic VBA Function: getNumber

    Here’s the full code Rohit shares:

    vbaCopyEditPublic Function getNumber(fromThis As Range) As Double
        'Extract the number from a cell and return it.
        Dim retVal As String
        Dim ltr As String, i As Integer, european As Boolean
        
        retVal = ""
        getNumber = 0
        european = False
        
        On Error GoTo last
        'Check if the range contains European format number i.e. , for decimal point
        If fromThis.Value Like "*.*,*" Then
            european = True
        End If
        
        For i = 1 To Len(fromThis)
            ltr = Mid(fromThis, i, 1)
            If IsNumeric(ltr) Then
                retVal = retVal & ltr
            ElseIf ltr = "." And (Not european) And Len(retVal) > 0 Then
                retVal = retVal & ltr
            ElseIf ltr = "," And european And Len(retVal) > 0 Then
                retVal = retVal & "."
            End If
        Next i
        getNumber = CDbl(retVal)
    last:
    End Function
    

    🔍 Line-by-Line Breakdown with Office-style Explanation


    ✅ What it does:

    Extracts numbers embedded in any text, whether the number is in Indian format (e.g., 2,50,000) or European format (e.g., 1.234,56).


    🎬 Scene-by-Scene Breakdown:


    🪪 Characters:

    • fromThis: The Excel cell that has the mixed content (like "Total ₹4,500.50 paid").
    • retVal: The string variable used to slowly build the extracted number.
    • european: A flag to detect if commas are used as decimal separators (common in European format like "1.234,56").

    💡 Step 1: Initialization

    vbaCopyEditretVal = ""
    getNumber = 0
    european = False
    

    Rohit clears any previous values and sets the assumption that the format is not European by default.


    🧠 Step 2: Detecting European Format

    vbaCopyEditIf fromThis.Value Like "*.*,*" Then
        european = True
    End If
    

    This checks if the cell contains both a dot and a comma (e.g., "1.234,56"). If yes, it assumes the comma is the decimal point (European format).

    Priya’s vendor from Germany sent "1.250,50 EUR". This line sets european = True.


    🔁 Step 3: Loop Through Each Character

    vbaCopyEditFor i = 1 To Len(fromThis)
        ltr = Mid(fromThis, i, 1)
    

    The loop reads the text character by character. If the cell has "Amount ₹2,50,000.75", it starts reading "A", "m", "o", etc.


    🔢 Step 4: Build the Numeric Part

    Here’s the logic Rohit uses:

    vbaCopyEditIf IsNumeric(ltr) Then
        retVal = retVal & ltr
    

    If the character is a digit (0–9), it adds to the final number string.

    Then:

    vbaCopyEditElseIf ltr = "." And (Not european) And Len(retVal) > 0 Then
        retVal = retVal & ltr
    

    If it’s a . and it’s not European format, it’s added as the decimal point.

    vbaCopyEditElseIf ltr = "," And european And Len(retVal) > 0 Then
        retVal = retVal & "."
    

    If it’s European format, then the comma , is converted into a dot .—because VBA/Excel understand . as the decimal point.

    So "1.234,56" becomes "1234.56" internally.


    💾 Step 5: Convert the Final String to Number

    vbaCopyEditgetNumber = CDbl(retVal)
    

    Finally, the retVal string, say "4500.75", is converted into a Double data type using CDbl.


    🛑 Step 6: Error Handling

    vbaCopyEditOn Error GoTo last
    ...
    last:
    End Function
    

    If there’s any weird data or unexpected character that crashes the function, it fails silently and exits.


    📦 Examples: How It Works in Practice

    Cell ContentOutputExplanation
    "Rs. 4,500.75 paid"4500.75Indian format, plain extraction
    "1.234,56 EUR"1234.56European format, comma → dot
    "Amount: ₹2,50,000/-"250000Only digits picked, commas ignored
    "Advance of 7500.00 received"7500.00Straight number pulled out
    "Zero balance"0No digits found, returns 0

    ✅ Where to Use This Function

    Use =getNumber(A2) in any cell, where A2 contains your text with numbers.


    🎁 Bonus Tip from Rohit:

    You can paste this VBA code into your Excel file by pressing:

    1. ALT + F11 → Open VBA editor
    2. Insert > Module
    3. Paste the code
    4. Save as Macro-Enabled Workbook (.xlsm)

    Download Number Extraction VBA Function File


    Top rated products

  • 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.

    Top rated products

  • How to Generate QR Codes in Excel and Google Sheets (Step-by-Step Guide)

    You can generate QR codes in Excel (Microsoft 365) and Google Sheets easily using built-in features or free add-ons. Here’s a detailed guide for both platforms:


    ✅ In Microsoft Excel (Microsoft 365)

    🔸 Method 1: Using Excel Add-in – “QR4Office”

    📌 Steps:

    1. Open Excel and go to the Insert tab.
    2. Click on “Get Add-ins” (or Office Add-ins).
    3. Search for “QR4Office” and click Add.
    4. Once added, go to Insert → My Add-ins → QR4Office.
    5. A QR code generator pane will appear on the right.

    🎯 To Generate a QR Code:

    • Enter the text or URL you want to convert.
    • Adjust size, color, and error correction level.
    • Click Insert — the QR code will appear in your sheet as an image.

    🔸 Method 2: Using a Web API (Google Chart API)

    You can generate QR codes dynamically using a formula with an image from an online API.

    📌 Steps:

    1. Use this formula in a cell:
    =IMAGE("https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=" & A2)
    

    ✅ Replace A2 with the cell that has the text or link you want to turn into a QR code.

    📝 chs=150x150: Size of the QR code
    📝 chl=: The data encoded in the QR code

    Note: Excel’s IMAGE function is available in Microsoft 365 versions only.


    ✅ In Google Sheets

    📌 Steps:

    1. In a cell, enter this formula:
    =IMAGE("https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=" & A2)
    

    ✅ Replace A2 with the reference cell containing the text or URL you want in the QR code.

    The QR code will appear in the cell as an image.


    🧠 Extra Tips:

    • You can drag the formula down to generate QR codes for an entire list.
    • You can use ENCODEURL(A2) inside the formula to safely encode special characters:
    =IMAGE("https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=" & ENCODEURL(A2))
    

    Top rated products

  • 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.


    Top rated products

  • 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

  • How to Use ARRAYTOTEXT Function in Excel 365?

    ✅ What is the ARRAYTOTEXT Function?

    ARRAYTOTEXT(array, [format]) is a text function in Excel 365 that converts an array (range of values or formulas) into a single text string.
    It is helpful when you want to visualize or export the values of a range as a single readable string.

    Syntax

    ARRAYTOTEXT(array, [format])
    
    • array – Required. The array or range to convert.
    • format – Optional.
      • 0 (default): Returns compact format (best for ranges with just values).
      • 1: Returns strict format (adds quotes and brackets, good for formulas or nested arrays).

    Priya runs a home tiffin service in Pune. Every day, she notes down the dishes prepared in Excel. Her customers often ask for the daily menu via WhatsApp.

    She wants a quick way to convert the dish list in cells (A2:A6) into a single line of text that she can copy and send.

    Data in Excel

    A2: Roti
    A3: Paneer Butter Masala
    A4: Dal Tadka
    A5: Rice
    A6: Salad
    

    Use ARRAYTOTEXT

    =ARRAYTOTEXT(A2:A6)
    

    Output (Compact format):

    Roti,Paneer Butter Masala,Dal Tadka,Rice,Salad
    

    ✅ Now Priya can copy-paste this line into WhatsApp quickly.


    🛠 Strict Format Option

    If Priya uses:

    =ARRAYTOTEXT(A2:A6, 1)
    

    She gets:

    {"Roti";"Paneer Butter Masala";"Dal Tadka";"Rice";"Salad"}
    

    Useful if she needs to paste it into a formula or some system that requires strict array syntax.


    🎯 When to Use ARRAYTOTEXT?

    • Sending list of items via email/WhatsApp (like Priya).
    • Logging or displaying a formula output for review.
    • Saving snapshot of values in formulas (for audit or export).
    • Creating readable logs from dynamic data.

    ✅ Summary

    FeatureDetails
    Function NameARRAYTOTEXT
    PurposeConverts a range/array to a single text
    Optional ArgumentFormat: 0 (compact), 1 (strict)
    Real-life Use CaseTiffin service menu sharing, student name list export, audit logs

    On sale products

  • EXPAND Function in Excel 365 – Resize Arrays with Ease


    🔍 What is the EXPAND Function in Excel 365?

    The EXPAND function is a dynamic array function introduced in Excel 365. It allows you to resize an array to a specified number of rows and columns by adding empty cells or a custom value as needed.

    Think of it as a way to force a range into a specific shape, useful when building dynamic templates, padding arrays, or preparing structured data outputs.


    🔧 Syntax

    =EXPAND(array, rows, columns, [pad_with])
    
    ArgumentDescription
    arrayThe original array to expand
    rowsThe total number of rows desired in the output
    columnsThe total number of columns desired
    pad_with(Optional) The value to use for padding if the array is smaller than the specified size (default is blank)

    ✅ Examples of EXPAND in Excel


    🔹 Example 1: Expand a 2×2 Array to 4×4 with Blanks

    =EXPAND({1,2;3,4}, 4, 4)
    

    ✅ Output:

    1   2   ""  ""
    3   4   ""  ""
    ""  ""  ""  ""
    ""  ""  ""  ""
    

    🔹 Example 2: Expand with a Custom Padding Value

    =EXPAND({1,2;3,4}, 3, 5, 0)
    

    ✅ Output:

    1   2   0   0   0  
    3   4   0   0   0  
    0   0   0   0   0  
    

    🔹 Example 3: Use with VSTACK or HSTACK

    You can combine EXPAND with VSTACK to align data nicely:

    =EXPAND(VSTACK({1,2}, {3,4}), 5, 2, "-")
    

    🔹 Example 4: Prepare Fixed Template Output

    Use EXPAND to standardize report sections, e.g., always show 10 rows in a report, even if data has fewer:

    =EXPAND(A2:B4, 10, 2, "N/A")
    

    🔹 Example 5: Resize Named Ranges for Dashboards

    Create a uniform input structure for dashboards that doesn’t break when data is missing.


    🧠 Why Use EXPAND?

    • Ensures consistent array size for formulas or visualizations
    • Helps in report automation
    • Pairs well with functions like DROP, TAKE, VSTACK, HSTACK
    • Great for data transformation pipelines

    ❓ 5 Interview-Based Questions on EXPAND


    1. What is the purpose of the EXPAND function in Excel 365?

    Expected Answer: To resize an array to a specified number of rows and columns, filling in missing cells with blank or a defined value.


    2. What will this formula return?

    =EXPAND({10,20;30,40}, 3, 3, "X")
    

    Answer:

    10   20   X  
    30   40   X  
    X    X    X  
    

    3. How can EXPAND be used to create a fixed-size export template?

    Expected Answer: By padding data with a default value up to a known row/column count, ensuring uniformity in exports or dashboard feeds.


    4. What happens if the array passed to EXPAND is already larger than the specified size?

    Answer: Excel will not truncate the array — it will simply return the full array. EXPAND only pads; it doesn’t shrink.


    5. Write a formula to expand a 2×2 array into a 4×4 array using the value “NA” as filler.

    =EXPAND({1,2;3,4}, 4, 4, "NA")
    

    🎓 Learn More Excel 365 Power Functions

    Ready to master advanced Excel functions like EXPAND, REDUCE, SCAN, LAMBDA, and more?

    👉 Join My Excel Mastery Course
    ✅ Covers automation, dynamic reports, dashboards, and real-life use cases.


    Top rated products

  • Mastering the MAP Function in Excel 365 – Explained with Examples


    🧠 What is the MAP Function in Excel 365?

    The MAP function is a Lambda helper function in Excel 365 that lets you apply a custom formula (Lambda) to each element of one or more arrays.

    It’s similar to the “map” concept in programming — you pass in arrays, and MAP processes each corresponding item across those arrays using your custom logic.


    🔧 Syntax of MAP

    =MAP(array1, [array2], ..., lambda(value1, [value2], ..., calculation))
    
    ParameterDescription
    array1The first array to apply the function to
    array2…(Optional) Additional arrays
    lambdaA custom function that defines what to do with each item in the array(s)

    ✅ Key Features

    • Processes each item in an array (or matching items from multiple arrays)
    • Great for row-wise transformations, custom logic, or string manipulation
    • Fully dynamic and compatible with spilled ranges
    • Ideal for creating reusable custom logic without VBA

    🔍 Examples of MAP in Action


    🔹 Example 1: Add 10 to Each Number

    If A1:A5 = {5, 10, 15, 20, 25}

    =MAP(A1:A5, LAMBDA(x, x + 10))
    

    ✅ Output: {15, 20, 25, 30, 35}


    🔹 Example 2: Combine Names from Two Columns

    AB
    RaviSharma
    PriyaMehta
    AkashVerma
    =MAP(A2:A4, B2:B4, LAMBDA(f, l, f & " " & l))
    

    ✅ Output:
    Ravi Sharma
    Priya Mehta
    Akash Verma


    🔹 Example 3: Apply IF Logic to Array

    Add 100 if value > 50, else keep it unchanged:

    =MAP(A1:A5, LAMBDA(x, IF(x > 50, x + 100, x)))
    

    🔹 Example 4: Format Text to Title Case (First letter capital)

    Assume names in A2:A4:

    =MAP(A2:A4, LAMBDA(n, UPPER(LEFT(n,1)) & LOWER(MID(n,2,LEN(n)))))
    

    ✅ Transforms “rAVI” into “Ravi”


    📌 Real-World Use Cases

    • Process data row-by-row or column-by-column
    • Apply different logic to multiple inputs
    • Create advanced conditional formatting via formulas
    • Perform string cleanup, name formatting, score adjustments
    • Replace helper columns with dynamic logic

    ❓ Interview-Style Question

    Question:
    You’re given two arrays:
    Array1 = {10, 20, 30, 40}
    Array2 = {1, 2, 3, 4}

    Write a formula using MAP that multiplies each pair of values from Array1 and Array2.

    Answer:

    =MAP({10, 20, 30, 40}, {1, 2, 3, 4}, LAMBDA(a, b, a * b))
    

    ✅ Output: {10, 40, 90, 160}


    🎓 Want to Master Lambda & MAP in Real Scenarios?

    Learn how to use MAP, REDUCE, SCAN, LAMBDA, and other Excel 365 functions with dashboards, custom tools, and real case studies in:

    👉 Mastering MS Excel – A Comprehensive Training Course


    Top rated products