+ Reply to Thread
Results 1 to 5 of 5

Referencing a cell (range instead of 1 number)

  1. #1
    Registered User
    Join Date
    05-31-2012
    Location
    Canada
    MS-Off Ver
    Excel 2011
    Posts
    32

    Referencing a cell (range instead of 1 number)

    I have a working formula that references a cell. That cell can have one number in it or greater than a number or less than. (I.E. for all data points greater than 1 is just >1 in that cell)

    Is there a way to set a range instead of one number. I.E. include all data point that are between 2 and 4?

    Thanks

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

    Re: Referencing a cell (range instead of 1 number)

    Can you elaborate a bit on what you mean... perhaps with examples.
    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
    05-31-2012
    Location
    Canada
    MS-Off Ver
    Excel 2011
    Posts
    32

    Re: Referencing a cell (range instead of 1 number)

    So my formula is a countifs, and one of the stipulations is a reference to a cell. In that cell I can either input one of the numbers that appear in the range of cells mentioned or I can input a greater than or less than sign before a number. All of these work perfectly. What I'm wondering is if it's possible to instead of just have 1 number, or just greater than one number or less than one number, i have a range of numbers, like 2 to 4 instead of 2 or >2 or <4.

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

    Re: Referencing a cell (range instead of 1 number)

    With Countifs, that would really mean AND() and you would need to have two separate cells, one with the less than and one with the greater than... and then reference each separately

    e.g. =Countifs(A1:A10,B1,A1:A10,C1)

  5. #5
    Registered User
    Join Date
    05-31-2012
    Location
    Canada
    MS-Off Ver
    Excel 2011
    Posts
    32

    Re: Referencing a cell (range instead of 1 number)

    Perfect. Thanks!

+ 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