Investors & landlords

can we take that profit and put it into something else within a certain time period without paying the tax? 

Only if you do this exactly as required:

https://www.irs.gov/newsroom/like-kind-exchanges-under-irc-code-section-1031