Function Vagt(xDate as Range, xRange as Range)
Vagt = Application.WorksheetFunction.Match(xDate, xRange)
End Function
BTW:
=Vagt(L3;A3:A9;0) Should give an error, because the number of arguments is incorrect.

Signature
Kind regards,
Niek Otten
Microsoft MVP - Excel
|I made this function and it works fine
| xDate is 1 cell vith a date, xRange is a range vith som difrent dates
[quoted text clipped - 12 lines]
|
| thanks in advance
excelent - 03 Dec 2006 18:49 GMT
Hi Niek it works great now
y i wrote =Vagt("L3";"A3:A9";0) my mistake
i realy use =Vagt("L3";"A3:A9")
but anyway u made my day :-) thanks alot
"Niek Otten" skrev:
> Function Vagt(xDate as Range, xRange as Range)
> Vagt = Application.WorksheetFunction.Match(xDate, xRange)
[quoted text clipped - 20 lines]
> |
> | thanks in advance