, Good afternoon.
Without knowing more details it is very difficult to effectively help.
If there are really many possible values maybe setting up a table to do the research in time is one of the solutions.
If you prefer, save your file to some free website, www.sendspace.com, and place the download link here.
It gets faster and easier to help.