


Practical Excel skills sharing: cleverly use functions to create an automatic statistical purchase, sales and inventory table
In the previous article "Practical Excel Skill Sharing: Several Practical Operations of the "Column Sorting Tool"", we learned the practical operations of several sorting tools. Today we are going to learn four functions. Using them skillfully, we can create a "Purchase, Sales, Inventory and Inbound and Outbound Statistics Table" that can automatically count inventory. It is simply 666. Once you learn this operation, you can be freed from tedious work and enjoy poetry and the distance. Come and take a look!
How to make a purchase, sales and inventory table that can automatically count real-time inventory and the quantity in and out of the warehouse? In fact, it does not require very difficult technology. You only need to master four functions and You can make it yourself if you have some basic Excel editing and typesetting skills.
These four functions are: vlookup, iferror, sumif and if. Next, let the veteran take you step by step to create this entry and exit table.
Function description of "Purchase, Sales, Inventory and Inbound and Outbound Statistics Table":
Real-time statistics function: You only need to record the outbound and inbound flow table according to the prescribed format. Automatically perform real-time statistics on the latest inventory and inbound and outbound quantities.
Smart reminder function: When the inventory of an item is lower than the safety stock quantity, it will be automatically marked to achieve a warning effect.
The composition of the "Purchase, Sales, Inventory and Inbound and Outbound Statistics Table":
According to the most basic requirements, it usually takes three Parts: basic data table (also called basic information table), inbound and outbound record table (also called flow detail table), inventory statistics table (also called result query table). The following describes the methods of these three parts respectively.
1. Basic data table
Design according to the actual needs of the company, grasp a basic principle, the table must be able to reflect all the items attributes, and each attribute is stored in a separate column. The table does not need to be beautiful, and merged cells must not appear.
For example, the following figure is a relatively standardized basic data table:
Note: The serial number is not necessary, just for easy search; statistics are usually Use the product code as the only basis. If by chance your company's products do not have codes, the serial number can be used as the code.
In order to ensure the accuracy of statistical data, when there are new products, records need to be added to the table. If there are obsolete products, there is no need to delete the original records.
2. Inbound and outbound record table
Usually outbound and inbound are divided into two sheets for storage, or they can be combined together Storage, for convenience, we put them together for examples.
The data columns in the table need to contain basic product information as well as the date and quantity of entry and exit. The format is roughly:
In the flow table above , only the blue columns A, E, F, and G need to be recorded in time. Basic information such as classification, name and unit columns are automatically generated through formulas. You must have guessed it, it’s time for vlookup to come on stage!
Yes, this is when vlookup comes into play. From the picture below, you can see that the three columns after the encoding are all obtained using the vlookup function. The formula in cell B2 is: =VLOOKUP($A2, basic data table!$B:$E,COLUMN(B1),0)
Formula interpretation: vlookup requires a total of four parameters. The basic format is
=vlookup (search value, search area, number of columns, exact search)
The first parameter
$A2
represents the content you want to find. Note that because the formula needs to be pulled down to the right,$
is added in front of A to lock the column and prevent it from being pulled down to the right. An error occurred;The second parameter
Basic data table!$B:$E
represents the area to be searched (the basic data table introduced earlier in the article), please note This area starts with the encoding column. Because the encoding is in column B of the basic data table, the area also starts from column B instead of column A. This must be remembered because many novices use vlookup here. A mistake was made;-
The third parameter indicates which column of the search area the returned content is. Because the formula needs to be pulled to the right, we use
column(B1)
As the number of columns returned.The function of column is to get the column number of the parameter. We want to return column C in the
basic data table $B:$E
, which is column 2. The column number of cell B1 in the entire parameter basic data table is 2, so here we usecolumn(B1 )
indicates the number of columns to be returned. When the formula is pulled to the right, B1 will become C1, and the column number will change from 2 to 3, achieving the purpose of pulling to the right of a formula to complete multiple column references. The last parameter 0 indicates exact search.
The last three columns of the table, the date and the quantity in and out of the warehouse, can be recorded according to the actual situation. Under normal circumstances, this flow chart is completed, but in order to use it more intelligently, the vlookup part can also be optimized.
When we enter the product code, we may enter it incorrectly (or enter a new code that is not in the basic data table), and we will get some garbled codes:
The effect does not look very beautiful, so you need to use another function iferror to cooperate with vlookup to solve this problem. The formula is modified to: =IFERROR(VLOOKUP($A2, basic data table!$ B:$E,COLUMN(B1),0),"Please check if the encoding is wrong!")
This may be the first time for some friends to see iferror Let’s briefly introduce this function:
=iferror(formula, content displayed when the formula result is wrong)
, the formula only requires two parameters, the first parameter is a formula, the second parameter The first parameter is what needs to be displayed when the formula result is wrong. In this example, the first parameter is vlookup. When the result of vlookup is correct, iferror has no effect. But when the result of vlookup is wrong, the required content will be displayed. In this example, a string of text is displayed: Encoding has Please check by mistake! Note: If the content to be displayed is text, it must be enclosed in quotation marks.
3. Inventory statistics table
The function of this inventory statistics table is to display the inventory status of all products in real time. It is roughly as follows Information: cumulative outbound quantity, cumulative inbound quantity, current inventory quantity; if a shortage prompt is required, a safety stock quantity and whether it is out of stock are also required.
This statistical table does not need to be created separately. You only need to add the contents just listed after the basic data table. The format is as shown below:
You can see that six columns have been added to the back of the basic data table. Only the initial inventory and safety stock quantity need to be entered. The cumulative outbound quantity, cumulative inbound quantity and whether it is out of stock are all required. This is achieved through formulas. Here is a brief explanation of these fields:
Initial inventory: It can also be called inventory carryover. The original inventory is recorded when this entry and exit statistics table is enabled.
Cumulative outbound quantity (column G): Use the formula =SUMIF(Inbound and outbound record table!A:A,B2,Inbound and outbound record table!F:F)
Statistical results:
Formula analysis: sumif function requires three parameters, the basic structure is =SUMIF (condition area, condition, summation area)
The first parameter
Inbound and outbound record table!A:A
represents the condition column;The second parameter
B2
Indicates the conditions that the previous condition column should meet (corresponding to the item code of the line);The third parameter
Inbound and outbound record table!F:F
indicates that the conditions are met of are summed in this column.
In the same way, replace the third parameter Inbound and outbound record table!$F:$F
with Inbound and outbound record table!$G:$G
Get the cumulative warehousing quantity (column H):
Current inventory quantity: Use the initial inventory - the cumulative outgoing quantity to accumulate the warehousing quantity;
Safety stock quantity: In this example, it is set to 50, which can be determined according to the situation of each product. This item needs to be entered manually.
Whether it is out of stock: The IF function is used here, the formula is: =IF(I2>J2,"","Out of stock")
The basic format of the If function is if (condition, the result required when it is established, the result required when it is not established)
;
The condition in this example is I2> J2
, that is, it is judged that when the current inventory quantity is greater than the safety stock quantity, a blank is obtained. Otherwise, the word "out of stock" is obtained.
At the same time, conditional formatting is set for this column. When there is a shortage, use color to get an eye-catching effect.
The setting method is to select column k and click [Conditional Formatting] → [Highlight Cell Rules] → [Equals]:
on the left Enter the word "out of stock" in the box, select the desired effect on the right, and confirm.
At this point, an automatic statistical entry and exit table can be easily implemented! With this tool, you no longer have to worry about miscalculating the warehouse inventory of thousands of items. Once you find that there is a shortage, you can tell the procurement to buy it, and the efficiency has also improved!
Finally, let me explain that the design ideas for similar inbound and outbound statistics tables are roughly the same. Some optimizations can be made based on the actual application. If there is unit price and other information, it can be done in the basic data table. Add it, and then use quantity * unit price to get the amount.
It is a good idea to use data validity to standardize data entry. For example, if the encoding is required to be unique, you can set validity to prevent repeated entry (if you don't know how to do this, you can leave a message).
Set formula protection to prevent misoperations from destroying formulas and affecting the accuracy of data, etc...
Related learning recommendations: excel tutorial
The above is the detailed content of Practical Excel skills sharing: cleverly use functions to create an automatic statistical purchase, sales and inventory table. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











If when opening a file that needs to be printed, we will find that the table frame line has disappeared for some reason in the print preview. When encountering such a situation, we must deal with it in time. If this also appears in your print file If you have questions like this, then join the editor to learn the following course: What should I do if the frame line disappears when printing a table in Excel? 1. Open a file that needs to be printed, as shown in the figure below. 2. Select all required content areas, as shown in the figure below. 3. Right-click the mouse and select the "Format Cells" option, as shown in the figure below. 4. Click the “Border” option at the top of the window, as shown in the figure below. 5. Select the thin solid line pattern in the line style on the left, as shown in the figure below. 6. Select "Outer Border"

Excel is often used to process data in daily office work, and it is often necessary to use the "filter" function. When we choose to perform "filtering" in Excel, we can only filter up to two conditions for the same column. So, do you know how to filter more than 3 keywords at the same time in Excel? Next, let me demonstrate it to you. The first method is to gradually add the conditions to the filter. If you want to filter out three qualifying details at the same time, you first need to filter out one of them step by step. At the beginning, you can first filter out employees with the surname "Wang" based on the conditions. Then click [OK], and then check [Add current selection to filter] in the filter results. The steps are as follows. Similarly, perform filtering separately again

In our daily work and study, we copy Excel files from others, open them to add content or re-edit them, and then save them. Sometimes a compatibility check dialog box will appear, which is very troublesome. I don’t know Excel software. , can it be changed to normal mode? So below, the editor will bring you detailed steps to solve this problem, let us learn together. Finally, be sure to remember to save it. 1. Open a worksheet and display an additional compatibility mode in the name of the worksheet, as shown in the figure. 2. In this worksheet, after modifying the content and saving it, the dialog box of the compatibility checker always pops up. It is very troublesome to see this page, as shown in the figure. 3. Click the Office button, click Save As, and then

When processing data, sometimes we encounter data that contains various symbols such as multiples, temperatures, etc. Do you know how to set superscripts in Excel? When we use Excel to process data, if we do not set superscripts, it will make it more troublesome to enter a lot of our data. Today, the editor will bring you the specific setting method of excel superscript. 1. First, let us open the Microsoft Office Excel document on the desktop and select the text that needs to be modified into superscript, as shown in the figure. 2. Then, right-click and select the "Format Cells" option in the menu that appears after clicking, as shown in the figure. 3. Next, in the “Format Cells” dialog box that pops up automatically

Most users use Excel to process table data. In fact, Excel also has a VBA program. Apart from experts, not many users have used this function. The iif function is often used when writing in VBA. It is actually the same as if The functions of the functions are similar. Let me introduce to you the usage of the iif function. There are iif functions in SQL statements and VBA code in Excel. The iif function is similar to the IF function in the excel worksheet. It performs true and false value judgment and returns different results based on the logically calculated true and false values. IF function usage is (condition, yes, no). IF statement and IIF function in VBA. The former IF statement is a control statement that can execute different statements according to conditions. The latter

eWe often use Excel to make some data tables and the like. Sometimes when entering parameter values, we need to superscript or subscript a certain number. For example, mathematical formulas are often used. So how do you type the subscript in Excel? ?Let’s take a look at the detailed steps: 1. Superscript method: 1. First, enter a3 (3 is superscript) in Excel. 2. Select the number "3", right-click and select "Format Cells". 3. Click "Superscript" and then "OK". 4. Look, the effect is like this. 2. Subscript method: 1. Similar to the superscript setting method, enter "ln310" (3 is the subscript) in the cell, select the number "3", right-click and select "Format Cells". 2. Check "Subscript" and click "OK"

In the study of software, we are accustomed to using excel, not only because it is convenient, but also because it can meet a variety of formats needed in actual work, and excel is very flexible to use, and there is a mode that is convenient for reading. Today I brought For everyone: where to set the excel reading mode. 1. Turn on the computer, then open the Excel application and find the target data. 2. There are two ways to set the reading mode in Excel. The first one: In Excel, there are a large number of convenient processing methods distributed in the Excel layout. In the lower right corner of Excel, there is a shortcut to set the reading mode. Find the pattern of the cross mark and click it to enter the reading mode. There is a small three-dimensional mark on the right side of the cross mark.

1. Open the PPT and turn the page to the page where you need to insert the excel icon. Click the Insert tab. 2. Click [Object]. 3. The following dialog box will pop up. 4. Click [Create from file] and click [Browse]. 5. Select the excel table to be inserted. 6. Click OK and the following page will pop up. 7. Check [Show as icon]. 8. Click OK.
