# Min Date

##### MrExcel MVP
That would be range date 1980 to 2015 - and range to 10000
A range in Excelese is something like A2:A10, E2:K2, etc. And that's what I meant when asking for your ranges for dates and employees...

### Excel Facts

To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

#### Patcheen

##### Active Member
a2:a1000 and b2:d10000 hope thats right..... ive to put kids bed so be a while b4 i check back later

##### MrExcel MVP
a2:a1000 and b2:d10000 hope thats right..... ive to put kids bed so be a while b4 i check back later
We have employees in A1:A1000 and corresponding dates in B2:D1000, right?

#### Patcheen

##### Active Member
Yes at A2 to a1000 corresponding dates are in b2:b1000

##### MrExcel MVP
Yes at A2 to a1000 corresponding dates are in b2:b1000
Jeff has already provided the formula that should work, that is, control+shift+enter, not just enter...

=MIN(IF(\$A\$2:\$A\$1000=\$E2,\$B\$2:\$B\$1000)

where E2 houses an employee of interest.

=IF(COUNTIFS(\$A\$2:\$A\$1000,\$E2),MIN(IF(\$A\$2:\$A\$1000=\$E2,\$B\$2:\$B\$1000)),"")

If you don't still get the correct result (you claimed getting 0). If this is still the case, we will some diagnostics...

##### MrExcel MVP
Jeff has already provided the formula that should work, that is, control+shift+enter, not just enter...

=MIN(IF(\$A\$2:\$A\$1000=\$E2,\$B\$2:\$B\$1000)

where E2 houses an employee of interest.

=IF(COUNTIFS(\$A\$2:\$A\$1000,\$E2),MIN(IF(\$A\$2:\$A\$1000=\$E2,\$B\$2:\$B\$1000)),"")

If you don't still get the correct result (you claimed getting 0). If this is still the case, we will some diagnostics...
Don't try at all anything. You first need to decide what is the FROM sheet and what is the TO sheet. Put othwerwise: FROM = source, TO = destination.

The FROM sheet is the sheet from which the min date must come for the name that is in the TO sheet.

Would you state which sheet of yours, Employee or Attandance, is the FROM (source) sheet?

1,102,095
Messages
5,484,639
Members
407,459
Latest member
DICKSON KIMEMIA

### This Week's Hot Topics

• Finding issue in If elseif else with For each Loop
Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
• MsgBox Error
Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
• CELL FORMAT - IF CONDITION
My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
• Show numbers nearly the same
Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...