search
HomeTopicsexcelPractical Excel skills sharing: Use 'Find and Replace' to filter date data

In the previous article "Practical Excel skills sharing: cleverly using functions to create an automatic statistical inventory table", we learned four functions and used them to make an automatic statistical inventory The purchase, sale, inventory and warehouse statistics table. Today we will share some practical operations of "find and replace". It turns out that you can use it to filter date data. Let's take a look!

Practical Excel skills sharing: Use 'Find and Replace' to filter date data

When setting the date to filter, how can you filter by year and month? Let’s answer this question today.

As shown in the figure below, column F is the employee’s entry date, but the date at this time is not in the standard date format. The default standard date format in excel is "-" "/" or the Chinese "year and month" "day" to separate the year, month and day numbers. At this time, I want to filter the table to select employees who joined the company in February 2018.

Practical Excel skills sharing: Use Find and Replace to filter date data

First add a filter button to the table (Start-Data-Filter). In the drop-down menu of entry date, the data is not divided by year and month. At this point we need to convert the date into a standard date format.

Practical Excel skills sharing: Use Find and Replace to filter date data

Press ctrl H to replace the shortcut key. In the pop-up dialog box, enter a period in English format for "Find content" and enter "/" in English format for "Replace with" or"-". After setting, click Replace All.

Practical Excel skills sharing: Use Find and Replace to filter date data

You can now see the replacement results, and all dates have become standard date formats.

Practical Excel skills sharing: Use Find and Replace to filter date data

Click the drop-down button of the entry date, and you can see that the date is divided into years and months. Click the " " and "-" in front of the number to expand and collapse the data.

Practical Excel skills sharing: Use Find and Replace to filter date data

We check 2018 and February in the drop-down menu to see the filtering results.

Practical Excel skills sharing: Use Find and Replace to filter date data

Expand knowledge: Two practical techniques for "find and replace"

1. Batch deletion of invisible characters

When there are a large number of the same characters in our table that need to be deleted, or when we have several worksheets in a workbook that all need to delete the same data, if we have one Deleting it alone is a waste of time. At this time, you need to use the find and replace tool.

As shown in the figure below, sum the F, G, and H columns in Table 1, Table 2, and Table 3. The total salary payable in column H displays 0. When the function operation result is 0, it means that the cell content referenced in the function is not a number. In addition, the number in column H is to the left (if the left-aligned format is removed, it is still to the left), which means it is text type. number.

(Friends who don’t know the shortcut for summation can read the previously published tutorial and click on the link: https://www.php.cn/topic/excel/491692.html)

Practical Excel skills sharing: Use Find and Replace to filter date data

Let’s first check what went wrong with the data.

Select cell H2 and drag the mouse to select the number in the edit bar. You can see that there are invisible characters in front and behind the number (if there are no characters, dragging the mouse will not select it. If it is selected, it means There are non-whitespace invisible characters). This is what often happens when people export data from the system or copy text from the Internet. Even if the format is cleared, the sum still cannot be added.

Practical Excel skills sharing: Use Find and Replace to filter date data

Let’s talk about the solution.

In the edit bar, select the invisible characters and press "ctrl C" to copy.

Practical Excel skills sharing: Use Find and Replace to filter date data

Press the find and replace shortcut key ctrl H to pop up the replacement dialog box. Press "ctrl V" in "Find Content" to copy invisible characters. At this point you can see that the mouse cursor has moved a few spaces to the right.

Practical Excel skills sharing: Use Find and Replace to filter date data

Do not enter any characters after "Replace with" to indicate that the search content will be deleted. Click the "Scope" drop-down menu to select a workbook. At this time, you can find and replace all worksheets in the entire workbook. Click "Replace All".

Practical Excel skills sharing: Use Find and Replace to filter date data

At this time, you can see that the data in column H automatically displays the summation result.

Practical Excel skills sharing: Use Find and Replace to filter date data

Sharp-eyed friends may find that the data is still on the left. This is because left alignment is set in the alignment. We click "Left Alignment" again in the alignment. "Cancel the "left-aligned" format.

Practical Excel skills sharing: Use Find and Replace to filter date data

At this time, if you look at the tables in Table 2 and Table 3, you will find that all invisible characters have been deleted simultaneously, and the correct result of the total is automatically displayed. .

Practical Excel skills sharing: Use Find and Replace to filter date data

#2. Batch replacement cell format

In the table below, due to the good performance of Nobita and Shizuka that month, the boss said They wanted to increase their wages individually, so the finance department made a special cell format for their names. The next month, the table needed to be restored to a unified format. The following case mainly talks about batch replacement of color formats. In addition, various cell formats can be replaced in batches.

Practical Excel skills sharing: Use Find and Replace to filter date data

Press the replacement shortcut key ctrl H. In the pop-up dialog box, click the format drop-down button. At this time, you can see that there are two options available.

Practical Excel skills sharing: Use Find and Replace to filter date data

When we know the format of the cell, click the first option "Format" and select the corresponding color in the pop-up frame.

1Practical Excel skills sharing: Use Find and Replace to filter date data

When we are not very clear about the format of the cell, click the second option "Select format from cell", and the mouse will turn into a straw. Tool that can directly absorb the color of cells. Here I will directly absorb the color of B7 or B11. You can now see a preview of the color.

1Practical Excel skills sharing: Use Find and Replace to filter date data

The following "Replace with" settings are the same as before. Select the second item "Select format from cell" in the format drop-down menu and absorb any blue cell. Just click the grid. At this point you can see the results below.

Practical Excel skills sharing: Use Find and Replace to filter date data

If we have multiple worksheets that need to be replaced, just select the workbook in the "Scope" drop-down menu. After setting up, click "Replace All" and you will see that the table changes to a unified color format.

Practical Excel skills sharing: Use Find and Replace to filter date data

Note: The "Find and Replace" dialog box will remember the last format set, so you need to select "Format" when using Find and Replace again. The "Clear Lookup Formatting" option in the drop-down menu clears the formatting.

Practical Excel skills sharing: Use Find and Replace to filter date data

Related learning recommendations: excel tutorial

The above is the detailed content of Practical Excel skills sharing: Use 'Find and Replace' to filter date data. 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 Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

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

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.