Hoppa till huvudinnehåll

Hur sparar man formatering efter uppfriskande pivottabell?

Ibland kan du ta bort kryssmarkeringen för Bevara cellformatering vid uppdatering objekt i pivottabellalternativen av misstag. Och i det här fallet tas formateringen bort efter uppdatering om din pivottabell innehåller cellformatering. Detta är väldigt irriterande att pivottabellen inte kan behålla formateringen. Idag ska jag prata om ett enkelt knep för att hantera denna uppgift.

Bevara formatering efter uppfriskande pivottabell


pil blå höger bubbla Bevara formatering efter uppfriskande pivottabell

Gör så här för att behålla cellformateringen när du uppdaterar din pivottabell:

1. Välj vilken cell som helst i din pivottabell och högerklicka.

2. Sedan Välj PivotTable-alternativ från snabbmenyn, se skärmdump:

doc-keep-formatting-pivottable-1

3. I PivotTable-alternativ dialogrutan, klicka Layout och format fliken och kontrollera sedan Bevara cellformatering vid uppdatering artikel under bildad avsnitt, se skärmdump:

doc-keep-formatting-pivottable-1

4. Och klicka sedan på OK för att stänga denna dialog och när du formaterar din pivottabell och uppdaterar den försvinner inte formateringen längre.


Relaterade artiklar:

Hur låser man kolumnbredden i pivottabellen?

Hur uppdaterar man pivottabellen på filen som är öppen i Excel?

Hur uppdaterar man pivottabellen när data ändras i Excel?

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
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