if you have 120V available you can use transformer as a isolation transformer to get 220V out (about double or whatever the ratio is).
if you swap primary and secondary you can get half the voltage but max power is limited to only 50% due current ratings of the windings.
if you connect one of output terminals (secondary) with one of input terminals (primary) you will not have isolation but you can get triple voltage using autotransformer configuration. in this case you need to pay attention to dot marking. if you get it wrong, instead of sum, you get the difference of voltages so output will be practically unchanged (220-120=100). if you got difference instead of sum, swap wires of one of transformer coils (either primary or secondary).
if your source is 220V, you must use 220 side of the transformer as primary. in that case you can only get output of 120V out.
if you use autotransformer configuration, you can still get sum 220+120=340V or difference 220-120=100V but again, no isolation.