you are mixing a1 style references and r1c1 references

also what is mergeprocess! supposed to be?

additional point-you seem to be using the same formula in both cases so you may as well put them into one case statement