I'm trying to minus the value of one cell in a range from another cell in a range within vba code but i'm not sure how to go about it.

The code I have is

outarr(i - 6, 1) = VirtImport(j, 56) - Namearr(i, 56)
I'd like to minus the Namearr value from the VirtImport value and have the result placed into the virtual array

Any help appreciated