For Photoshop CS4 and up, the "finger" tool of the curves adjustment layer shows a mark on the histogram for the area under the mouse pointer. This is kind of the reverse of what you want, but it would allow you, by searching around with the mouse, to find the various parts of the image that contribute to some particular part of the histogram.
--Milt--