Some considerable time back here was an article in, I think, Darkroom & Photo Techniques which gave a formula for the sharpest aperture for depth of field. The "sharpest aperture" was calculated to take diffraction into consideration and was based on the bellows extension difference from near focus to far focus. I used the formula to calculate "sharpest aperture" for a whole range of bellows extensions, typed it on to a card and laminated it.
In practice, you focus on the near and measure the extension, (I use a field 4x5) focus on the far, measure and then set the bellows at the mid point between the two. The chart tells me my "best" aperture and shutter speed is established based upon this aperture. I use this all the time and it's worked well for me.
I've been looking but I can't find the magazine, (I always stored the somewhere safe, of course!:rolleyes
Can't remember the author's name, but the mag. issue must have been 15 years ago or so. Any ideas?