Any one can help me create a vba function with excel IF, INDEX, MATCH function as follows ;
=IF(INDEX(Grid!$B$3:$G$6,MATCH('Sal-Data'!$A2,Grid!$A$3:$A$6,0),MATCH('Sal-Data'!$B2+1,Grid!$B$2:$G$2,0))=0,$B2,$B2+1)
You can call function as NGrid.
Function NGrid (....... )
code ........... '...