How to divide two columns with multiple ifs and send output to different files

It'd be sweet if you edited your post to contain the question and then added the solution - and then marking it solved.

As it stands, a single post saying 'solved' isn't really all that helpful/beneficial.
Welcome to the forums.

It's better to begin your own topic about this, since the OP of this topic did something imprudent. This gives you a chance to make more clear what you're looking for, beyond a vague description which is the title of this topic.

Members online