+ Reply to Thread
Results 1 to 4 of 4

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:
    Please Login or Register  to view this content.
    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.
    Please Login or Register  to view this content.
    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 03:12 PM.

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

    Re: Using MIN on range with upper and lower bounds

    Try:

    =MIN(IF((Frequency>1215)*(Frequency<1400),Power,""))
    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
    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 Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

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

+ 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.6.0 RC 1