A heat exchanger comprising a pair of headers disposed parallel to each other, a plurality of heat transfer pipes each having opposite ends inserted to said headers, respectively, and arranged to form refrigerant passages between said headers, and a number of fins disposed in respective air passage spaces between adjacent pairs of said heat transfer pipes, wherein either one or both of said headers is provided with at least one refrigerant flow rate control valve for opening and closing a refrigerant passage in the corresponding header, a refrigerant inlet of said heat exchanger is provided in one header, and a refrigerant outlet of said heat exchanger is provided in the other header.