Searching for treasure is often about adventure and life wisdom as much as it is about a desire for money. You may have very real financial needs that inspire this dream. However, the treasure may bea symbol for wisdom and experience that you seek to acquire in waking life.
To gain insight from this dream, consider the nature of the treasure being sought. Sometimes, the object of the quest is an artifact of historical or cultural significance as opposed to monetary. If you are able to conclude this search by finding the object of your quest, you are probably about to acquire new insights into your life and whatever relationships are symbolized by the treasure hunt.
However, if you spontaneously discover treasure in the midst of a dream story where it would not be expected, another scenario is possible. You may not be fully aware of your opportunities in waking life. Your subconscious may be saying, "Look, dummy, right at your feet! The answer." Dreams of this nature are not too unusual and should be given close scrutiny. The elusive answer to a problem may be closer than you think.