+ Reply to Thread
Results 1 to 4 of 4

Thread: Using MIN on range with upper and lower bounds

  1. #1
    Registered User
    Join Date
    12-13-2011
    Location
    Long Island, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Using MIN on range with upper and lower bounds

    Hi all,
    I have two named ranges, "Frequency" and "Power". I'm trying to find the minimum power level within a certain bandwidth (between two frequencies). Here is my formula:
    {=MIN(IF(AND(Frequency>1215,Frequency<1400),Power,""))}
    With this formula I get #Value!, and the error says "A value used in the formula is of the wrong data type."

    However, when I take out the AND statement and only have the lower bound, as in the formula below, it works fine.
    {=MIN(IF((Frequency>1215),Power,""))}
    Any ideas as to what is going on here? I've attached my workbook to play around with.

    Thanks!
    Attached Files Attached Files
    Last edited by MWMike; 12-13-2011 at 02:12 PM.

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

    Re: Using MIN on range with upper and lower bounds

    Try:

    =MIN(IF((Frequency>1215)*(Frequency<1400),Power,""))
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    12-13-2011
    Location
    Long Island, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Using MIN on range with upper and lower bounds

    Hey thanks, that was fast! Not totally sure why my previous formula doesn't work correctly, but yours works great. This will open up a lot of possibilities here. Much appreciated.

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

    Re: Using MIN on range with upper and lower bounds

    AND() function doesn't work with Array Formulas.. instead we multiply the arrays to give same effect (or you can do nested IF functions...
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0