Forum Discussion
thomaspowell250
May 24, 2023Copper Contributor
MAX date when less than another date
hi, im looking for a formula that will find the max date in a range where the date is less than another cell. example below of what im looking for (last_out date (expected result) i am trying t...
- May 25, 2023
=MAXIFS(Date_out_column,Barcode_column,Barcode,Date_out_column,"<"&Returned_date)
Harun24HR
May 25, 2023Bronze Contributor
thomaspowell250 Following both formula should work-
=MAX(FILTER($B$2:$B$5,($A$2:$A$5=D2)*($B$2:$B$5<E2)))
=MAXIFS($B$2:$B$5,$A$2:$A$5,D2,$B$2:$B$5,"<"&E2)
- thomaspowell250May 25, 2023Copper Contributor
thank you both, it worked, i had the same formula but as the data is part of a table i was using the @column instead of the $B$5:...... which was giving me the error.
thanks again