Last date = YES/NO

Pizzio

Active Member
Joined
Apr 28, 2005
Messages
268
I'm looking for a formula that will tell me IF(RED = Column G and IF 12/31/35> the last date for RED in column H. Any ideas?
TypeDate
Red
12/31/2023​
Blue
8/15/2025​
Red
12/31/2015​
Red
12/31/2028​
Black
6/30/2026​
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
What version of Excel are you using?

Also is this meant to be a date?
1675373317111.png
 
Upvote 0
Try this, the 49674 is the serial number for 31/12/2035

Book1
ABCDEF
1
2TypeDate
3Red31/12/2023 
4Blue15/08/2025 
5Red31/12/2015TRUE
6Red31/12/2028TRUE
7Black30/06/2026 
8
Sheet1
Cell Formulas
RangeFormula
E3:E7E3=IFS(B3<>"Red","",49674>XLOOKUP("Red",$B$2:B2,$C$2:C2,"",0,-1),TRUE,TRUE,"")
 
Upvote 0
if the target date to look for everchanges...

WorkBook1.xlsx
BCDEF
2TypeDateonly reds
3Red12/31/2023  
4Blue8/15/2025Is the Max 
5Red12/31/2015  
6Red12/31/2028Is the MaxIs the Max
7Black6/30/2026Is the Max 
Sheet4
Cell Formulas
RangeFormula
E3:E7E3=IF(MAXIFS($C$3:$C$7,$B$3:$B$7,B3)=C3,"Is the Max","")
F3:F7F3=IF(MAXIFS($C$3:$C$7,$B$3:$B$7,B3,$B$3:$B$7,"Red")=C3,"Is the Max","")
 
Upvote 0
Please put that in your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,449
Members
449,083
Latest member
Ava19

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
Back
Top