Excel Pivot Table Remnants - VBA Solution? - excel

When a pivot table is updated and the number of rows/columns is reduced (the table is contracted), how can I keep the formatting of the previously occupied cells the same as the pivot table background color. Now when the table is contracted the empty cells are blank.
i.e. When the table contracts, I want the cells that used to have data in them to be filled with a certain color.
I'm sure I could use a VBA solution for this with the "Range.Area" method but I would prefer to not use VBA.
Thanks,

Use Conditional Format.
1st select the area to set background
2nd, SetUp the Conditional Format, new rule.
then "Format Only Cells that Contains" (sorry my excel is in spanish lol),
And Select "Blanks"
Set the format you want:
and Aceept!
now you have a nice format:
and if you change options in the pivotTable the format keep looking good. and no VBA is used
hope help you, bye!

Related

Excel - Conditionally format one table based on another table

I have a database, where in one column I have the information about if the data was revised or not.
I then have a table that I have built using index/match, to have the data presented as desired.
However, I have tried unsuccessfully to conditionally format the data on the table, so that in case the column "Was revised?" is "Yes", it would show the value in red, as shown below.
Have you ever done anything similar? Did you use a formula in conditional formatting on VBA?
Thank you!
I will suggest converting your data into Excel Tables first. The easiest thing would be using Conditional Formatting in Excel.
However, if you convert your data into Tables, you can write a Macro to highlighted the cells red when the update column says "Yes"

Conditional formatting - keep original conditional formatting but mask number as text

I have a set of rates I have applied conditional formatting to in excel 2016, see screenshot below:
On top of this, I also have a conditional format that formats blank cells as gray.
While these are rates, additionally I would like to mask rates in cases where their denominator is below 10 and replace the displayed value with "I" to indicate insufficient data, but still keep the original conditional formatted color displayed. Is there an efficient way to do this in excel 2016?
There is a simple workaround I discovered with the help of my coworkers.
Take the table with conditional formatting in Excel
Copy it all
Open up a blank Microsoft Word document
Paste the Excel table into Microsoft Word
Select the whole table in Word and copy it
Paste the table from Word back into Excel
The formatting might look a little clunky at first, but my conditional formatting was then locked in as the format and no longer conditional. This worked for my purposes; I was then able to apply additional conditional formatting on top of this table without issue.

First Row in Data Table Does not "Format as Table"

I have some data tables in Excel 2013 that aren't formatting the first row of data properly. While I do have some conditional formatting, the one that formats cells white/blank is for blank values and by nature can't be the cause of what I am showing.
Here are some samples of table formatting not working, and my conditional rule for blank values which doesn't even include the columns in question
I am at a loss, I have no idea why the first data row of these columns won't format.
I am tired, and was overlooking the simple stuff. Even though I had the tables conditionally formatted AND formatted as a table, I also had a "Cell Style" set for those handful of cells, that seemed to override all my formatting.

Excel: How to do conditional formatting based on two cell values?

This particular question is regarding highlighting dates on a pre-made calendar.
Please see screenshot below:
I need to highlight the cell in the calendar that matches both the task and the date in the data table. For example- see L3 and P4. In the screenshot they are highlighted manually for demonstration.
Can someone please help me out with this. I've been using AND, but screwing up somewhere with the $.
If you aren't entering any data and using this as a visual tool you can spoof the spreadsheet by placing a period into the cell that matches the values you need, and then conditional format based on specific text and enter the period as the text.
This image demonstrates it as two separate tables; One with only the formula used to look for the values, and the second one formatting the background and font to be the same color (effectively hiding the period)
It its definitely a workaround and will only work if this is a visual tool.
Assuming your Data Table goes down to row 7, try entering this Conditional Formatting formula with cell B3 selected:
=COUNTIFS($AI$4:$AI$7,$B3,$AJ$4:$AJ$7,C$2)>0

Excel: Copy formatted data fast

This is a excel question:
I have a excel sheet which is heavily formatted, that is, the column widths have been changed and the cells have color formatting. I have filtered this sheet on certain fields. Now, I want to copy this filtered data to another excel sheet with all the formatting.
So for the only way possible seems like to copy the formatting first using paint formatter one by one for each column but that is very tedious. Is there a simple way to do this?
Copy what you want, then paste special three times into your target range: values, columns widths, formats.
Edit: Changed order, putting widths before formats. Otherwise wrapped cells will incorrectly change row height.
To copy the cell values and the formatting use the Camera Tool. This is available on the Command Tab of the customise menu. This Camera Tool copies the cells as a graphic and is dynamic.

Resources