+ Reply to Thread
Results 1 to 4 of 4

Using a range of values in an IF function

  1. #1
    Registered User
    Join Date
    10-01-2012
    Location
    North Bay, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    60

    Using a range of values in an IF function

    Hello everyone,

    I'm looking for a formula that will use a RANGE of values (ex: anything between 1000 and 1999) to finalize the IF function...

    Example:

    IF any cells in column B are between this range, bring this cell and adjacent cell to other sheet...

    Example:

    In cell A1 I have 1500 and cell B1 I have 2020

    I want cells A1 and cells B1 to be copied to another worksheet because A1 is *greater then 1000 and smaller then 1999...

    Any help?

    Pat.

  2. #2
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Using a range of values in an IF function

    =IF(AND(A1>1000, A1<1999), A1, " ")

    put that formula where u want the output and drag across

  3. #3
    Registered User
    Join Date
    10-01-2012
    Location
    North Bay, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Using a range of values in an IF function

    Can I put somehow instead of IF A1... I would want to put IF A1:A5650

    Like instead of looking just in A1 look for any value in range A1:A5650 and return ALL cells who are true?

  4. #4
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Using a range of values in an IF function

    for that u will need a macro. try posting the question on the vba forum.
    a simpler way of doing it would be to filter your data and do a number filter

+ 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