There is another approach, recommended by
Harold Merklinger, which simplifies things enormously and seems to work well. The technique is described at some length here -
http://www.trenholm.org/hmmerk/DOFR.html
In a nutshell, what he is saying is that for landscape style photography you focus at infinity, or the far point of your scene, and choose an aperture that has a diameter physically no larger than the smallest object you want to resolve in the scene. So, regardless of focal length, picking an f/stop value that give you an aperture ~3mm across will resolve blades of grass at your feet, even if you focus into the distance. They may not be absolutely pin sharp but they will be recognisable and anything further into the scene will only be sharper.
e.g. for a 24mm lens, to get a 3mm aperture you'll need to use 24mm/3mm = f/8.
You can scale up the f/stop value for longer lenses and scale it back for shorter ones, simply be dividing focal length by 3, as follows....
12mm lens needs 12/3 = f/4
17mm lens needs 17/3 = f/5.6
35mm lens needs 35/3 = ~f/11
50mm lens needs 50/3 = ~f/16
70mm lens needs 70/3 = ~f/22
Sure you can stop down a little more, to tighten things up further, but be careful not to go mad and end up in diffraction territory. The formula works regardless of sensor format/size.
This approach is great because not only does it deliver results but it means you do not need to memorise tables or carry charts with you. So long as you can divide the selected focal length by 3 you will have calculated an approximately suitable aperture value.