If And Function

SusanKVerb

New Member
Joined
May 13, 2021
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
My question is: What is wrong with this formula? It only ever shows what is in I2. The answer is in the J column below.



=IF(AND(I2>=E2,I2<=E2),E2,I2)



A1​
B1​
C1​
D1​
E1​
F1​
G1​
H1​
I1​
J1​
Belmont (L)Mr Jones
$47​
$615
$28​
$690​
$650
$650
I want Cell J2 show E2 … $615



A1​
B1​
C1​
D1​
E1​
F1​
G1​
H1​
I1​
J1​
Belmont (L)Mr Jones
$47​
$615
$28​
$690​
$600
$600
This is correct



Thank you.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi & welcome to MrExcel.
That formula will only return the value from E2 when I2 & E2 are equal.
What exactly are you trying to do?
 
Upvote 0
This a rental worksheet. The rent is $615. If they pay less than $615 which will be in I2 I want that to show is J2. If they pay more than $615 I want the $615 to show in I2 because the extra will be water, well, not necessarily, it could be past due rent in which case I want that in the total. OK...I need to think about this more. This will not help me. Do you know how do I delete a thread? BTW...thank you for getting back to me so quickly!
 
Upvote 0
Maybe
Excel Formula:
=MIN(E2,I2)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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