Min & Max Range Lookup

J

J.W. Aldridge

I have a number in cell A1 (50) I have a larger number in B1 (100).
What formula can i use to search these two values as if they were min
and max, and return a word if found.

Example:

50 100

in C1, i have the value of 75.
in D1, i want it to return "Yes" since it is within range.
if it is not within range, i want to return "No"

Any ideas?
 
R

Ron Coderre

Maybe this?:

=IF(MEDIAN(A1:C1)=C1,"Yes","No")

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 
R

Ron Coderre

Glad to help.

--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top