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:
With this formula I get #Value!, and the error says "A value used in the formula is of the wrong data type."{=MIN(IF(AND(Frequency>1215,Frequency<1400),Power,""))}
However, when I take out the AND statement and only have the lower bound, as in the formula below, it works fine.
Any ideas as to what is going on here? I've attached my workbook to play around with.{=MIN(IF((Frequency>1215),Power,""))}
Thanks!
Last edited by MWMike; 12-13-2011 at 02:12 PM.
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.
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.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks