Combining IF, OR and MIN

Kribulin

Board Regular
Joined
Jun 3, 2008
Messages
71
I currently have the following condition set:

= I F ( A 1 0 < G $ 4 ; 0 ; M I N ( G $ 5 ; B 1 0 ) )<g$4;0;min(g$5; b10))="">

Now I want to add that if A10 is bigger than G6, the value is also 0.

But as I try to add this condition like this:
</g$4;0;min(g$5;> = I F ( A 1 0 < G $ 4 O R ( A 1 0 > G 6 ) ; 0 ; M I N ( G $ 5 ; B 1 0 ) )<g$4;0;min(g$5; b10))=""><g$4 or="" (a10="">

it doesn't work. What's false?

Thanks in advance!
</g$4></g$4;0;min(g$5;>
 
Last edited:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Sorry, I have problems posting the code, so I justed added blanks in it in the original post.
<g$4 or="" (a10=""></g$4>
 
Last edited:
Upvote 0
Hi,

Try;

PHP:
=IF(OR(A10<G$4,A10>G6),0,MIN(G$5;B10))

When posting with multiple <'s >'s use the PhP Code Tags
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,755
Members
449,094
Latest member
dsharae57

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