There are several factors you should consider in selecting the RAM:
1. DDR Slot Format / Build Platform
Assuming you have a fairly new PC build, the DDR format can either be DDR3 (fairly older platform) or DDR4 (recent platforms). A DDR3 has a different pinout (and voltage) than a DDR4. One won't physically with to the slot of the other. So, check what DDR and platform you have.
2. Capacity and Purpose
RAM capacity (in GB) is the most noticeable difference in RAM performance. A total of 4GB RAM capacity is too low nowadays. 8GB is widely-considered as "bare" minimum. 16GB is ideal, especially for multitasking/workstation use. 32GB is too much for casual use unless you are into professional editing work.
3. Number of Slots in Motherboard
The quantity of RAM sticks also plays into consideration, which is dependent on the number of slots your motherboard has. Buying a pair of RAM modules is ideal (taking advantage of Dual Channel) as it has been tested out-of-the-box to work as a pair, instead of buying a single stick and later on adding another. If your platform supports Quad Channel, then consider getting a set of 4 RAM modules.
4. Max. Supported Speed
Speed (in MHz) is the determinant (after Capacity, in GB) in terms of selecting a faster ram (instead of CAS Latency). The governing factor in selecting the RAM speed is what your CPU and Motherboard can supports at maximum. In DDR3, for example, non-OC CPU/motherboards only support up to 1600MHz. OC'able CPU/MB can support from 1866MHz and up. In DDR4, default sppeds are 2133MHz to 2400MHz for non-OC platforms, while 2666MHz and up can be used for OC'able setups.
5. RAM Height
The actual, physical height of the RAM modules play into consideration especially when using large CPU (air) coolers as there might be spatial issues in mounting such coolers that may block or hinder the installation of the RAMs.
6. Color and LED
For purely aesthetics only, if you want to match the RAM module's colors (and LED lighting bling-bling) with the rest of your build.
In real world use, the RAM capacity (in GB) is very noticeable compared to the RAM speeds (in MHz). So, focus on what specific use your PC would be and select the affordable RAM you can get with the ample amount of GB (and number of sticks). The speed should be secondary in priority (esp. if you're not going to OC).