Hoppa till huvudinnehåll

Hur döljer man bara en del av cellvärdet i Excel?

doc göm delvis 1
Om du antar att du har ett ark med allmän information om personalen, men en del är privata som personnummer. Nu vill du dölja en del av dessa personnummer som visas nedan på skärmdumpen, hur kan du snabbt lösa det?

Dölj personnummer med Format Cells

Dölj text eller nummer delvis med formler

pil blå höger bubbla Dölj personnummer med Format Cells

För att dölja en del av personnummer i Excel kan du använda Formatceller för att lösa det.

1. Markera numren som du vill dölja delvis och högerklicka för att välja Formatera celler från snabbmenyn. Se skärmdump:
doc göm delvis 2

2. Sedan i Formatera celler dialog, klicka Antal fliken och välj Custom från Kategori och gå till det här 000 ,, "- ** - ****" i Typ rutan i höger avsnitt. Se skärmdump:
doc göm delvis 3

3. klick OK, nu har delnummer du valt döljts.

AnmärkningarRound det kommer att runda upp siffran om det fjärde numret är större än eller eaqul till 5.


pil blå höger bubbla Dölj text eller nummer delvis med formler

Med ovanstående metod kan du bara dölja delnummer, om du vill dölja delnummer eller texter kan du göra som nedan:

Här döljer vi de första fyra numren i passnumret.

Välj en tom cell bredvid passnumret, till exempel F22, ange denna formel = "****" & HÖGER (E22,5)och dra sedan autofyllhandtaget över cellen du behöver för att tillämpa denna formel.
doc göm delvis 4

Dricks:

Om du vill dölja de fyra senaste siffrorna, använd den här formeln, = VÄNSTER (H2,5) & "****"

Om du vill dölja de tre mellersta siffrorna, använd det här = VÄNSTER (H2,3) & "***" & HÖGER (H2,3)

Bästa kontorsproduktivitetsverktyg

🤖 Kutools AI Aide: Revolutionera dataanalys baserat på: Intelligent utförande   |  Generera kod  |  Skapa anpassade formler  |  Analysera data och generera diagram  |  Anropa Kutools funktioner.
Populära funktioner: Hitta, markera eller identifiera dubbletter   |  Ta bort tomma rader   |  Kombinera kolumner eller celler utan att förlora data   |   Rund utan formel ...
Superuppslag: Flera kriterier VLookup    VLookup med flera värden  |   VSök över flera ark   |   Fuzzy Lookup ....
Avancerad rullgardinslista: Skapa snabbt en rullgardinslista   |  Beroende rullgardinslista   |  Flervals-rullgardinslista ....
Kolumnhanterare: Lägg till ett specifikt antal kolumner  |  Flytta kolumner  |  Växla synlighetsstatus för dolda kolumner  |  Jämför intervall och kolumner ...
Utvalda funktioner: Rutnätsfokus   |  Designvy   |   Stor formelbar    Arbetsbok & Bladhanterare   |  Resursbibliotek (Automatisk text)   |  Datumväljare   |  Kombinera arbetsblad   |  Kryptera/Dekryptera celler    Skicka e-postmeddelanden efter lista   |  Superfilter   |   Specialfilter (filtrera fet/kursiv/genomstruken...) ...
Topp 15 verktygssatser12 text verktyg (lägga till text, Ta bort tecken, ...)   |   50+ Diagram Typer (Gantt Chart, ...)   |   40+ Praktiskt Formler (Beräkna ålder baserat på födelsedag, ...)   |   19 Införande verktyg (Infoga QR-kod, Infoga bild från sökväg, ...)   |   12 Konvertering verktyg (Siffror till ord, Valutaväxling, ...)   |   7 Slå ihop och dela verktyg (Avancerade kombinera rader, Dela celler, ...)   |   ... och mer

Uppgradera dina Excel-färdigheter med Kutools för Excel och upplev effektivitet som aldrig förr. Kutools för Excel erbjuder över 300 avancerade funktioner för att öka produktiviteten och spara tid.  Klicka här för att få den funktion du behöver mest...

Beskrivning


Fliken Office ger ett flikgränssnitt till Office och gör ditt arbete mycket enklare

  • Aktivera flikredigering och läsning i Word, Excel, PowerPoint, Publisher, Access, Visio och Project.
  • Öppna och skapa flera dokument i nya flikar i samma fönster, snarare än i nya fönster.
  • Ökar din produktivitet med 50 % och minskar hundratals musklick för dig varje dag!
Comments (21)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I have 1. Name, so I want to remove "1." Please suggest.
This comment was minimized by the moderator on the site
Is there any command for format cell, to hide the intended value in cell, that containt with charecters. eg. G1234567Q and after applied the format it would be G****567Q ?Note: I am asking to know the cell format not the formula? Thanks in advance!
This comment was minimized by the moderator on the site
If I have a listing of Name with different length, and want to set as "B*** P***" for "Brad Pitt", "M******* Y*** C*** K****" for "Michelle Yeoh Choo Kheng", how can I do it with formula?
p     JL
This comment was minimized by the moderator on the site
have you found a solution? i would also like to know the answer to this. thank you
This comment was minimized by the moderator on the site
Can replace all but the first char with this: =REPLACE(CELL,2,LEN(CELL),REPT("*",LEN(CELL)))
This comment was minimized by the moderator on the site
If I have a number and alphabet set like S1234567A and want to put as S****567A, what formula is usable?
This comment was minimized by the moderator on the site
=REPLACE(CELL,2,4,"****")
This comment was minimized by the moderator on the site
=REPLACE(CELL,1,LEN(CELL)-4,REPT("X",LEN(CELL)-4))is the better version as here you can mask text with variable length
This comment was minimized by the moderator on the site
Hi I tried this but does not seem to work.
This comment was minimized by the moderator on the site
Great solution!
This comment was minimized by the moderator on the site
How can we use format cell to remove the first few characters? For ex: 12,345.67 = **,345.67
This comment was minimized by the moderator on the site
how can i unhide the numbers again
This comment was minimized by the moderator on the site
Hi, sunil, if you use the Format Cells function to hide part of string, when you want to unhide them again, just format the cells as general.
This comment was minimized by the moderator on the site
Nice Sir, Its working
This comment was minimized by the moderator on the site
Sorry, I meant D22
This comment was minimized by the moderator on the site
I am not sure how you wrote the formula Dean, but =LEFT(F22,3)&"-**-****" shows 278-**-**** for me... Maybe check other formats on your destination cell?
This comment was minimized by the moderator on the site
Sorry I did not get your question, could you give me a screenshot or other more information to decribe it?
This comment was minimized by the moderator on the site
Your SSN example fails, in that it rounds up the number, rather than hiding the non-visible placings. In you example, 278-53-6128 is displayed as 279-**-****!
This comment was minimized by the moderator on the site
Sorry, could you give me more information about the fails in your examples? Because it works always in my examples.
This comment was minimized by the moderator on the site
Dean is correct, the image you are using for the example shows staff no 2083 having the social security number of 278536128 but the hidden version starts with 279. The formula itself works, just the first row in the example image is incorrect.
This comment was minimized by the moderator on the site
Thanks for the reminder. The format cell method will round up the number if the fourth number is larger than 5.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations