Ref error coming when using index & matchfunction


Hi Everyone,

Im working in a worksheet to capture labour attadance.

but when Im using Index and match fuction it coming correctly but if i drag it ref error appears in the sheet.
please help to complte this Thank you 





The error is in this MATCH.


It features a relative reference in 'H6'. So, the fault is in the test rather than the formula itself.

The complete, corrected formula ( rearranged for better logic) should be as below. Paste in G2 and copy down.


You can make the formula both more readable and more efficient by using dynamic named ranges. Try setting up a named range with 5 columns with this formula in the 'RefersTo' field (Excel will add the sheet name automatically). The size of the range will adjust automatically to the number of rows in use.


With this named range in place you can now use the same above formula referencing any of the columns of the named range. I called this range "Data" and the formula refers to columns 4, 2, 3 and 5 of it.


The formula will become much shorter and still easier to read if you set up several one-column named ranges.

For this example I set up the ranges "Times", "Ids", "Dates" and "Status", each with a dynamic formula like this:
As you see it is exactly like the formula above except that it misses the "5". You might add a "1" (for 1 column) but that is the default which Excel will presume if the parameter is omitted.

Answer the Question

You must create an account to use the forum. Create an Account or Login