Need Help update the column

negi

Board Regular
Joined
Apr 16, 2009
Messages
87
HI
i have a table in access 2007 and i want to update the last two column using with formula.please help...
Formula for Status-=IF(AND(C2>0,OR(A2-C2<=B2)),"Paid",IF(AND(D2>0,OR(A2-D2<=B2)),"Pending",IF(AND(OR(D2>10,C2>10)),"Short Premium","Unpaid")))

Formula for Amount:- =IF(AND(C2>0,OR(A2-C2<=B2)),C2,IF(AND(D2>0,OR(A2-D2<=B2)),D2,0))


ValueT_LimitAmt1Amt2StatusAmount
4094.549040954100Paid4095
28381.890250028382Pending28382
5033.594550345034Paid5034
12205.3901200100Short Premium0
5394.079053945394Paid5394

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Can you explain the logic of your formulas? Your OR logic is messed up in your formula.
You only use OR if you two or more different conditions to check. Each condition will be located in the parentheses after the OR separated by a comma. You only have one condition. See this link for more details on using OR: http://www.techonthenet.com/excel/formulas/or.php

Hence,
Code:
[COLOR=#333333]OR(A2-D2<=B2)[/COLOR]
doesn't really make sense, as you only have one condition in the parentheses.

I am guessing you may have some confusion on when and how to use AND and OR, so I don't want to try to guess what you are intending to do with your formulas.
So, if you can just explain the logic you are trying to incorporate in plan English, we can help you come up with your formulas.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,916
Members
449,093
Latest member
dbomb1414

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