Hello,
Can someone help with the following please?:
Im trying to use the IF(ISNA(.. function in this piece of code
Im not sure where its supposed to go, as everytime I use it I get the "Runtime error 1004". I would like it to say "Not in data" when no data is available.![]()
Sub Refresh() With Sheets("Final").Range("B5:N20") .Formula = "=IF(OR($A5="""",B$4=""""),"""",VLOOKUP($A5,Data!$A$2:$I$9,MATCH(B$4,Data!$A$1:$I$1,0),0))" .Value = .Value End With End Sub
Also, in the workbook attached, if you hit the refresh button and there is no value for a certain field in the "Data" sheet, it sets the default to "0", is there a way to leave this blank if there's no value?
Thanks in advance
Bookmarks