Need help figuring out IF this, then that, etc.

dotrain4u

New Member
Joined
Oct 13, 2003
Messages
28
I need to know how to figure out if the number of days to pay (column M) is outside 45 to 89, then the value in column N should be "N" and the check amount should be added to the running total. If the number of days is within 45-89 (inclusive), then the value in column N should be a "Y" and the amount should NOT be added to the total, it would still equal the total in the cell above it. Please help! I know the example won't look good, but if you spread it out over columns you might be able to see.

L/ M/ N/ O/
Check Amount/ Days to Pay/ (45-89 )/ Running Total
250.00/ 172/ N/ 982/
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I think I know what you mean, but it's difficult to be certain.
Assuming your sample data is in the range L3:O3, with similar data above and below, I think this will work in O3
Code:
=O2+((N3="N")*L3)

If you need a formula for N3 as well . . .
Code:
=if(or(M3< 45,M3> 89),"N","Y")
Copy these formulas down as far as required.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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