Shifting problems and intake problems?

I drive a 1997 ford ranger with a 2.3l automatic. I have recently experienced a hard shifting in my truck even when I'm not on the gas it has problems shifting. And I cleaned my air filter and filter hose that goes to my throttle body and there was transmission fluid in the hose. What can be causing this and how can I fix it or how much will it cost roughly?

Look and see if it has a vacuum shift modulator. Near the trans pan. Clould be that or check vacuum line.

97 doesn't have a modulator. That stopped in the 94 model year. The 97 is all electronic. So a possible problem with the electronic pressure control solenoid. Find local shop at ATRA.COM for more help