Question about shift registers

Hello, I have a 74HC165N shift register but I need a 74HC595
so is there a way to use the 74HC165N as the 74HC595 or I have to buy it?

The 165 is parallel in serial out, the 595 is serial in parallel out.

They are totally different devices.

There are many shift registers with different sets of functionality in the 7400 series, the '595 does 8 outputs and has a latch. The '165 is parallel in only...

There is the 74HC299 which can do both parallel->serial and serial->parallel (and shift either direction, come to that), but it doesn't have an output latch.

As always read the datasheet to see what a particular device can do. The summary at the start should be informative.