Check a cells value

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,226
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
i am trying to solve a scenario....
A1=332.345 B1=331.658 C1=331.229
D1 should give output as 1 provided
Condition1: A1>B1 AND C1<B1
Condition2: Neither of A1, B1 & C1 should be <=0.

If any of abv 2 conditions are not met then D1=0.
What formula needs to be punched in D1?
Thnx in adv.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Perhaps:

=IF(AND(A1>B1,A1>C1,MIN(A1:C1)>0),1,0)
 
Upvote 0
hsandeep,

Try....
=IF(AND(A1>B1,B1>0,C1>0),1,0)

Hope that helps.
 
Upvote 0
True, the MIN( ) function could be simplified given the other conditions in the AND function.
 
Upvote 0
I missed out 2 words. They are Condition1: A1>B1 AND
Condition2: C1<B1<b1
<b1<b1<b1< font=""><b1

</b1
<b1
Condition3: Neither of A1, B1 & C1 should be <=0</b1
<b1
</b1
</b1<b1<b1<></b1
 
Last edited:
Upvote 0
Condition2:C1 less than B1<b1< html=""></b1<>
 
Last edited:
Upvote 0
If I understand correctly then try....

=IF(AND(A1>B1,B1>C1,C1>0),1,0)
 
Last edited:
Upvote 0
=IF(AND(A1>B1,B1>C1,C1>0),1,0)[/QUOTE]
Further Condition4: C1 is greater than B1 the D1=2. Pls answer?
 
Upvote 0
If you have over 400 posts at MrExcel and you're here for more than 5 years, this kind of formula should be super easy.
Please make it yourself and if problems arise please let us know. Post your own formula in that case and explain what is going wrong.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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