Actually, nevermind, i figured out the mistake. i wasn't entering the data in ascending order for the lookup table, instead I was entering in descending order. Thanks your help though!!