Hi
I'm trying to create a payroll spreadsheet and I have the following in the rows:
1 Date (increasing by day) e.g. 16Jul, 17Jul, 18Jul, 19Jul, 20Jul etc.
2 Payroll Cutoff date
In the second row I would like a formula that looks up the cutoff date using the date above. I.e. it will need to find the date from a list which is the next cutoff date (greater than or equal date).
In a separate worksheet I then have the list of payrol cutoff dates in a named array called 'cutoff':
20Jul
10Aug
20Aug
etc.
I have tried using the MATCH and INDEX formulas, so in cell A2 I tried:
=INDEX(cutoff,MATCH(EK2,cutoff,-1))
but I just get a #N/A error.
Any ideas how to get around this?
I'm trying to create a payroll spreadsheet and I have the following in the rows:
1 Date (increasing by day) e.g. 16Jul, 17Jul, 18Jul, 19Jul, 20Jul etc.
2 Payroll Cutoff date
In the second row I would like a formula that looks up the cutoff date using the date above. I.e. it will need to find the date from a list which is the next cutoff date (greater than or equal date).
In a separate worksheet I then have the list of payrol cutoff dates in a named array called 'cutoff':
20Jul
10Aug
20Aug
etc.
I have tried using the MATCH and INDEX formulas, so in cell A2 I tried:
=INDEX(cutoff,MATCH(EK2,cutoff,-1))
but I just get a #N/A error.
Any ideas how to get around this?