Dear forum users and bloggers,
I would be really greatful if you could help me with the following matter.
I need to assign the "freight payer" which is either the sending or in some times the receiving plant, e.g. OT for Ontario etc.
I have two columns "sender" and "receiver" and did this so long by inserting a new column, first filtering all senders (the company has 10 plants) and then filling the new column. E.g. if I saw Ontario, I entered OT . After I finished the "senders", I checked the "receivers", and if there were some receiving plants (normally, the receivers are customers), I entered the acronyms for the receivers in the new column, and if there already has been any plant, I overrid it. This all, because I wanted to sum up the freight costs paid by the relevant plant.
If there any VBA function that could help me insert the right acronym by checking the two columns at once?
See example below for explanations
Sender Receiver Freight Toll Who pays the freight
Ontario Customer1 123 3 OT
Ontario Toronto 144 5 TO
Montreal Customer2 155 2 MO
Montreal Ontario 44 4 OT
Thank you very much in advance,
Best regards,
Ksénia