# IF AND formula with dates

#### Kim25

##### Board Regular
Hi All,

Could someone kindly help with my formula?

<TABLE style="WIDTH: 390pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=520 border=0><COLGROUP><COL style="WIDTH: 120pt; mso-width-source: userset; mso-width-alt: 5120" width=160><COL style="WIDTH: 54pt" span=5 width=72><TBODY><TR style="HEIGHT: 16.5pt" height=22><TD class=xl231 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 120pt; BORDER-BOTTOM: #d4d0c8; HEIGHT: 16.5pt; BACKGROUND-COLOR: transparent" width=160 height=22>1/05/11</TD><TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 270pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent; mso-ignore: colspan" width=360 colSpan=5>=IF(AND(A3>="01/04/11",A3<="30/6/11"),20,0)</TD></TR></TBODY></TABLE>

The highlighted number in red is cell A3. The formula keeps returning a zero instead of 20.

### Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

#### Ganjin

##### Board Regular
=if(and(a3 >= date(2011,4,1),a3 <= date(2011,6,30)),20,0)

#### Kim25

##### Board Regular
Awesome, works perfectly. Thankyou very much.

Replies
7
Views
1K
Replies
0
Views
675
Replies
0
Views
402
Replies
1
Views
407
Replies
0
Views
635

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,774
Messages
5,833,620
Members
430,221
Latest member
jmmccormick

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