Finally i was able to get it done.
Range("P6").Select
ActiveCell.FormulaR1C1 = _
"=IF(AND(ISNA(RC[-2]), ISNA(RC[-1])), ""not applicable"","""")"
Application.CutCopyMode = False
Selection.Copy
ActiveCell.Offset(0, -1).Select
Selection.End(xlDown).Select
ActiveCell.Offset(0, 1).Select
Range(Selection, Selection.End(xlUp)).Select
ActiveSheet.Paste
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'' Range("R6").Select
Application.CutCopyMode = False
Thanks shg.
Bookmarks