Shifts hard and sometimes shifts smoothly

i have a 2001 saturn l200 2.2 about 160000 miles…sometimes when i drive the car it shifts hard and sometimes it shifts smoothly…i did have new transmission fluid and new filter put in…i did have transmission scan for codes and there was no codes…i do have a engine code came up it was Crankshaft Position Sensor…cud a Crankshaft Position Sensor cause a car to shifts hard sometimes…

A problem with the engine can confuse operation of the transmission, especially if the trans is electronically controlled.
So get the engine problem sorted out and cross your fingers.

i do know i have alot of Engine Vibrations when im at a stop light

If you have a crank pos sensor fault it will idle poorly and confuse the computer.

i will get that replace today and see what happen