Gå til hovedindhold

Hvordan bevares formatering efter opfriskende pivottabel?

Nogle gange kan du fjerne markeringen af Bevar celleformatering ved opdatering element i pivottabellen ved et uheld. Og i dette tilfælde fjernes formateringen efter opdatering, hvis din pivottabel indeholder celleformatering. Dette er meget irriterende, at pivottabellen ikke kan beholde formateringen. I dag vil jeg tale om et let trick til at håndtere denne opgave.

Bevar formatering efter opfriskende pivottabel


pil blå højre boble Bevar formatering efter opfriskende pivottabel

For at beholde celleformateringen, når du opdaterer din pivottabel, skal du gøre følgende:

1. Vælg en hvilken som helst celle i din drejetabel, og højreklik.

2. Vælg derefter PivotTable Options fra kontekstmenuen, se skærmbillede:

doc-keep-formatting-pivottable-1

3. I PivotTable Options dialogboksen, klik Layout og format fanebladet, og tjek derefter Bevar celleformatering ved opdatering element under dannet sektion, se skærmbillede:

doc-keep-formatting-pivottable-1

4. Og klik derefter på OK for at lukke denne dialog, og nu, når du formaterer din pivottabel og opdaterer den, forsvinder formateringen ikke mere.


Relaterede artikler:

Hvordan låses søjlebredden i drejetabellen?

Hvordan opdateres pivottabellen på filen åben i Excel?

Hvordan opdateres pivottabellen, når data ændres i Excel?

Bedste kontorproduktivitetsværktøjer

🤖 Kutools AI Aide: Revolutionér dataanalyse baseret på: Intelligent udførelse   |  Generer kode  |  Opret brugerdefinerede formler  |  Analyser data og generer diagrammer  |  Aktiver Kutools funktioner...
Populære funktioner: Find, fremhæv eller identificer dubletter   |  Slet tomme rækker   |  Kombiner kolonner eller celler uden at miste data   |   Runde uden formel ...
Super opslag: VLookup med flere kriterier    Multiple Value VLookup  |   VOpslag på tværs af flere ark   |   Fuzzy Lookup ....
Avanceret rulleliste: Opret hurtigt rulleliste   |  Afhængig rulleliste   |  Multivælg rulleliste ....
Column Manager: Tilføj et bestemt antal kolonner  |  Flyt kolonner  |  Skift synlighedsstatus for skjulte kolonner  |  Sammenlign områder og kolonner ...
Fremhævede funktioner: Grid fokus   |  Designvisning   |   Stor Formel Bar    Arbejdsbog & Ark Manager   |  Ressourcebibliotek (Autotekst)   |  Datovælger   |  Kombiner regneark   |  Krypter/Dekrypter celler    Send e-mails efter liste   |  Superfilter   |   Specielt filter (filter fed/kursiv/gennemstreget...) ...
Top 15 værktøjssæt12 tekst Værktøjer (tilføje tekst, Fjern tegn, ...)   |   50 + Chart Typer (Gantt kort, ...)   |   40+ Praktisk formler (Beregn alder baseret på fødselsdag, ...)   |   19 Indsættelse Værktøjer (Indsæt QR-kode, Indsæt billede fra sti, ...)   |   12 Konvertering Værktøjer (Tal til ord, Valutaomregning, ...)   |   7 Flet og del Værktøjer (Avancerede kombinere rækker, Opdel celler, ...)   |   ... og mere

Overlad dine Excel-færdigheder med Kutools til Excel, og oplev effektivitet som aldrig før. Kutools til Excel tilbyder over 300 avancerede funktioner for at øge produktiviteten og spare tid.  Klik her for at få den funktion, du har mest brug for...

Beskrivelse


Fanen Office bringer en grænseflade til et kontor med Office, og gør dit arbejde meget lettere

  • Aktiver redigering og læsning af faner i Word, Excel, PowerPoint, Publisher, Access, Visio og Project.
  • Åbn og opret flere dokumenter i nye faner i det samme vindue snarere end i nye vinduer.
  • Øger din produktivitet med 50 % og reducerer hundredvis af museklik for dig hver dag!
Comments (21)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Achei, pelo menos aqui deu certo. Óbvio que a opção "Preservar a formatação da célula ao atualizar" deve estar marcada. A partir daí, deve-se aplicar a formatação com a opção da Aba: Análise de Tabela Dinâmica/Grupo: Ações/Opção:Selecionar/Habilitar Seleção. Aquilo que for selecionado com a função "Habilitar Seleção" manterá o formato. O chato é que às vezes seleciona toda uma coluna e às vezes seleciona só uma cela. Aí tem que fazer cela a cela, mas deu certo aqui.
This comment was minimized by the moderator on the site
Actually, you need to format each field data type, and make sure the whole pivot table settings are set to retain the formatting when refreshed. 
This comment was minimized by the moderator on the site
You can use the VB script:"Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)"
and put all formating information in between. This routine will be carried out after changing Pivottable content
For example:" With Selection
.HorizontalAlignment = xlLeft
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 1
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection.Font
.Name = "Verdana"
.Size = 8
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
End With
End Sub
"You can use the macro recording to find out the formating syntax!
This comment was minimized by the moderator on the site
Check to make sure all the cells in the data are formatted as a date and not a number.
This comment was minimized by the moderator on the site
I fixed mine by on Format Cells Go to Protection and Uncheck Locked!!!!
Presto!!!
This comment was minimized by the moderator on the site
I've had the same frustration as many of you where the formatting does not remain even though you select the "Preserve cell formatting on update" checkbox. I've found 2 things that helped me out.
- highlight more of the table and format that broader region to define the formatting for the cells that aren't maintaining the formatting you desire. Then, after refreshing, go back and change specific cells to tweak the formatting.
- Darlene's idea of conditional formatting is brilliant and works well. The only thing you'll be missing is alignment and text-wrapping.
- After doing all of this, save and close out of your file. After a moment, re-open your file and try again. I've found that, for some reason, closing the file and re-opening will allow the system to imprint these changes.

Hope this helps.
This comment was minimized by the moderator on the site
It works as soon as you untick, do all your formating and tick again.
This comment was minimized by the moderator on the site
It does work for me when I uncheck the "Autofit column widths on update".
This comment was minimized by the moderator on the site
mentira da porra isso.. nunca funcionou corretamente isso
This comment was minimized by the moderator on the site
This does not work when I try to preserve cell text alignment. For example, I want the text to be left aligned in a particular column. Upon refresh, the format resets.
Note for anyone offering to debug (if any kind soul is brave enough) - I often have multiple fields in the column section.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations