+ Reply to Thread
Results 1 to 6 of 6

Greater than but less than

  1. #1
    Registered User
    Join Date
    01-09-2006
    Location
    Massachusetts
    MS-Off Ver
    Version 2402 Build 16.0.17328.20124)
    Posts
    61

    Greater than but less than

    Hi,
    I am trying to write a formula that says if numbers in a column are greater than 13 but less than 20. I can't seem to figure it out. Can someone help me?

    Actually I am trying to say countif numbers in column are greater than 13 but less than 20. sorry for the confusion.
    Thanks
    Last edited by Janie; 08-10-2009 at 09:39 AM. Reason: Count if needed

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Greater than but less than

    You mean..

    =if(And(A1>13,A1<20),do_this,do_that)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-19-2017
    Location
    California, USA
    MS-Off Ver
    Pro
    Posts
    1

    Unhappy Re: Greater than but less than

    Im having a very similar issue, I want a cell to do the following. If cell it's pulling from is positive spit that cells value by 50% and display in said cell, if negative do not split and display cell value in the cell with the formula...

    So for ex. I think I am saying cell D19 is a negative number don't split and provide said neg. the value on cell D20, however, if positive please split and report back 50% of the value of D19 on D20.

    For that same formula, I want it to also include to subtract the total from D21 only if D 21 is negative number however if d21 is positive don't include it in the total that will be reporting into D20.

    I figured it would be a IFD19>0 type formula but I am stuck!

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Greater than but less than

    LuisG, Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Greater than but less than

    Enter formula using Ctrl Shift and Enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    This Also works


    Enter formula using Enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by mehmetcik; 09-19-2017 at 06:35 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  6. #6
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Pendleton, OR
    MS-Off Ver
    Excel 2013
    Posts
    129

    Re: Greater than but less than

    Janie,

    A COUNTIFs function would work here. They are a little tricky in that they use text values which can be concatenated with cell references, but for fixed numbers write it this way using quotes

    =COUNTIFS(A1:A1000, ">13", A1:A1000, "<20")

    Using whatever range your data is in in place of A1:A1000. In this case both conditions must be true. I have tried doing this with AND and OR functions, but without much success.

+ 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