search
HomeTopicsexcelExcel case sharing: How to use Excel to create an electronic inventory ledger? (Summary of inbound and outbound ledgers)

Many warehouse managers have to summarize the inventory ledger balances every month. If they don’t know how to design the inventory ledger form, they have to work overtime every day. In fact, using three functions in excel, you can design the warehouse entry and exit in a few seconds. Ledger template solves the problem! Today, this article will share with you an article on how to use Excel to create an electronic inventory ledger. The author's explanation is from simple to deep, which is very helpful for beginners to learn. Come and take a look!

Excel case sharing: How to use Excel to create an electronic inventory ledger? (Summary of inbound and outbound ledgers)

#Today I would like to share with you a case that a student encountered regarding the summary statistics of inventory ledger balances.

Briefly introduce this student’s problems and needs.

This trainee’s job is mainly to statistically manage the inventory accounts of various types of products. Now you need to summarize the balance quantities in the product inventory information tables of a large number of models into a worksheet.

As shown below:

Excel case sharing: How to use Excel to create an electronic inventory ledger? (Summary of inbound and outbound ledgers)

For example, GHE, AA, and 600 are three different models of products. The last line in column E is the latest balance of the product. Condition. (Note: The formats in each product model table are consistent)

Now you need to use the product model as a row in the summary table to count the final balance of each product.

As shown in the figure below:

Excel case sharing: How to use Excel to create an electronic inventory ledger? (Summary of inbound and outbound ledgers)

There are actually two problems when we want to achieve such a demand.

  • 1. Reference the data in each product balance detail worksheet to the summary table.

  • 2. How to return the final balance in the product model table.

Let’s take these two questions to solve the needs of this student.

1. Since references are used, we must be able to use the indirect function, whose main function is to return the reference specified by the text string.

Example:

Excel case sharing: How to use Excel to create an electronic inventory ledger? (Summary of inbound and outbound ledgers)

#A column is the name of the worksheet, by combining the text characters in cell A2 with !B2 merge builds a reference. I believe you must be familiar with cross-table matching in your daily work. The target cell references are composed of worksheet name, exclamation mark, and cell name , such as: GHE!B2.

Here we can directly return the contents of cell B2 in the GHE worksheet through the INDIRECT(A2&"!B2") function formula.

Let’s see if the content of cell B2 in the GHE worksheet is GHE.

Excel case sharing: How to use Excel to create an electronic inventory ledger? (Summary of inbound and outbound ledgers)

We see that the content of cell B2 in the GHE worksheet is indeed GHE.

2. The second question is how to return the final balance.

Excel case sharing: How to use Excel to create an electronic inventory ledger? (Summary of inbound and outbound ledgers)

Taking the GHE worksheet as an example, our ultimate goal is to return the contents of cell E7 in the table, and it needs to follow the number of rows Change with change.

Seeing this, I believe many people will think of using the offset function to complete it

The function of the Offset function is to use the specified reference as the reference system and obtain a new reference through the given offset. The reference returned can be a cell or a range of cells. And you can specify the number of rows or columns to return. Reference serves as the reference region of the offset reference system. Reference must be a reference to a cell or a connected range of cells; otherwise, the OFFSET function returns the #VALUE! error value.

As shown below:

Excel case sharing: How to use Excel to create an electronic inventory ledger? (Summary of inbound and outbound ledgers)

Function formula: =OFFSET(B2,5,3,1,1)

Meaning: Using B2 where the GHE worksheet is located as the reference cell, offset 3 columns to the right and 5 rows down to return the final balance of cell E7. 5 in the function formula means the fifth row, 3 means the third column, and the last two parameters are 1, which means only the content of one cell is returned.

Next we only need to nest the function formula with the indirect function formula in the first step:

=OFFSET(INDIRECT(A2&"!B2"), 5,3,1,1)

Excel case sharing: How to use Excel to create an electronic inventory ledger? (Summary of inbound and outbound ledgers)

The static data return is done, so how can it change at any time as the number of rows changes?

Because the date in column A in the table corresponds to the balance in column E, here we cleverly replace the number of rows with the count function, and use the count function to count the number of numerical cells in column A as the second parameter of OFFSET parameters. In this way, we can count the corresponding final balance data at any time as the number of rows changes.

The function formula is: COUNT(INDIRECT(A2&"!A:A")) 1, the reason for adding 1 is because there are only 4 cells in column A of the GHE worksheet that are numerical values , and in the previous case we needed to shift downward by 5 lines, so we need to add 1 to this.

Final function formula:

=OFFSET(INDIRECT(A2&"!B2"),COUNT(INDIRECT(A2&"!A:A")) 1,3,1, 1)

Excel case sharing: How to use Excel to create an electronic inventory ledger? (Summary of inbound and outbound ledgers)

Let’s briefly summarize and sort out:

The main difficulty in this case is how to reference the last row of values ​​in the specified column, here We used the offset and indirect functions to complete the reference of the specified data, and at the same time completed the dynamic update and search of the specified cells through the count function. Finally, it is possible to quickly count product names and return the final balance of the corresponding inventory ledger.

Related learning recommendations: excel tutorial

The above is the detailed content of Excel case sharing: How to use Excel to create an electronic inventory ledger? (Summary of inbound and outbound ledgers). For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:部落窝教育. If there is any infringement, please contact admin@php.cn delete
MEDIAN formula in Excel - practical examplesMEDIAN formula in Excel - practical examplesApr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Google Spreadsheet COUNTIF function with formula examplesGoogle Spreadsheet COUNTIF function with formula examplesApr 11, 2025 pm 12:03 PM

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

Excel shared workbook: How to share Excel file for multiple usersExcel shared workbook: How to share Excel file for multiple usersApr 11, 2025 am 11:58 AM

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

How to convert Excel to JPG - save .xls or .xlsx as image fileHow to convert Excel to JPG - save .xls or .xlsx as image fileApr 11, 2025 am 11:31 AM

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

Excel names and named ranges: how to define and use in formulasExcel names and named ranges: how to define and use in formulasApr 11, 2025 am 11:13 AM

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

Standard deviation Excel: functions and formula examplesStandard deviation Excel: functions and formula examplesApr 11, 2025 am 11:01 AM

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

Square root in Excel: SQRT function and other waysSquare root in Excel: SQRT function and other waysApr 11, 2025 am 10:34 AM

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Google Sheets basics: Learn how to work with Google SpreadsheetsGoogle Sheets basics: Learn how to work with Google SpreadsheetsApr 11, 2025 am 10:23 AM

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment