how can i fill to specific column based on variable?
Your expected result in Excel is unstructured and unlogic in data terms; you can't expect a build-in function for "unlogical"; and so there isn't one.
You have to use a .NET Script task to implement it.