


The specific method of using Excel's replace function to sensitize people's names
In daily operations, we often need to process Excel data containing personal information, in which name information needs to be sensitized. PHP editor Xigua today will introduce a simple method using the Excel replace function to help you easily replace name information with anonymous characters.
1. Organize the original excel list information, such as name information or bank card number information.
2. Our requirement is to process the name column in excel so that only the first character of the name is retained, and all subsequent names are replaced with *, so in C2 Enter =REPLACE(B19,2,2,"**") in the cell, and the replacement result displays Li**. Double-click the lower right corner of C2 and all values in column B will be replaced.
#3. If you don’t want to display ** when the name has two characters, you can simply optimize the function and simply distinguish between three characters and two characters. . =IF(LEN(B2)=3,REPLACE(B2,2,2,"**"),REPLACE(B2,2,1,"*")).
4. At this point, my needs are perfectly solved through the replace function. In addition, the usage of the replace function is as follows:
REPLACE(parameter 1, parameter 2, parameter 3 ,Parameter 4)
Parameter 1 is the text whose characters are to be replaced.
Parameter 2 is the starting position of the characters in parameter 1 to be replaced with parameter 4.
Parameter 3 is the character that REPLACE wants REPLACE to use parameter 4 to replace the characters in parameter 1 starting from parameter 2 number.
Parameter 4 is the text to be used to replace the characters in parameter 1.
For example: =REPLACE(A3,3,2,"zifu") Use zifu to replace the 2 characters starting from the 3rd digit of A3.
The above is the detailed content of The specific method of using Excel's replace function to sensitize people's names. For more information, please follow other related articles on the PHP Chinese website!

This article explores various methods for combining text strings, numbers, and dates in Excel using the CONCATENATE function and the "&" operator. We'll cover formulas for joining individual cells, columns, and ranges, offering solutio

This tutorial explores various methods for efficiently merging cells in Excel, focusing on techniques to retain data when combining cells in Excel 365, 2021, 2019, 2016, 2013, 2010, and earlier versions. Often, Excel users need to consolidate two or

This tutorial explores various methods for comparing two or more columns in Excel to identify matches and differences. We'll cover row-by-row comparisons, comparing multiple columns for row matches, finding matches and differences across lists, high

This tutorial explores Excel's rounding functions: ROUND, ROUNDUP, ROUNDDOWN, FLOOR, CEILING, MROUND, and others. It demonstrates how to round decimal numbers to integers or a specific number of decimal places, extract fractional parts, round to the

This tutorial explores various methods for combining Excel sheets, catering to different needs: consolidating data, merging sheets via data copying, or merging spreadsheets based on key columns. Many Excel users face the challenge of merging multipl

This tutorial shows you how to quickly calculate simple moving averages in Excel, using functions to determine moving averages over the last N days, weeks, months, or years, and how to add a moving average trendline to your charts. Previous articles

This tutorial demonstrates various methods for calculating averages in Excel, including formula-based and formula-free approaches, with options for rounding results. Microsoft Excel offers several functions for averaging numerical data, and this gui

This tutorial shows you two simple ways to calculate weighted averages in Excel: using the SUM or SUMPRODUCT function. Previous articles covered basic Excel averaging functions. But what if some values are more important than others, impacting the f


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

SublimeText3 Chinese version
Chinese version, very easy to use

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
