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

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.

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"

Add border to cells in a table if another row is added in excel

I have an Excel spreadsheet which spans columns A to T and for ease of reading, the cells have borders. Currently when another row of data is added to the spreadsheet though, I, or other users, have to add borders around the cells, just for cells in columns A to T where is something (usually, but not always, a date) in Column B on that row. The spreadsheet is a log of survey results, and gets very long by the end of the year, but doesn't have a defined number of rows, because it's being added to all the time. It's not much of a problem for me to add borders, but other users not familiar with Excel either manage to add borders to all the cells in columns A to T making the end of the list look untidy with cells with borders but no contents or they just don't bother adding borders and it gets very messy for managers to read (apparently!).
I'm trying to use conditional formatting with a formula to format the cells, but can't seem to get the formula right. I'm basically trying to get Excel to add a border around cells in columns A to T on any row where the cell in column B on that row isn't empty. I've tried various formulas with no luck so far and just end up with borders everywhere but where I want them!
Some of what I've tried so far (I can't remember all the ones that didn't work!):
(row 4 is the first row of data)
=$B2<>"" (applied to =$A:$T) (adds borders above the table, but not below)
NOT(ISBLANK($B4)) (applied to =$A:$T) (doesn't add any additional borders)
=B4<>"" (applied to =$A:$T) (doesn't add any additional borders)
=not(exact(B4, "")) (applied to =$A:$T) (doesn't add any additional borders)
...and of course using Excel's inbuilt "cell doesn't contain a blank value" doesn't allow you to specify that you want to know if another cell isn't blank. It'll add borders around cells after you've input into them, but if a cell in another column is blank for any reason, it leaves 'holes' in the table where there aren't any borders which makes it look even more messy.
Am I just fundamentally misunderstanding the formulas, or can this not be done? (or do I need VBA to do this?)
Your formula needs to refer to the first row of the Applied To area:
=$B1<>""
And apply it to =$A:$T

Excel: Select column starting from cell X in formatting rule

I'm trying to create a rule that formats a row so that it has red background color if the content of another row is "x". Unfortunately, the header and empty cells above the table will be included if I simply select =$H:$H="x" as my condition for formatting. I want something like: =$H$6:$H$(INFINITY). Is this possible?
If you want to apply the conditional formatting starting from Row6, while selecting the range for applying the conditional formatting, make sure C6 should be the first cell in the selection i.e. it should be the active cell in the selection and then make a new rule for conditional formatting using the formula given below.
=$H6="x"
Also if you are not sure how far you need to apply this conditional formatting down the rows, would be better if you format your data as an Excel Table, so when the data grows withing the table down the rows, the conditional formatting will also be carried to the new rows added in the table.
Having a conditional formatting for a unused range on the sheet increases the file size as all the rows contain the conditional formatting and the formula in the background.
You can just use =$H$6:$H$1048576 or =$H$6:$H$65536 while applying conditional formatting. A simplest way of doing this.
Your formula does lag a lot as you are searching through so many rows down. THe best thing you can do is try to limit the amount of rows to search. I.e. if you know your dataset only contains max 5000 rows, set the limit to that H6:H5000. This will help.
If the rows change a lot, the best way would be to make it dynamic. I.e. make a name range for the range you want to validate and in the name manager, change the range to include offset. This will help you set the range to be what you have data in. Note: You need to know how many rows (i.e. use counta) which you will need to figure out if there are blanks at any point. Otherwise you do the counta on a column where you have no blanks.
Hope this makes sense and easy for you.

Excel Pivot Table Remnants - VBA Solution?

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!

Invisible table based on drop-down list value

There is a drop-down list with numbers that was made using Data-> Data validation. The goal is to make visible only the number of rows of the table that was chosen from drop-down list without using vba (to make it more easily to edit by ordinary users). The first column of the table contains numbers corresponding to the numbers from the drop-down list. The table also contains the columns with formulas. I choosed to use conditional formating with idea that all the cells of the table will be calculated and then hide those rows of the table that are under the row corresponding to the value of cell with drop-down list. In other words it needs to dynamically change the visible rows of the table or to dynamically form the table (but there is a columns with formulas and I don't know if you can do that without using vba). I've tried different ways but this problem seems difficult for me. Maybe instead of ordinary table you need to use smart-table or power pivot but I don't have experience of using it. Thank You for Your help!
Ok... let's asume you have the value in A1.
Now for the range of B2:G20.
Conditional formatting formula: =ROW()>$A$1
In the range of B2:G20 every cell will be formated with a row higher than the value in A1
If the format is something like ; ; ; it looks empty.
Using this example and having 11 in A1 -> B12:G20 will be hidden.
However: to set Row.Hdden = true you need to do it manually or use VBA :/

Resources