+ Reply to Thread
Results 1 to 6 of 6

Between numbers formula

Hybrid View

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    United States
    MS-Off Ver
    excel 2000
    Posts
    33

    Between numbers formula

    Hey everyone,
    Im struggling to get a between formula to work on open office. In cell L2 I have the value of 45.
    This value can and will change constantly. I would like my formula to express that if L2 is between 50 and 80 then 2 if not then 0. Here are the formulas Ive been trying.
    =IF(AND(L2>=50;L2<=80;2;0)) I keep getting false for the answer instead of 0
    =if(and(50>=L2<=80;2;0)) I keep getting err:509

    If anyone has a solution that would be great!

    Tanner

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Between numbers formula

    there is a seperate sub forum for open office but ill fire mine up to see whats happening
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Between numbers formula

    try this

    =IF(AND(L2>=50,L2<=80),2,0))
    I guess I just thought the syntax would be the same for the Open Office version of Excel
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Between numbers formula

    =IF(AND(L2>=50;L2<=80);2;0) you are missing the closing ) of the AND bit

  5. #5
    Registered User
    Join Date
    01-23-2014
    Location
    United States
    MS-Off Ver
    excel 2000
    Posts
    33

    Re: Between numbers formula

    Thank you very much, that was it!

    If I wanted the same cell l2 to either determine 1 if it is less than 50, 2 if it between 50 and 80, and 4 if its 80+. How would I do all that in one formula?

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Between numbers formula

    =IF(l2<50;1,if(L2<=80);2;4))

+ 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: 1
    Last Post: 10-16-2013, 02:46 PM
  2. Issue Having Formula Recognizing Numbers Saved As Text As Numbers
    By livifivil in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-08-2013, 01:34 PM
  3. Replies: 1
    Last Post: 02-01-2013, 06:30 PM
  4. [SOLVED] Vlookup formula - return only numbers for cells containing text and numbers
    By Andrew E Smith in forum Excel General
    Replies: 11
    Last Post: 07-03-2012, 06:07 AM
  5. Replies: 1
    Last Post: 01-09-2006, 09:30 AM

Tags for this Thread

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