=if((1/1/2010) between A1 and B1, 1,0)??

DucDuc

New Member
Joined
Dec 2, 2009
Messages
19
I want to know if a date is between the start A and finish B but this always comes up false..

<TABLE style="WIDTH: 243pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=324 border=0 x:str><COLGROUP><COL style="WIDTH: 48pt" width=64><COL style="WIDTH: 49pt; mso-width-source: userset; mso-width-alt: 2332" width=66><COL style="WIDTH: 146pt; mso-width-source: userset; mso-width-alt: 6912" width=194><TBODY><TR style="HEIGHT: 13.2pt" height=18><TD class=xl22 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; WIDTH: 48pt; BORDER-BOTTOM: #ece9d8; HEIGHT: 13.2pt; BACKGROUND-COLOR: transparent" align=right width=64 height=18 x:num="40179">01/01/10</TD><TD class=xl22 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; WIDTH: 49pt; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent" align=right width=66 x:num="40193">01/15/10</TD><TD style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; WIDTH: 146pt; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent" width=194>{=IF((2010/1/2)>B4<C4,1,0)}</TD></TR></TBODY></TABLE>


Is it possible to get teh result I want, is there a better function or formula?

thanks for having a look
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
If your date in question is in C1 with your start/finish dates in A1/B1 respectively, in D1 you can use:-
=if(and(c1>=A1,c1<=b1),True,False)
 
Upvote 0
=IF(AND(A2<=DATE(2010,1,2),B2>=DATE(2010,1,2)),"Yes","No")

I've used the date Function as it isn't clear in your formula what the format is, whether it's the 1st of Feb or the 2nd of Jan that you are evaluating.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,756
Members
452,940
Latest member
rootytrip

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