Formula not working/updating.

doumamar

New Member
Joined
Jul 15, 2010
Messages
41
Hi,

I have built a reminder function which evaluated whether TODAY() is inbetween 2 different dates. Using the below function:

=IF(J6>=H6,IF(J6<=I6,"TRUE","FALSE"),"FALSE")

However the formula comes up as TRUE when:

Today = 29/07/2010
Lower bound = 14/07/2010
Upper bound = 23/07/2010

Any ideas what is going wrong? I even re wrote the formula and it still appeared TRUE. Yet it works for most of the other dates?

Thanks
David
 

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.
Works OK for me .... are you sure that H6 & I6 are date format fields or are they text fields that look like dates?
 
Upvote 0
With this data in H6:I6:

<TABLE style="WIDTH: 159pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=213 x:str><COLGROUP><COL style="WIDTH: 53pt; mso-width-source: userset; mso-width-alt: 2596" span=3 width=71><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 53pt; HEIGHT: 12.75pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl22 height=17 width=71 align=right x:num="40373">14/07/2010</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 53pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl22 width=71 align=right x:num="40382">23/07/2010</TD><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 53pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl22 width=71 align=right x:num="40388" x:fmla="=TODAY()">29/07/2010</TD></TR></TBODY></TABLE>

your formula returned FALSE, as did:

=AND(J6>=H6,J6<=I6)
 
Upvote 0
Yes they are all in the exact same date format. It is ridiculous, it works perfectly for the rest, just 2 entries have problems.
 
Upvote 0
Use the ISNUMBER function to check that each cell contains a serial date. For example:

=ISNUMBER(H6)

will return TRUE if it's a serial date. If it returns FALSE format the cell as other than Text and press F2 then Enter.
 
Upvote 0
Poulson, you are good! The middle date was not a number on my new entries. I don't know why it isn't will have to find out. Any idea how to make sure it is? The data comes from a userform.


Thanks!!!!!

Edit: I found the input problem! Thanks for all your help! :)
 
Last edited:
Upvote 0
Right, I used the following to populate the exact cell where the date is not recognised as a date until i enter the cell and then exit it.


ActiveCell.Offset(0, 2).Value = txtRDate2.Value

Why is it that the cell is not populated with a date in the first place?

Thanks
David
 
Upvote 0

Forum statistics

Threads
1,214,553
Messages
6,120,182
Members
448,948
Latest member
spamiki

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