Need an If formula

fedcco

New Member
Joined
Aug 14, 2012
Messages
22
I need an Excel formula that will calculate the following: If J6 is greater than 100, then it will calculate the amount in L6 but if it is equal to or less than 100, then it will calculate the amount in K6 and J6 will show a zero and vice versa.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Formulas cannot return values to other cells, only the cells that they are located in.
So, you would just write formulas in each of the cells where the results might end up that either return the calculation if the conditions are met, or returns a blank.

For example, let's say that if A1 > 10, you want "Yes" to appear in B1. Otherwise, you want "No" to appear in C1.
Then, you would place this formula in cell B1:
=IF(A1>10,"Yes","")
and this formula in C1:
=IF(A1<=10,"No","")
 
Upvote 0
Date Tenant Paid
Mgmt. Fees Col'd.Repairs Amt.Repairs Chk. No.Late Fee Col'd.Late Fee RCRLate Fee OwnerBal. Due Owner
03/13/19 140140140.00
0 0.00

<colgroup><col width="71" style="width: 53pt; mso-width-source: userset; mso-width-alt: 2596;"> <col width="54" style="width: 41pt; mso-width-source: userset; mso-width-alt: 1974;"> <col width="55" style="width: 41pt; mso-width-source: userset; mso-width-alt: 2011;"> <col width="55" style="width: 41pt; mso-width-source: userset; mso-width-alt: 2011;"> <col width="44" style="width: 33pt; mso-width-source: userset; mso-width-alt: 1609;" span="2"> <col width="44" style="width: 33pt; mso-width-source: userset; mso-width-alt: 1609;"> <col width="62" style="width: 47pt; mso-width-source: userset; mso-width-alt: 2267;"> <tbody> </tbody>


Late fee Col'd is J6 Which gets the amount from another formula in J6. Late fee to RCR is K6 which is the (<=) formula that I need from the amount in J6. Late fee Owner is L6 which is the (>) formula that I need from J6 also. I was am using (=IF(j6>100,j6) which gives me the correct amount; in this example 140 and if under or less than 100 it gives me "False". I copied and pasted your formulas, changed the cells accordingly but they don't perform the calculations as needed. Also if L6 returns a false instead of an amount, I'd like for it to show a "0" and the same for K6.
 
Upvote 0
Late fee Col'd is J6 Which gets the amount from another formula in J6
I do not understand this. This does not make sense. How can the amount in cell J6 get the amount from another formula in J6?
You can only have one formula or hard-coded value in a cell at a time. J6 cannot contain two different things. It is either one formula or one hard-coded amount.
 
Upvote 0
My apologies; J6 gets the amounts from (E6 Due Date) and (F6 Date Paid) not shown in sample.
 
Upvote 0
OK, so can you walk us through an actual example again, where you tell us what hard-coded values are in what cells on row 6, and what the criteria for the calculations in the other cells can be (while walking us through the enitre example so we can see the data and logic behind it all. It is still a little fuzzy based on your first attempt, but you had some errors there and didn't include everything.
 
Upvote 0
So the scenario is as follows: J6 has this formula [=((F6-E6)>=3)*50+((F6-E6)>=4)*(F6-E6-3)*10)]which subtracts the dates from E6 & F6and figures that amounts on J6. Ijust need the formulas for K6 and L6 so that if the late fee is $100 orless (say $80 as is on J7), they go on column K and if more than $100, (say $130 as is on J6) they go on column L and instead of showing “FALSE” as on K6, the cell shows “0

A1
B1
C1
D1
E1
F1
G1
H1
I1
J1
K1
L1
Mo.
Rental Amount
Pmt. Meth
Pmt. Meth. Comments
Due Date
Date Tenant Paid
Mgmt. Fees Coll'd.
Repairs Amt.
Repairs Chk. No.
Late Fee Coll'd.
Late Fee RCR
Late Fee Owner
6
Jan
$1,200
Cash

01/01/19
01/12/19
$100
$55.12

$130
FALSE
$130
7
Feb
$1,200


02/01/19
02/07/19
$100


$80
$80
FALSE
8
Mar
$1,200


03/01/19
03/02/19
$100


$0
$0
FALSE
9
Apr
$1,200


04/01/19
04/05/19
$100


$60
$60
FALSE
<tbody> </tbody>

Hope this clarifies my needs. And thanks for the help.

 
Upvote 0
Hi,

All you really needed to do is to modify Joe4's suggestions in Post # 2 to suit your requirements:


Book1
ABCDEFGHIJKL
5Mo.Rental AmountPmt. MethPmt. Meth. CommentsDue DateDate Tenant PaidMgmt. Fees Coll'd.Repairs Amt.Repairs Chk. No.Late Fee Coll'd.Late Fee RCRLate Fee Owner
6Jan$1,200Cash1/1/20191/12/2019$100$55.12$130$0$130
7Feb$1,2002/1/20192/7/2019$100$80$80$0
8Mar$1,2003/1/20193/2/2019$100$0$0$0
9Apr$1,2004/1/20194/5/2019$100$60$60$0
Sheet571
Cell Formulas
RangeFormula
K6=IF(J6<=100,J6,0)
L6=IF(J6>100,J6,0)
 
Upvote 0
You're welcome, glad we can help.
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

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