Conditional Formatting for Paired-Columns - excel

I am trying to set the entire first row as duplicate-paired dates
ex: Columns A & B: today's date; Columns C & D: tomorrow's date; Columns E & F:next date and so on until the end of the year.
I used conditional formatting and Autofill with Trend but no luck..
my question is about...how to actually do it without having to manually introduce them.
=IF(MOD(COLUMN();2)=0;CELL(A1)+1;CELL(A1))
Any advice would help, thank you

to populate the date in the first row, in cells A1 and B1 use:
=TODAY()
then, in cell C1 use:
=A1 + 1
And populate towards the right for as many columns as you need
Not sure I understand where the conditional formatting comes in...

Paired Dates
Today's date is 03/07/2019 which Excel 'translates' to 43531:
=43531+INT(COLUMN()/2)-MOD(COLUMN()-1,2)
or use any number for the 'starting point'. Format the cells as date of course.
Apply to Values
Rows
=INT(A1/2)-MOD(A1-1,2)+1
Columns
=INT(A1/2)-MOD(A1-1,2)+1

Related

Conditional formatting if date is before today AND adjacent cell is empty

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

Excel formula to check blank in range bases on criteria

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)).

Cell with date greater than another cell with date

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.

How to make a list of 12 months (loop) not starting at the first month?

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.

Excel Date Formula

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),"")

Resources