# if then on dates

#### knowfun

##### New Member
Trying to draw an if then on dates. the formula doesn't seem to read them.

=if(a2>10/1/02,if(a4<12/31/02))

### Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a \$25,000 loan, 5% annual interest, 60 month loan.

Use date values.

#### knowfun

##### New Member
date values? not sure what you mean. for instance....

#### DonkeyOte

##### MrExcel MVP
Every date has a number assigned to it - type in a date and then format the cell to general. Your formula should work without the need to use the number but some find it easier. If your date does not come up with a value then you have the date set as text in which case you will need to change this to a value...simple enough. Let us know...

Replies
1
Views
145
Replies
1
Views
182
Replies
6
Views
132
Replies
3
Views
136
Replies
8
Views
305

1,147,821
Messages
5,743,396
Members
423,792
Latest member
travisds

### 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.

### Which adblocker are you using?

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

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