I'm not sure where this 1/3 of the way up from the bottom (or 2/3 down from the top surface) comes from. The 1/2 in the original formula gives either the pressure 1/2 way up the water column, or the pressure averaged over the entire height of the water.
This part of elementary hydrostatics often confuses.
The average pressure is, by definition of average, the pressure which when multiplied by the area give the total force applied to the sidewall of the tank.
As HOI, and Misr's textbook has observed this average is simply 0.5(surface pressure + bottom pressure).
To be horizontally equivalent this could be applied as a single force at any height (depth) on the sidewall.
However, as 256 bits has observed this has to be applied at a point 2/3 of the water depth to be fully equivalent in moment terms,
not the centroid of the sidewall area.
This point is the centroid of the pressure -depth diagram which is triangular and is called the centre of pressure. The position of the centre of pressure is different for other pressure diagrams and in general does not coincide with the centre of area (centroid) of the surface under pressure.
It is important to realize that the force is given by the average pressure on the surface, not the pressure at the depth of centre of pressure, times the surface area.
Whilst the calculation is probably irrelevant for a tank sidewall it is vital for calculating the overturning moment of a dam.