I have a datatable with formulas, when I insert that datatable in excel, for some formulas it is showing #REF!. But for some formulas it is taking proper formula. so, Not able to find out the exact cause.
I am inserting the dt in excel like this.
sheet.InsertDataTable(dt, true, 1, 1,true)
dt contain formulas like this: =VLOOKUP(G4,'FR-BF-Qty-QS0'!$G:$H,2,0)*VLOOKUP(G4,'FR-Price-PS0'!$G:$H,2,0)
but in excel it appear like this: =VLOOKUP(G4,'FR-BF-Qty-QS0'!$G:$H,2,0)*VLOOKUP(#REF!,'FR-Price-PS0'!$G:$H,2,0)
Is there any possible cause for this?