+ Reply to Thread
Results 1 to 4 of 4

If, And formula

  1. #1
    Registered User
    Join Date
    10-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    27

    If, And formula

    Hi all

    I have a range of values from 1 to 1800

    I want a formula that sayd if the values is between 1-180 then OK, 180-365 is 1 Year, 366-730 then 2 years etc etc

    Cant get it too work

    help appreciated

    thanks

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,749

    Re: If, And formula

    Try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If, And formula

    Create a table like this:

    Data Range
    D
    E
    F
    1
    From
    To
    Value
    2
    1
    180
    OK
    3
    181
    365
    1
    4
    366
    730
    2


    Then, assuming cell A1 contains a number, enter this formula in B1:

    =LOOKUP(A1,D2:F4)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: If, And formula

    Try

    =LOOKUP(A1,{1,181,166,731},{"OK","1 Year","2 Years","etc"})

+ 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. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04: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