Skill Course By Satish Dhawale

The Ultimate Guide to the Excel DGET Function: 5 Amazing Time-Saving Tricks

Excel DGET Function

The Excel DGET Function might just be the hidden gem you need in your spreadsheet toolkit! If you often find yourself wrestling with complex formulas like VLOOKUP, XLOOKUP, INDEX MATCH, or juggling multiple conditions, you’ll want to pay close attention.

Imagine replacing several complex functions with just one simple function that only needs three pieces of information. Sounds too good to be true? It’s not! Let’s dive into how the DGET function can simplify your work and save you precious time.

What Exactly is the Excel DGET Function?

At its core, the Excel DGET function is a database function. Its main job is to pull out (extract) a single specific value from a database (your data table) that matches the conditions (criteria) you set.

Think of it like asking a very specific question about your data, and DGET finds the single answer.

Understanding the DGET Syntax

The beauty of DGET lies in its simplicity. Here’s the formula structure:

=DGET(database, field, criteria)

Let’s break down these three arguments:

  1. database: This is your entire data range, including the header row. This is crucial! Unlike some lookup functions, DGET requires headers to be included in this selection.
  2. field: This tells DGET which column contains the answer you want. You can specify this in a few ways (which we’ll explore!), like using the column header name in quotes (e.g., “Product”) or the column number (e.g., 3).
  3. criteria: This is a smaller range (at least two cells) that contains your search conditions. It must also include at least one header row that exactly matches a header in your database, plus the cell below it containing the value you’re searching for.

Key Rule: Always include headers when selecting your database and criteria ranges for the DGET function.

Getting Started: Your First Basic DGET Lookup

Let’s start with a simple example. Imagine you have sales data like this:

Now, let’s say you want to find the ‘Name of Salesman’ for ‘Salesman ID’ EMP-118.

  1. Set up your Criteria: In separate cells (say, I1:I2), set up your criteria.
    • In I1, type the exact header: Salesman ID
    • In I2, type the ID you want to find: EMP-118
  2. Write the DGET Formula: In the cell where you want the result (e.g., J2), type:
    =DGET(A1:G21, 2, I1:I2)

    • A1:G21 is our database (including headers).
    • 2 is our field (the ‘Name of Salesman’ column is the 2nd column in the database).
    • I1:I2 is our criteria range (header and the value to find).
  3. Press Enter: Excel will return “Rakesh Joshi”. Simple!

This already shows how the Excel DGET function works, but we can make it even smarter.

Trick 1: Smarter Lookups – Using Column Names Instead of Numbers

Counting columns, especially in large datasets, can be tedious and error-prone. What if column orders change later? DGET offers a better way!

Instead of using the column number (like 2 in the previous example) for the field argument, you can use the exact column header text in double quotes.

Let’s find the ‘Quantity’ for Salesman ID EMP-111.

  1. Update Criteria: Change I2 to EMP-111.
  2. Modify DGET Formula (using text): In a new result cell (e.g., J3), type:
    =DGET(A1:G21, “Quantity”, I1:I2)

    • Notice we replaced 2 with “Quantity”.
  3. Press Enter: Excel finds the quantity associated with EMP-111 (e.g., 200, based on the full dataset).

This is much more readable and less likely to break if you insert columns later!

Trick 2: Supercharge Flexibility – Using Cell References for Fields

Taking it a step further, you don’t even need to type the column name into the formula. You can refer to a cell that contains the header name you want to find! This makes your lookups incredibly flexible.

Let’s find the ‘Product’ for EMP-105.

  1. Set up Dynamic Field: In another cell (say, K1), type the header Product.
  2. Update Criteria: Change I2 to EMP-105.
  3. Modify DGET Formula (using cell reference): In a result cell (e.g., J4), type:
    =DGET(A1:G21, K1, I1:I2)

    • Now, the field argument points to cell K1, which contains “Product”.
  4. Press Enter: Excel returns “Tata Tea”.

The Magic: Now, if you change the header in cell K1 (e.g., type “City” or “Rate”), the formula in J4 will automatically update to show the corresponding value for EMP-105 without you needing to edit the DGET formula itself!

Pro Tip: Combine this with Data Validation dropdown lists for both your criteria value (like Salesman ID) and your field header (like Product, City, Rate). This creates a fully interactive lookup tool with just one simple Excel DGET function!

Trick 3: Effortless Reverse Lookups with the Excel DGET Function

Reverse lookups (looking up a value to the left of your known value) often require complex formulas like INDEX MATCH or VLOOKUP combined with CHOOSE in traditional Excel.

