Let's say I have dates in cell G1:G999 and H1:H99. I am trying to establish conditional formatting for column G to highlight the cells with dates that are prior to today AND the adjacent cell in row H is empty.
I was wondering if this can be done in this sort of combination.
Thanks all!
Use the formula:
=AND($G1<TODAY(),$H1="")
and apply to range (adjust as necessary to your last row)
=$G$1:$G$999
I have two ranges K1:NK1 are dates of the years (from 01/01/2015 to 12/31/2015), and K2:NK2 has text. In cell G2 I have the start date 01/01/2015 and I2 has the end date 04/01/2015.
I want to add a formula in cell F1, which check the start date and end date, whether there are any blanks between the two dates and give me the count.
I hope I have explained correctly.
Use =SUMPRODUCT((K2:NK2="")*(K1:NK1<=I2)*(K1:NK1>=G2)) if you want to include the start and end date, if you want to include them, use =SUMPRODUCT((K2:NK2="")*(K1:NK1<I2)*(K1:NK1>G2)).
I have tried using a variation of formulas mentioned in previous questions but can't find a way to make it work for me. I have a date in "X column" for the Due Date and a date in "Y column" for the Date Complete. I am trying to create a formula that will turn red when the Date Complete is greater than the Due Date. This will need to be a formula that can be repeated used as I add data weekly.
You would need to use conditional formatting for this.
Go into conditional formatting, select "New Rule", then "Use a formula to determine which cells to format". If your due date is in column "A" and your completion date is in column "B", you would place the following formula in the box:
=($A$1-$B$1)<0
Apply this formula to cell B1, and make your formatting changes (fill red).
If you copy this down, it should work for subsequent rows.
If column C is empty and Column A is your due date and Column B is your complete date, type this formula in column C:
=IF(A2<B2,"YES","NO")
Then do conditional formatting for text that contains "yes" for range C2:C50; assuming you have headings in Row 1.
Given a date, ex. 05/05/2006, I need to name 12 columns starting with the month of the date given. I realize that I need to make a list of months, I just don't know how to loop it (ie. if one of the months in the middle is December, the next one needs to be January).
The only way I know, from other programming experience, is to make the first column equal to the first month, then make nested conditional statements for the other columns
IF(A1="Jan","Feb",IF(A1="Feb","Mar".......))
I'm sure that there's a better way to do it than brute force (plus, excel doesn't allow me to input that many nested conditionals).
This formula should do the trick:
=TEXT(DATE(2014,MONTH($A$1)+COLUMN()-2,1),"mmmm")
The starting date should be in A1 and first header in B column. If the first header is in another column, you should replace 2 in COLUMN()-2 with the column number.
In the first month column, use =TEXT(A1,"MMMM") where the date is in A1... In the subsequent columns, use =TEXT(EDATE(DATEVALUE("1 "&B1),1),"MMMM") to make a date from the month name, add a month and convert to text.
Assuming your date is in A1, and your columns are in B1 - M1:
Set B1 = A1.
Set C1 = EDATE(B1, 1). EDATE adds the specified number of months to the specified date.
Copy C1 to D1 - M1.
Now you have twelve columns containing the original date and the same date on eleven successive months.
Select B1 - M1; Format Cells; under Number, select Custom; and under Type, enter mmm. This will format these dates to just show the abbreviated month.
Assuming A1 has the date. The following should work
B1= A1 (format as "mmm")
C1 =EOMONTH(B1,1) (format as "mmm")
Copy the above formula and format from C1 for the other columns
Assuming the date is in A1
=TEXT(EDATE(A1,0),"MMMM")
The next column would be
=TEXT(EDATE(A1,1),"MMMM")
... and so on.
I have 3 cells in Excel as follows:
Cell
A1=2012
A2=12
A3=15
Which contains year, month & date value respectively. And I want to make a date string out of it.
I know it's very easy to achieve using Date function.
But I also want the cell to remain blank if any of A1,A2 or A3 is blank.
something like
=IF(COUNT(A1:A3)=3,DATE(A1,A2,A3),"")