+ Reply to Thread
Results 1 to 3 of 3

Integer to a few specific lookup values

  1. #1
    Registered User
    Join Date
    08-20-2013
    Location
    Berkeley, CA
    MS-Off Ver
    Excel for Mac 2011
    Posts
    2

    Integer to a few specific lookup values

    Hi, beginner here.

    In G26 I want to input an integer value from 1 to 5, or beyond.

    In H26 I want to have a formula which gives the following:

    If G26=1, then H26=15%
    If G26=2, then H26=12.5%
    If G26=3, then H26=10%
    If G26=4, then H26=7.5%
    If G26=5, then H26=5%

    If G26>5, then H26=5%

    If G26=(no data, blank), then H26=0%

    How do I structure this formula? If possible I would rather store these values in the formula (H26) and not have to put them somewhere else in the spreadsheet, but any solution is better than none.

    Thank you!

    -Dan

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Integer to a few specific lookup values

    How about =CHOOSE(MAX(G26,6)+1, 0, .15, .125, .1, .75, .05, .05)
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    08-20-2013
    Location
    Berkeley, CA
    MS-Off Ver
    Excel for Mac 2011
    Posts
    2

    Re: Integer to a few specific lookup values

    Brilliant! Thank you...that gets me on the right track!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How do I use a lookup table to sum values for specific criteria?
    By NJLExcel1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-08-2012, 02:57 PM
  2. Replies: 6
    Last Post: 10-11-2011, 06:40 PM
  3. [SOLVED] Lookup for Specific Values in Multiple Cells
    By NickPDC in forum Excel General
    Replies: 24
    Last Post: 12-10-2010, 08:51 AM
  4. Roundup To A Specific Integer
    By SAD821 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2007, 11:08 PM
  5. Lookup Function - Specific Values
    By Steve Elliott in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-09-2005, 03:06 PM

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