finding the earliest date in an array of cells

  • Thread starter Thread starter Buck
  • Start date Start date
B

Buck

I have one column with various dates.....lets say B2:B20. The next column
(C2:c20) with values such as 1, 4, 8, etc. I am trying to calculate the
earliest date with a value in the same row that is > 0. So if B5 has the
earliest date, but the value of C5 is 0, I do not want that date.
 
Buck said:
I have one column with various dates.....lets say B2:B20. The next column
(C2:c20) with values such as 1, 4, 8, etc. I am trying to calculate the
earliest date with a value in the same row that is > 0. So if B5 has the
earliest date, but the value of C5 is 0, I do not want that date.


Array formula (commit with CTRL+SHIFT+ENTER):

=MIN(IF(C2:C20>0,B2:B20,""))

Make sure to format the cell as date.
 
Buck said:
I have one column with various dates.....lets say B2:B20. The next column
(C2:c20) with values such as 1, 4, 8, etc. I am trying to calculate the
earliest date with a value in the same row that is > 0. So if B5 has the
earliest date, but the value of C5 is 0, I do not want that date.


Array formula (commit with CTRL+SHIFT+ENTER):

=MIN(IF(C2:C20>0,B2:B20,""))

Make sure to format the cell as date.
 
=MIN(IF(C2:C20<>"",B2:B20,""))

This is an array formula that must be entered with CNTRL-SHFT-ENTER rather
than just the ENTER key.
 
=MIN(IF(C2:C20<>"",B2:B20,""))

This is an array formula that must be entered with CNTRL-SHFT-ENTER rather
than just the ENTER key.
 
Back
Top