+ Reply to Thread
Results 1 to 3 of 3

Multiple If Statement with a Greater or Less than Function

  1. #1
    Registered User
    Join Date
    01-25-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    7

    Question Multiple If Statement with a Greater or Less than Function

    I am trying to write a Multiple IF Statement and incorporate a greater or less than fuction....

    If A1 > 500 = L
    If A1< 150 = B
    If A1 <500 or >150 = A

    Below is my formula....any help would be greatly appreciated

    =if(A1>500,"L",if(A1<150,"B",if(A1>150and<500,"A",0)))

    Thanks!
    Last edited by HRBonne; 04-07-2010 at 02:23 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Multiple If Statement with a Greater or Less than Function

    How about this:

    =LOOKUP(A1, {0,150,500}. {"B","A","L"})

    The "A" value will start at the value 150 exactly, "L" will start at 500 exactly.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-25-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Multiple If Statement with a Greater or Less than Function

    I just figured it out.....

    =IF(A1>500,"L",IF(A1<150,"A",IF(AND(A1>150=TRUE,A1<500=TRUE),"B","False")))

    Thank you for your suggestion though.

    HRBonne

+ 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