Highlight a row until all cells are filled - excel

I am using conditional formatting to highlight a row if a cell has something entered and will remain highlighted until all cells in that row are filled.
=COUNTA($B$2:$E$1)>0
*Conditional format if true changes the cell interior to Yellow (B1:E1)
For each cell in the COUNTA, I use conditional formatting to change the cell to white if No Blanks.
This is making my conditional formatting cue huge. For each line, there is a conditional format to change to yellow with COUNTA, then each cell has a conditional format to change it to white when it has any data entered.
My question is; is there a better way to accomplish this without conditional formatting?
My goal is to have the sheet - each row - white. If any data is entered into any cell, it will highlight the entire row in yellow until every cell in that row is filled out making the entire row white again.

One formula makes it!
Keeping in mind you have headers in row 1, the region starts at row 2
=AND(COUNTA($B2:$E2)>0;COUNTA($B2:$E2)<4)
=$B$2:$E$35

Related

Conditional Formatting based on highest value and color red the new cell

I am very new to excel macro VBA I am trying put conditional formating that put colour red in Cell "AN" based on the target values present in cell "AC, AE, AG and AI" respectively these cells have values which differ each time and the highest values depending on the target given in corresponding cells if the target is more then these cells ("AC, AE, AG and AI") are highlighted in red.
Cells "AC, AE, AG and AI" becomes red if values of them are exeeds of correspondents "expected" cells.
Theese are criterias to paint "AN" in red
Try to use condition formatting in "AN2" with formula such as:
=OR($AC2>$AB2,$AE2>$AD2,$AG2>$AF2,$AI2>$AH2)
and red paint.

In Excel I have two columns, I want to highlight based on text values in the right col

Is it possible to do this with conditional formatting?
Say if the right clumn has the word "TRUE", I want to highlight the cell on the left of the column green.
this is what i tried:
cell value if true =$I:$I,$L:$L,$O:$O but it not applying to the column to the left, just the column with the text match
You simply need to select the range you want the formatting to apply (green in your case), then look for the white cell, in my case, it's A2 the white cell, and use a formula that will work for this particular cell, in my case, it would be when B2 is TRUE, so I use =B2=TRUE:
Result:

Excel formula formatting

is it possible to use a formula in conditional formatting to change the fill color of one cell based on the fill color of another cell. All I can find is value based formatting. I have a large sheet that has many rows in one color with nothing in the cell and I want to change those cells to another color without having to select them.
You could use the Excel 4.0 Macro Function GET.CELL:
Returns information about the formatting, location, or contents of a
cell. Use GET.CELL in a macro whose behavior is determined by the
status of a particular cell.
Syntax
GET.CELL(type_num, reference)
type_num = 39:
Shade background color as a number in the range 1 to 56. If color is automatic, returns 0.
With cell B1 selected create a named range called FillColour.
This refers to: =GET.CELL(38,A1)
Now, if you enter the formula =FillColour in cell B1 it will show a different value when you change the background colour of cell A1.
NB: You may have to manually force a recalculation for it to work.
Next add conditional formatting rules: =FillColour=29 will be TRUE if the cell to the left of the CF is formatted as purple (RGB: 177, 160, 199).

Colour cell background if another cell in same row is empty

I have two columns: In the first there might or might not be a value;
in the second column, if the first cell next to it is empty, I want to colour the cell in a grey colour.
Is there an easy way to change a cells background colour, if a different cell is empty?
Please select your second column and with Format, Conditional formatting..., Format cells if..., Custom formula is enter:
=isblank(A1)
and for Formatting style choose grey fill, Done.
Change "A" in the formula to the reference letter for your first column.

Excel 2010 - Conditional formatting, color adjacent cells in same row

Is is possible in Excel 2010 to set a conditional formatting rule to highlight all not empty cells in a row when the cell in particular column has a particular value?
I have a report in which every row identify a day. I would like to colour in grey the rows relative to Saturday and Sunday. The day is stored in column C.
I know how to highlight cells in column C, but how can I easily extent the format of cell C to the adjacent not empty cells in the same row?
This is easy to do without a macro and without using INDIRECT function
Assuming you have data starting at row 2 and that the "day" in column C is a text value then do this:
Select whole range of data, e.g. A2:J100
apply in conditional formatting the formula that needs to apply to the first row, e.g.
=AND($C2="Saturday",A2<>"")
That will apply formatting to all cells in the range if col C of that row is "Saturday" and the cell itself is not blank. Note C2 needs a $ in front because it applies to C for the whole row A2 doesn't need $
If you want to apply to Saturday and Sunday the same type of formatting then use an OR, i.e.
=AND(OR($C2="Saturday",$C2="Sunday"),A2<>"")
....or if the column C entries are actual dates make that
=AND(WEEKDAY($C2,2)>5,$C2<>"",A2<>"")
See example workbook with that last CF formula demonstrated
Taking inspiration from John answer in this thread, I've used the "indirect" function on the conditional formatting.
Select Conditional Formatting
Select New Rule
Select "Use a Formula to determine which cells to format"
Enter the Formula, =WEEKDAY(INDIRECT("c"&ROW()))=1 # for Sundays
Enter the Format you want (text color, fill color, etc).
Select OK to save the new format
Open "Manage Rules" in Conditional Formatting
Select "This Worksheet" if you can't see your new rule.
In the "Applies to" box of your new rule, enter =$A$1:$J$35 (or however wide/long you want the conditional formatting to extend depending on your worksheet)
Do it again, this time inserting the Formula, =WEEKDAY(INDIRECT("c"&ROW()))=7 # for Saturdays
There is only an issue with this formula. When the cell in Column C is empty it will be read as 7, therefore the row will be formatted as if it's a Saturday. Do you know why?

Resources