IF / Min statements

fedgett

New Member
Joined
Aug 2, 2006
Messages
9
I'm trying to use the lower of 2 or 3 numbers, depending upon a condition. (I think thats right).

Data is like this

A1-"YES" (options would be "no", "maybe", I can rework the formula for the 3 options)

B1 5
B2 18
B3 7


What I have is
=IF(A1="yes",(MIN,(B1,B2,B3)),IF(A1 < > "Yes",(MIN(B2,B3)).

What I'm looking for, if "A1" has "yes", then I want the MIN of cells b1, b2, b3.
If A1 is not "yes", then I'm looking for the min between b2 and b3.

Thanks in advance
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Just needs a minor tweak:

=IF(A1="yes",MIN(B1:B3),MIN(B2:B3))

That will handle YES and anything else that is not YES.

Does that help?
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top