+ Reply to Thread
Results 1 to 8 of 8

IF Function that recognizes a range

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    66

    IF Function that recognizes a range

    I have an IF function that I want to give a result if one or more of the numbers in a range are less than 0
    Please Login or Register  to view this content.
    this is the code i'm using, but i'm getting an error
    Last edited by missmea2005; 01-11-2013 at 08:27 AM.

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: IF Function that recognizes a range

    =IF(MIN(B7:B28)<0, Not Entered","Approved and Requested")
    Gary's Student

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: IF Function that recognizes a range

    Try it this way:

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


    Hope this helps.

    Pete

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: IF Function that recognizes a range

    Try:

    =IF(OR(B7:B28<0),"Not Entered","Approved and Requested")

    Confirmed with Ctrl-Shift-Enter, not just enter.

    Or:

    =IF(MIN(B7:B28)<0,"Not Entered","Approved and Requested")

    Confirmed with plain old Enter.

  5. #5
    Registered User
    Join Date
    08-27-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    66

    Re: IF Function that recognizes a range

    Thanks. these worked, but I's like if one or more of the numbers in the series is missing, then it will say not entered.

  6. #6
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: IF Function that recognizes a range

    Then try:

    =IF(OR(MIN(B7:B28)<0,COUNTBLANK(B7:B28)>0), "Not Entered","Approved and Requested")

  7. #7
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: IF Function that recognizes a range

    Try:

    =IF(COUNTBLANK(B7:B28)>0,"Not Entered","Approved and Requested")

  8. #8
    Registered User
    Join Date
    08-27-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    66

    Re: IF Function that recognizes a range

    Thanks @Jakobshavn and @Andrew-R worked like a charm!!!

+ 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