Working with Excel, filling blank areas

In enterprise application development, business personnel often provide Excel data sources, and developers import Excel data into the database, and then process it in the database. In order to express a hierarchy and belonging relationship in Excel, many blank cells are often generated. For example, a CRM data contains sales team, salesperson and customer data, the salesperson belongs to a certain sales team, and the customer belongs to a specific sales, so the business personnel will provide such data:

sales team Seller client
G1 S1 C1
    C2
    C3
    C4
    C5
    C6
    C7
  S2 C8
    C9
    C10
    C11
  S3 C12
    C13
    C14
G2 S11 C15
    C16
    C17
    Q18
    C19
    C20
  S12 C21

If such Excel data is directly imported into the database, the salesperson corresponding to customers such as C2 will be empty, and the corresponding sales team will also be empty. Therefore, it is necessary to process Excel so that each customer has a corresponding salesperson and sales team.

The processing method is as follows:

1. Select the entire table range, and then use the shortcut key Ctrl+G to pop up the positioning window.

2. Click "Location Criteria", select "Empty Value" radio box, and click the OK button, all empty value areas in the table will be selected

image

3. The current cursor position is above B3, we can enter "=B2" in B3

4. Press and hold Ctrl+Enter after the input is completed, and all the selected empty values ​​can be filled in:

image

There is no problem with importing such data.

The essence of this is to make each blank cell equal to the value of the cell above it, thereby filling all blank areas.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326978890&siteId=291194637