+ Reply to Thread
Results 1 to 2 of 2

LOOKUP

  1. #1
    Wilco
    Guest

    LOOKUP

    Hello all!
    In excel I have a formula that returns a given value using LOOKUP.
    The formula is
    LOOKUP(Y1,{0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20},{"61","79","97","115","133","151","170","188","201","215","228","241","254","268","281","294","308","321"})
    Example if 4 is keyed in it returns a value of "79", 6 returns a value of
    "115".
    What I want to do is for every extra value of 1 over 20 is add 13.33 to the
    value of 321 each time.
    Hence keying in a value of 21 would give 334.33, 22 would give 347.66, and
    so on.

    Can I add a formula into the LOOKUP statement to calculate this addition,
    and how would I do this.

  2. #2
    Forum Contributor
    Join Date
    03-12-2004
    Posts
    329
    =IF(Y1>20,321+13.33*(Y1-20),LOOKUP(Y1,{0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20},{"61","79","97","115","133","151","170","188","201","215","228","241","254","268","281","294","308","321"}))



    Quote Originally Posted by Wilco
    Hello all!
    In excel I have a formula that returns a given value using LOOKUP.
    The formula is
    LOOKUP(Y1,{0,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20},{"61","79","97","115","133","151","170","188","201","215","228","241","254","268","281","294","308","321"})
    Example if 4 is keyed in it returns a value of "79", 6 returns a value of
    "115".
    What I want to do is for every extra value of 1 over 20 is add 13.33 to the
    value of 321 each time.
    Hence keying in a value of 21 would give 334.33, 22 would give 347.66, and
    so on.

    Can I add a formula into the LOOKUP statement to calculate this addition,
    and how would I do this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1