The Excel DGET function handles this effortlessly! Because you define the database and criteria independently, DGET doesn’t care if the result column (field) is to the left or right of the criteria column.

Let’s find the ‘Name of Salesman’ based on the ‘Product’ “Amul Butter”.

  1. Set up New Criteria: In M1:M2:
    • M1: Product
    • M2: Amul Butter (Assuming “Amul Butter” exists in your Product column)
  2. Set up Field Cell: In N1, type Name of Salesman.
  3. Write DGET Formula: In O2, type:
    =DGET(A1:G21, N1, M1:M2)

    • A1:G21 is the database.
    • N1 contains the field we want (“Name of Salesman”).
    • M1:M2 is the criteria (Product = Amul Butter).
  4. Press Enter: DGET finds the salesman’s name associated with Amul Butter (e.g., “Amit Singh” based on the video’s example), even though ‘Name of Salesman’ is to the left of ‘Product’ in the original data. No extra functions needed!

Trick 4: Handling Multiple Criteria Without Helper Columns

Need to find a value based on two or more conditions? VLOOKUP struggles with this, often requiring you to create helper columns that combine data.

The Excel DGET function excels here! You simply expand your criteria range to include multiple conditions.

Let’s find the ‘Product’ where the ‘Rate’ is 1100 AND the ‘Name of Salesman’ is “Deepak Mishra”.

  1. Set up Multi-Criteria Range: In I1:J2:
    • I1: Rate | J1: Name of Salesman
    • I2: 1100 | J2: Deepak Mishra
      (Make sure headers in I1:J1 exactly match those in A1:G1)
  2. Set up Field Cell: In K1, type Product.
  3. Write DGET Formula: In L2, type:
    =DGET(A1:G21, K1, I1:J2)

    • A1:G21 is the database.
    • K1 points to the desired field (“Product”).
    • I1:J2 is now our multi-condition criteria range.
  4. Press Enter: DGET returns the product matching both conditions (e.g., “Colgate Toothpaste” from the video example).

Dragging Formulas: If you want to drag this formula across to find other details (like Salesman ID, City) for the same criteria, you’ll need to lock your references using the $ sign. The formula might look like this before dragging:

=DGET($A$1:$G$21, K1, $I$1:$J$2)

Here, $A$1:$G$21 locks the database, $I$1:$J$2 locks the criteria, but K1 remains relative so it picks up different headers (like Salesman ID, City) as you drag horizontally.

Trick 5: Making DGET Work with Growing Data (Dynamic Ranges)

What happens when you add new data to the bottom of your table? If your database range (like A1:G21) is fixed, DGET won’t see the new rows. Here are two ways to handle this:

Method 1: Use Whole Column References (Use with Caution)

You could change the database reference to whole columns, like A:G.

=DGET(A:G, K1, I1:J2)

  • Pro: Automatically includes all data in those columns, even new rows.
  • Con: Can slow down calculation on very large files, as Excel checks entire columns. Also, ensure no stray data exists below your main table in those columns.

Method 2: Convert Your Data to an Excel Table (Recommended)

This is often the best approach for dynamic data.

  1. Click anywhere inside your data range (A1:G21).
  2. Press Ctrl + T.
  3. Ensure the range is correct and check the box “My table has headers”. Click OK.
  4. Excel automatically formats your data as a Table (you can change the style) and gives it a name (e.g., “Table1”).

Now, when you write your DGET formula, Excel might automatically refer to the Table name. Even if it uses cell references initially, the Table knows its own size. When you add a new row directly below the Table, the Table expands automatically, and your Excel DGET function will include the new data without you needing to change the formula’s range reference! This is incredibly powerful for data that changes frequently.

Handling Potential Errors with IFERROR

Sometimes, your criteria might not find a match, or you might run into other issues. DGET might return an error like #VALUE! or #NUM!. You can provide a more user-friendly message using the IFERROR function.

Wrap your DGET formula inside IFERROR:

=IFERROR(DGET(A1:G21, K1, I1:J2), “No Match Found”)

Now, if DGET results in an error, the cell will display “No Match Found” instead of a confusing Excel error code.

Important Limitations of the Excel DGET Function

