logical test for if statement

Patty Can

New Member
Joined
Jul 20, 2010
Messages
4
I am trying to age some outstanding checks in an excel formatted 'register'. I have created columns to the right of the data entries for "1 year", "2 years", etc. representing the length of time that the check has remained outstanding. I am trying to write the formula for 2 years, 3 years , etc.

I have decided to use the logical if formula to have the dollar amount of the check fill in in the appropriate column based on # of years outstanding. I have already created a formula that gives the total number of days outstanding for each outstanding. That formula is in a column of its own.

Now I need to build the if formula that says if, for example, the value is cell N2 (# of days outstanding) is greater than 366 but less than 1095, then enter the dollar amount of the check, if not then enter "0". I don't know how to write the greater than 366 but less than 1095 into the formula.Can anyone help me with this?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
=if(and(n2>366,n2<1095),a2,0)

EDIT: You could combine this with the age formula. Something like:

=IF(DATEDIF(M2,TODAY(),"y")>3,0,A2)
where M2 contains the date of the check and A2 contains the value
 
Last edited:
Upvote 0
Let me correct that, the range should read 'greater than 365 and less than 731'. Not that this info really matters at this point.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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