If this Date Range and This Cell Value Match?

thisishailstorm

New Member
Joined
Jan 7, 2019
Messages
5
Hello,
I am trying to highlight a collision if the date ranges in columns B and C coincide as well as the values in column F. The collision column G should then be either red, or indicate yes or an x.
How would I express this?

Thank you!

Excel Screenshot.png
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

maabadi

Well-known Member
Joined
Oct 22, 2012
Messages
1,792
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
you want only for consecutive rows or search at the total range?
 

maabadi

Well-known Member
Joined
Oct 22, 2012
Messages
1,792
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I suppose three condition:
1. Consecutive Rows
2. Non-Consecutive Rows with show Index at Column A for 2nd match
3. Non-Consecutive Rows with "YES"

Book1
ABCDEFGHI
1For ConsecutiveNot Consecutive
21BABANot RONo11YES
32BABARONo  
43CRECRENot RONo12YES
54CRECRERONo  
65CSCSNot RONo  
76CSCSRONo  
87INTDBTSERONo  
98MAMARONo  
109MAMANot RONo  
1110BCPSRBCPHNNot RONo  
1211BABANot RONo11YES
1312CRECRENot RONo12YES
Sheet1
Cell Formulas
RangeFormula
G2:G13G2=IF((B2=B3)*(C2=C3)*(F2=F3), "Yes", "No")
H2:H13H2=IFERROR(INDEX($A$2:$A$13,SMALL(IF((B2=$B$2:$B$13)*(C2=$C$2:$C$13)*(F2=$F$2:$F$13),ROW($B$2:$B$13)-ROW($B$2)+1),2)),"")
I2:I13I2=IFERROR(IF(SMALL(IF((B2=$B$2:$B$13)*(C2=$C$2:$C$13)*(F2=$F$2:$F$13),ROW($B$2:$B$13)-ROW($B$2)+1),2),"YES","NO"),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,513
Messages
5,636,778
Members
416,939
Latest member
Rajakumaran

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top