Are you trying to put the result in the first available cell to the right of the data in a particular row?

Does each row contain the same number of filled columns, or does the number vary?