IF AND confusion

deuce

Active Member
Joined
Oct 6, 2006
Messages
312
I only know how to do the simplest IF statements not combo's... need some help to think here.

IF F3 is less than F2 and G2 then "1"

IF F3 is greater than F2 and G2 then "2"



thanks.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

hsk

Well-known Member
Joined
Oct 19, 2006
Messages
567
Try using function AND;
search the excel help for details
=IF(AND(1 < A3,A3 < 100),A3,"Out of Range")
Displays the second number above, if it is between 1 and 100, otherwise displays a message (The value is out of range.)
 

will_simpson

New Member
Joined
Oct 17, 2006
Messages
29
What do you want to if its higher than one of the other two cells but lower than the other?

Or do you mean higher or lower than the sum of the other two cells?
 

Krishnakumar

Well-known Member
Joined
Feb 28, 2003
Messages
2,615
Hi,

Code:
=IF((F3<F2)*(F3<G2),1,"Something Else")

=IF((F3>F2)*(F3>G2),2,"Something Else")

HTH
 

Forum statistics

Threads
1,141,096
Messages
5,704,312
Members
421,338
Latest member
Pepess

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
Top