When you are using the conservation of energy, it is best to not remember a formula but just remember what is the conservation of energy. The total energy in a closed system is constant. Closed system meaning that you aren't supplying external "energy" to the system.
Now if a particle is moving up the plane and a constant force,F, is pushing it up the plane a displacement,x, the work done by the force is,Fx.
But as the block moves up the plane, it has a speed right? So, by the kinetic energy formula (\frac{1}{2}mv^2) it has kinetic energy,E_k.
Also as the block moves up the plane it moves further away from the ground,correct? (As it is basically moving upwards in a sense). So it must be gaining gravitational p.e.,E_p
Now if the plane is rough (i.e. frictional forces apply), work is done overcoming that friction,else the block just wouldn't move. The work done in overcoming friction is E. (You calculate it by finding the product of the frictional force and the distance moved)
Since energy can't be created or destroyed, the energy must have been converted from something. What is this something? Well it is the initial work done by the force,Fx!
So that Energy input to the system= Energy output (by the law of conservation of energy)
and so
Fx=E_k+E_p+E ...(that's equation 1)
and that is basically how to use it.
If the plane were such that you can ignore friction, well then that means that E=0 and hence
Fx=E_k+E_p ...(that's equation 2)
(ignoring friction from here now)
If a box is pushed along a surface by a Force then the Force does work,W, in pushing the box. Since you are ignoring friction and the height of the box didn't change, then all the work done by the force is converted to kinetic energy which is used to give the box a speed.
So that
W=E_k...(That's equation 3)