I have a date column and year column in this date column year must match with year column ..
like if date column have year 2019 then year column must be 2019 if 2017 then must be 2017 ..
Date Year
01-02-2019 2019
02-09-2018 2018
03-10-2017 2019
04-11-2017 2018
so here i want to identify those who are not match date(year) and year column and highlight with yellow color . like last 2 records are incorrect so want to highlight with yellow color
Through conditional formatting:
Select A2:B5
New conditional formatting rule through formula:
=YEAR($A2)<>$B2
Choose format and apply
To highlight the entire row:
Select rows 2:5
Follow the same steps as above
In column C =B1=Year(A1) then format with conditional formatting.
Related
I am looking for a formula to pull up the previous quarter and year like in the Column J, for the Oct 20, it should return Q3 20 instead of Q4 20.
Currently my formula only returns the correct quarter but I would need the previous to last quarter and year?
To return the quarter | year corresponding to 3 months ago, i.e. :
"previous quarter & year"
simply replace col H date references with edate(date,-3). Cell J17 formula to enter is then:
="Q"&ROUNDUP(MONTH(EDATE(H17,-3))/3,0)&" "&YEAR(EDATE(H17,-3))
If you have Office 365 compatible version of Excel, you could shorten (albeit ever so slightly in this case) with the let function as so:
=LET(x,EDATE(H17,-3),"Q"&ROUNDUP(MONTH(x)/3,0)&" "&YEAR(x))
I have 2 date, a start date and end date. I want to be able to count if these were active through a certain month.
Row 1: start date 20/11/2020, end date 03/02/2021.
Row 2: start date 03/01/2021, end date 15/03/2021
Row 2: start date 12/01/2021, end date 31/03/2021,
The columns I have are the months and based on the above data this is the expected result.
Nov 1
Dec 1
Jan 3
Feb 3
Mar 2
Is there a formula that I can use to count this through a range of 100's of rows?
A simpler method than what you posted in your comment.
Put your start/end dates in a Table and name it StartEndTbl
Create a column of months whereby
Each entry is the first day of the month
The column is formatted mmm-yyy
In the first cell (F2 in this case), enter the formula:
F2: =SUM((StartEndTbl[Start]<=EOMONTH(E2,0))*(StartEndTbl[End]>=E2))
and fill down as far as needed
I have an Excelsheet with lot of dates.
I need to highlight the rows witch will be 6 months after given date but before march 1 2020.
Column A = Date
Column B= Date + 6 months
I would like column B to give me a color red or green if the column is before or after march 1 2020.
Start
Result
In a list of dates in dd-mm-yyyy format, how to count no. of days which are having specific condition for days or months or years? E. g., all dates with dates between 1st and 10th of the month?
Where A1 is the date...
=IF(DAY(A1)<11,"1st - 10th", "11th - EOM")
If you wanted this to be a conditional format you would:
Navigate to: Conditional Formatting > New Rule > Use a formula to determine which cells to format
Use =DAY(A1) < 11 to highlight dates that fall on 1st - 10th of month
Use =DAY(A1) > 10 to highlight dates that fall past the 10th of month
Format to taste & apply to desired range
I have 2 columns in Excel sheet, Column1 has the Quarter Selection dropdown box(Q1, Q2, Q3 and Q4). And Column2 has the month selction dropdown box.
I need help in the below.
Q1 - Feb, March, April
Q2 - May, Jun, July
Q3 - Aug, Sep, Oct
Q4 - Nov, Dec, Jan
Now if a user selects Quarter as Q2 in Column1, the Dropdown values in Column2 has to have only May, June and July.
I tried the grouping option but it doesn't help me.
Thanks in Advance,
Satish D
You should create two tables, one containing quarters, and other containing all quarters with corresponding months (tables are surrounded with thick border).
Then in cell A2 create simple data validation and set list in D1:D4 as source.
In cell B1 also create data validation list, set allow to list, and in formula area please enter this formula =OFFSET(INDIRECT(ADDRESS(MATCH($A$1,E1:E12,0),5)),0,1,3,1)
You data validation list in cell B1 is now dependent on selection in list A1.