While DGET is fantastic, it’s not perfect for every situation. Here are its main limitations:

  1. Requires Unique Criteria Results (#NUM! Error): DGET is designed to extract a single record. If your criteria matches multiple rows in the database, DGET will return a #NUM! error. Your combination of criteria must point to only one unique row in the database for DGET to work correctly.
    • Example: If you used “City” = “London” as your only criteria, and you have multiple sales from London, DGET would return #NUM!. You’d need more specific criteria (like City and Salesman ID) to narrow it down to one row.
    • This is different from VLOOKUP/XLOOKUP, which usually return the first match they find.
  2. Less Flexible for Certain Dragging Scenarios: While dragging horizontally (as shown in Trick 4) works well with locked references, dragging DGET vertically can be problematic if your criteria range structure needs to shift in complex ways relative to the data. Simple vertical drags where the criteria range also moves down straightforwardly are usually fine, but more complex scenarios might require rethinking the approach.

When Should You Use the Excel DGET Function?

DGET shines when:

  • You need to extract a single, specific value based on one or more criteria.
  • Your criteria combination uniquely identifies a single row in your data.
  • You prefer using column names or cell references for the result column instead of numbers.
  • You need to perform reverse lookups easily.
  • You want a simpler alternative to nested IF statements or complex INDEX/MATCH for specific lookups.
  • You want your lookup formulas to work seamlessly with dynamic Excel Tables.

Conclusion: Simplify Your Lookups Today!

The Excel DGET function is a surprisingly powerful and often overlooked tool. Its simple three-argument structure can replace multiple complex functions, handle multi-criteria and reverse lookups with ease, and adapt dynamically using cell references and Excel Tables.

While it has limitations, particularly regarding non-unique results, understanding its strengths allows you to leverage it effectively for specific data extraction tasks. Stop wrestling with complicated formulas for single-record lookups – give the DGET function a try and experience a simpler, faster way to get answers from your data!

Import PDF Transactions into Tally Effortlessly!

Unbelievable! Generate Custom Excel QR Code Generator ( 2025 )

Excel QR Code Generator

Are you tired of paying transaction fees to payment gateways like Razorpay? Do you need a faster way to receive payments from clients? Then you are in the right place! This article will show you how to build your own Excel QR Code Generator and automate payment requests directly within Excel.

This project was created by Prasad Gaonkar, a Senior Manager in Accounts and MIS, who spent 17 days crafting this solution. And the best part? He’s sharing it with you! This project converts hours of work into seconds.

Why an Excel QR Code Generator?

Prasad understood a common frustration: current payment methods are slow and costly. Traditional methods like NEFT and RTGS can take hours, and payment gateways charge fees. In fast-paced industries, instant payments are a must. As Prasad says, “In the share market, rates change every second!”

Here’s the problem this solution solves:

  • High Transaction Fees: Payment gateways deduct a percentage for instant payments.
  • Delayed Payments: Waiting for payments to clear can impact cash flow.
  • Inconvenience: Manually entering bank details is time-consuming and prone to errors.

The Solution: Instant Payments with Custom QR Codes

This Excel QR Code Generator lets you create customized QR codes for each client, pre-filled with the exact payment amount.

Here’s how it works:

  • Generate: Excel generates a unique QR code for each client.
  • Send: Send the QR code to your client via email (directly from Excel!).
  • Receive: The client scans the QR code with their UPI app (Google Pay, PhonePe, etc.).
  • Instant Payment: The payment is instantly credited to your account!

How to Use the Excel QR Code Generator (Step-by-Step)

Here’s a simple guide to get you started:

  1. Download the File: Download the Excel file provided in the video description (link below!).
  2. Unblock the File: Right-click on the downloaded file, go to “Properties,” and click “Unblock.” (This is important because it contains VBA code.)
  3. Open the File: Open the Excel file.
  4. Enter Client Data: Fill in the Excel sheet with your client’s information:
    • Account Code
    • Client Name
    • Payment Amount
    • Email Address
  5. Process: Click the “Process” button. This will generate the QR codes and create individual emails for each client in Outlook.
  6. Review and Send: Review the emails in Outlook and click “Send.”

Customizing Your Excel QR Code Generator

The beauty of this solution is its flexibility. You can customize it to fit your specific needs.

  1. Change your UPI ID: Update the VBA code with your own UPI ID (the receiver’s UPI) so the payment will be received by you.
    • Go to the Developer tab.
    • Click on Visual Basic. (Or press ALT + F11)
    • In the Visual Basic Editor, find the correct module where the UPI ID is stored. (Module 3)
    • Replace the existing UPI ID with your own.
  2. Customize the Email Message: Modify the email body with your own personalized message.
  3. Automate Sending: Adjust the VBA code to automatically send the emails instead of reviewing them in Outlook (use with caution!).

Here’s how to access the VBA code:

  1. Enable the “Developer” tab in Excel (File > Options > Customize Ribbon > Check “Developer”).
  2. Click on the “Developer” tab and then click “Visual Basic.”
  3. Find the module containing the code (usually in “Module 3”).

Important: Be careful when editing the VBA code. If you’re not comfortable with VBA, only change the customizable messages as indicated in the comments.

Turning the Idea into Reality: Prasad’s Inspiration

Prasad was inspired to create this Excel QR Code Generator during a meeting where the team was discussing the high costs of payment gateways. He realized that most people were already using QR codes for payments in their daily lives, so why not leverage that for business?

The goal was to create a system that:

  • Reduced transaction fees
  • Enabled instant payments
  • Integrated with existing systems

By combining his Excel skills with VBA programming, Prasad created a solution that saved his company time and money.

Key Skills for Today’s Professionals

Prasad, with his 15 years of experience in accounts and MIS, emphasizes the importance of continuous learning and automation. He recommends focusing on these key skills:

  • Excel Mastery: Learn advanced Excel functions and formulas.
  • Data Analysis: Develop skills in data analysis and visualization.
  • VBA Programming: Learn VBA to automate tasks and create custom solutions.
  • Power BI: Master Power BI for data analysis and reporting.

He suggests dedicating time each day to self-learning and exploring new technologies. “If you keep doing the same work every day, you won’t grow,” he says. “Automate your tasks to free up time for learning and innovation.”

Need Help? Get a Custom Solution

Prasad also offers project-based services to companies looking to automate their processes. If you have a specific automation project in mind, you can contact him for a consultation. Google the keywords from the title and connect with Prasad Sir.

Conclusion

This Excel QR Code Generator is a powerful tool for small businesses and freelancers looking to streamline their payment process and save money on transaction fees. By following this tutorial and customizing the code to your needs, you can create your own instant payment solution.

Download the file, experiment with the code, and start automating your payments today!

Learn SAP FICO Course

10X Your Productivity: Excel Tutorial for Beginners – The Ultimate Guide

ExcelTutorial

Unlock the Power of Excel: A Beginner’s Journey

Are you eager to conquer the world of data and boost your job prospects? Look no further! This Excel Tutorial is designed specifically for beginners like you, providing a clear and simple pathway to mastering Microsoft Excel. Forget feeling overwhelmed – we’ll break down the essentials and transform you into a confident Excel user.

Why Learn Excel?

Microsoft Excel is more than just a spreadsheet program. It’s a powerful tool used in virtually every industry. From managing finances to organizing data, Excel skills are highly valued by employers. Knowing Excel can open doors to data entry positions, administrative roles, and even more advanced analytical careers. ( Microsoft Excel )

  • Data Calculation
  • Record Maintenance
  • Data analysis

Excel Basics: Getting Started

You can add more than one sheet by pressing + (plus) icon.

Launching Excel:

  • Run Command: Press the Windows key + R, type “excel,” and press Enter.
  • Search Bar: Simply type “Excel” into the Windows search bar and click on the Excel application.

The Excel Interface:

  • Recent Files: On the left, you’ll see a list of your recently opened Excel files.
  • Templates: Excel offers pre-designed templates for budgets, calendars, and more.
  • Blank Workbook: Click “Blank Workbook” to start with a fresh spreadsheet.

Understanding the Excel Layout

Let’s familiarize ourselves with the key elements of the Excel screen.

  • Tabs: At the top, you’ll find tabs like “Home,” “Insert,” “Page Layout,” and “Formulas.” Each tab contains a “Ribbon” filled with useful commands.
  • Ribbon: The ribbon is organized into “Groups” like “Font,” “Alignment,” and “Number,” making it easy to find specific tools.
  • Name Box: This displays the address of the currently selected cell (e.g., A1, B2).
  • Formula Bar: Here, you can enter and edit formulas or view the content of a cell.
  • Cells: The building blocks of Excel. Each cell is identified by its column letter and row number.
  • Columns: The vertical lines labeled with letters (A, B, C, …). Excel has a massive 16,384 columns!
  • Rows: The horizontal lines labeled with numbers (1, 2, 3, …). Excel boasts over 1 million rows!
  • Sheets: Excel files are called “Workbooks,” and each workbook can contain multiple “Sheets.” Think of sheets as individual pages within a notebook.

 

Essential Excel Operations

Let’s learn some fundamental operations within Excel.

Zooming:

  • Shortcut: Hold the Control key and scroll your mouse wheel to zoom in or out.
  • Bottom Right Corner: Use the “+” and “-” buttons in the bottom right corner.

Data Entry:

  • Click on a cell and start typing.
  • Press Enter to move to the cell below.
  • Use the Tab key to move to the cell to the right.

Basic Formulas:

  • All Excel formulas begin with an equals sign (=).
  • Addition: =A1+B1
  • Subtraction: =A1-B1
  • Multiplication: =A1*B1
  • Division: =A1/B1
  • For Example : =50+30

Cell Ranges: A selection of multiple cells (e.g., A1:C10).

Entering Data Efficiently

Type your data and press Enter key.
Excel will automatically take the cursor to the next cell.

Quick and Easy Calculations with Formulas in Excel

  • The plus sign (+) on your keyboard is used to add the numbers.
  • The minus sign (-) on your keyboard is used to subtract the numbers.
  • You can multiply the numbers by pressing (*) asterisk key on the keyboard.
  • The numbers can be divide by using forward slash (/) key on the keyboard.

Sheet Management

Key bord short cut to select all the data:

  • To insert a sheet, click Shift + F11.
  • Renaming a sheet can be done by just right-clicking and select Rename.

Sum Function: Auto Calculation in Excel

Select all three and click AutoSum option to add all three marks automatically.
You can find AutoSum on right-hand corner under Home Tab

Auto sum Short Cut
Alt + = (is equal to)

Maximizing Efficiency: Essential Excel Tips & Tricks

  • Autofill: Type a series (e.g., 1, 2) in two cells, select them, and drag the small square at the bottom right corner (the “fill handle”) to automatically continue the series.
  • Resizing Columns: Double-click the right edge of a column header to automatically adjust the column width to fit the content.

Key bord short cut to select all the data:

  • Press Ctrl + A to select all data.
  • Press Alt + H + O + I (This short cut will automatically resize the selected column)

Auto Fill Series
Type 1 and 2
Drag from the corner of the end cell.

Conditional Formatting

  • Select cells
  • Click the Conditional formatting option under Home tab.

Creating clear rule

  • Select Conditional formatting
  • Clear Rules
  • Clear Rules from Entire Sheet

Filter in Excel

  • Select Data
  • Under Data tab, you will find filter option

Short Cut to remove filter
Press “Alt + A + T”

Sort in Excel

What is Sort?
Sort means arrange numbers easily in ascending or descending order.

Excel Tutorial: Advanced Techniques

While this article covers the basics, Excel offers endless possibilities. Explore features like:

  • Pivot Tables: Summarize and analyze large datasets.
  • Macros: Automate repetitive tasks.
  • VBA (Visual Basic for Applications): Create custom functions and applications within Excel.

Conclusion: Your Excel Journey Begins Now

This Excel tutorial has equipped you with the foundational knowledge to start using Excel with confidence. Practice these skills, explore the program’s features, and embrace the power of data!

 

How To Create A Stunning 3D Progress Circle In Excel?

3d progress circle in excel

Stuck with old and boring ways of presenting data in Excel? Well, not anymore. Creating visually appealing and stunning data presentations in Excel can help you take your data to the next level.  3D progress circles are one of the best and most intuitive ways to track sales targets, project milestones, and to measure any … Read more

8 Most Useful & New Excel Formulas In 2024

8 Most Useful & New Excel Formulas In 2024

Microsoft Excel is a powerful and valuable tool essential to perform various data handling and data analysis tasks. Data organizing and data analysis play an essential role in finding new trends and patterns to help businesses gain key insights and make informed decisions. Let’s explore and find out the 8 most useful & new Excel … Read more

How To Use CoPilot In Excel? A Comprehensive Guide For Beginners

copilot in excel

If you are an Excel enthusiast and sometimes find yourself struggling with Excel’s complex formulas and functions, and want to learn how CoPilot in Excel works, then you are at the right place. Microsoft Excel is one of the world’s largest deployed computer programs used to edit spreadsheets. Microsoft Excel is used to clean, sort, … Read more

Microsoft Excel Vs Google Sheets Which Is Better?

Microsoft Excel Vs Google Sheets

Microsoft Excel vs Google Sheets, which is better? Microsoft Excel and Google Sheets are the two top giants that rule the world of data and spreadsheets. Microsoft Excel and Google Sheets are powerful and highly utilized tools in the field of data and spreadsheets. These tools are used by organizations to organize, process, store, clean, … Read more