Conditional Formatting To Check If Adjacent Cells Are Empty?
Jul 18, 2014
I've got a list and I need to check if the adjacent cells for a column are empty or not, and if both are empty then format to a certain color. I have a solution but don't know how to implement it into a format fit for conditional formatting.
I have this in the new rule section of conditional formatting
If conditional formatting would allow it I would simply change I4 to the entire range, I am very much confused as to how to format this cell to work with conditional formatting. (I4 is the first cell in the list)
Something else is that if I change I4 to I5 or something then moves all the highlighted cells around, and to top it off the first few cells which should obviously be highlighted aren't, even though the rest of the cells which should be highlighted are.
I have a matrix in excel to show % and $ for multiple columns - set up like this:
Rows Part 1 Part 2 Part 3 Criteria 1 % $ % $ % $ Criteria 2 Criteria 3
the $ columns are conditionally formatted to highlight the top 10 values on the matrix. is there a way to have the corresponding % cells also highlighted? The % and $ aren't both top 10, so the % would have to be highlighted based on the $ top 10 cells.
In one column I have a drop down list of a dozen different initials with conditional formatting on those cells. I would also like to conditionally format an adjacent text string column based on those initials, but don't want to set up a dozen rules on each cell, one by one. If I set up the top cell with the correct rules I cannot fill the formatting in because the formula is not updated on a row by row basis, but en bloc for the range.
I need to run a loop through a column of values (attachment col B) and when it finds a "J" it will apply conditional formatting to a row of 4 cells directly adjacent. The attachment is a theoretical before & after.
Is there anyway to use conditional formatting to do the following:
If a cell has value and a cell below it doesn't have value, then highlight both cells. However, as soon as the blank cells are not blank, then both cells would clear the highlight.
In the example below, cells A1 and A2 on column A would be highlighted. Cells B3 and B4 on column B would be high lighted. Whenever cell A2 is filled in, then the highlight would clear. This logic would apply from column A through column Z.
I have a spreadsheet with 'due date' for returns in column L and 'received date' for returns, in the adjacent column M.
I would like to get the due date to turn red when it is overdue, ie. the date in the cell has arrived and no return was submitted. By trawlling the forum, I managed to accomplish this with the following in conditional formatting: Cell value is less than or equal to =TODAY()
All's great.....but - I would like the date to turn back to black if I enter a date in the adjacent received column, column M.
In other words, I want to flag a problem if the due date has passed, but once I receive the return and enter the date I receive it, i would like the due date entry to revert back to the original formatting ie. black. So only the outstanding returns are highlighted.
I am trying to finish conditionally formatting a tracking spreadsheet. If column O contains a zero, I want the row highlighted. The problem I can't stop is the enpty cells are being treated as a zero. The formula I am using is =$O3=0 the range it applies to is =$A$#:$P$92
Working in Excel 2007. I am using excel for a data log (basically) and want it to format all empty cells in a row yellow if there is data in column A
Basically, If i have a value in A2, I want any empty cell between B2-G2 to be filled in yellow (as an idicator to the inputter that the cell needs to be completed).
there is already conditional formatting on these cells, which i want to maintain for the non-empty cells. I also have "0" as a value, so I couldn't use the basic conditional formatting setting it =0, it highlighted cells with $0.00, which i do not want.
I have data in Row 53 that spans 7 columns, but stays in the same row. I want to design a loop to select every 7th cell in that row and check if it is empty. If not, add onto a "counter" then display the final number of occupied cells (the value of the counter) at the end. This is what I have so far, but I get all sorts of errors.
Code: Sub Tester()
Dim WB As Workbook Dim WS As Worksheets Dim modCounter As Long Dim Cell As Range
Set WB = Workbook("Transverse Series.xlsm") Set WS = WB.Sheets(BM18)
I want the font of a value in a cell to turn green or red based on the value of the cell below it - NOT based on a set value or range like all of the other examples are based on. I want to apply a formula or condition to the entire table.
Column a has the date for each value, newest date is row 1 and oldest date is row 250. Column b-k has the number value for each animal species we are tracking. If there are more animals than the day before, the value went up and I want the font to be green. If there are less animals than the day before, then value went down and I want the font to be green.
There are about 250 rows in each table and I have 4 tables. I thought I could do conditional formating but I can only find how to change font color based on a set value. For instance, for each day there are over 10 turkeys, then it would be green. That is NOT what I want, see below:
Mon 5 no color change Fri 5 color change to green Thu 4 color change to red Wed 5 color change to red Tue 7 color change to green Mon 5
date looks more like this - col a is date, col b is turkey, col c deer, etc
I would think this is similar to daily stock prices, if data goes up then it is in green, but if the price goes down then in red. Not based on purchase price (set value), but based on previous days closing price. For this report, I only care about the change day to day.
Is there a way to shade a cell based on whether the adjacent cell is shaded? I found some ways to do this with VBA but I was looking for a non VBA solution if possible. So basically if cell C5 is highlighted yellow I would want cell D5 highlighted yellow too, regardless of the values inside the cell. Is this possible without VBA?
Iím trying to make my life a bit easier, by adding a few macros and formulas to the spreadsheet (Everything was done completely manually before I got here!!!). What I would like to do is take two columns, which contain a start and end time for work shifts, and colour them GREEN once I have entered a name in the Worker column (Along side the two with the time), and also to fill a cell with a Yes or a No. Iím aware of auto conditioning, and Iíve tried to have a play to get this to work, but I just canít work it out. I have posted a link to an image which shows what I want. I hope I've explained it well enough!
I have columns of figures with times like 5:52:54 and next to them cells with values that i wish to format based on the time. that is if the time on the adjacent cell is before 8AM then make the value cell have a red border it does not have to be conditional formatting - Excel 2002 in win7/64
I have conditional formatting set up so that the cell becomes highlighted if it contains a specific text.
Example of wanted conditional formatting:
Conditional formatting rules manager Rule
Stop if true
For some reason this formatting is inherited by another adjacent cell as we continue to input information.
Column M is formatted so if 'AP' is placed in any cell in that column the cell fills pink. As more information is inputted into the sheet, the conditional formatting copies to Column N. It does not happen with every entry and I have not been able to isolate the specific steps to recreate the copying. Multiple people use the same sheet and fill it out and needed.
After working with the sheet changes are made to the "applies to" column without people meaning to.
Conditional formatting rules manager Rule
I would like to make this formatting so that is only applies to the Column M and not "travel" to other cells of the sheet.
Is there a code that can check if the conditional formatting of a cell is met? Or if it is met, how can I reference the condition in my userform to have a command button visible if the formatting is met?
Example: If cell range "Q8:Q51" has a cell that turns the color red when its conditional formatting is met, then I want a command button to appear on my userform.
I am creating an income calculation sheet to qualify my borrowers. I have different "types" of income in regards to hourly pay, bonus pay and overtime pay (examples)
I am using check boxes for my worksheet for the income that my underwriters want to use (example OT plus regular pay or Bonus plus regular pay or just regular pay alone can all be different options) they would then just check the box for the combo they want to use. (my check boxes came from the developer tab and I have them formatted to show true/false for checked or unchecked.)
Intro to my problem: We have 3 separate time frames for each type of pay. (I have 2012 Bonus, 2013 Bonus and then 2014 year to date bonus.....and the same for Overtime pay and regular pay, etc.)
My underwriters can only use ONE of the 3 yearly options.
Excel problem: Im thinking I need to go conditional formatting for this, but I need something to pop up if they accidentally have 2 boxes checked in one category. (So if they accidentally mark a box to use 2012 OT AND 2014 OT year to date, thats a problem and will throw the #'s off) So Im thinking there is some way to conditionally format my true/false results from my check boxes. If 2 out of 3 say true, the cell should black out or something along those lines....
I attached a screen shot of how my worksheet looks as of now : Income example excel forum.docx‚Äé
Basically I have a list of companies each with five corresponding check boxes in different cells. I want the cell with the company name in (or just a symbol in the cell) to appear Green, Amber, Red when 5, 3-4, 1-2 of the boxes are checked respectively.
I have a number of worksheets, each sheet is set up like a data entry form, at the bottom of which is a command button that takes them to the next worksheet based on a value in a cell. what i want to do is before it takes them to the next worksheet it checks a selection of cells, if any of which are blank it shows an error message and wont allow them to continue, better still the cell that is blank it high lights with a red border.
If IsEmpty(Range(Cells(iCurrentRow, iFirstDataColumn), Cells(iCurrentRow, iTotalCol)))
i did a select to make sure it was selecting the whole range I want and it works fine:
Range(Cells(iCurrentRow, iFirstDataColumn), Cells(iCurrentRow, iTotalCol)).Select Inside my range I can have cells with 0s in them and cells with nothing in them. What I would like my if statement to do is return true ONLY when ALL cells have nothing in them. At the moment, even if I have 0's in some cells, it's returning false.
Allows me to check like 10 different text values and return false for all of those in the conditional formatting rule. When those are not present, the conditional format is true thus applying the format.
I tried =NOT(FIND("text1",$A$1,1)) It did not work because I believe this statement doesnt give the rule its TRUE value its looking for.
I am having trouble with this, to clarify I need the below... Cell has conditional formatting checking for text1 text2 text3...text 10ish and if they are present nothing will happen and if they arent present then format the cell.
EDIT: to clarify, the code should look for either text1 or text2 or text3 so on...