IF(AND formula with Dates

amcmlt

Board Regular
Joined
Feb 2, 2015
Messages
82
Hello, I'm a little frustrated with myself for not being able to find a solution for this issue. In my worksheet, I have a start date (F29) and a completion date (H29) calculated from a task duration time that references a calendar of dates above (T9). The formula I have is: =IF($C29="","",IF(AND(T$9>=$F29,T$9<=$H29),"X","")). Very basic but when I have a start date and completion date that are the same date, the formula enters the "" in to the cell.

I have checked the format for all cells and the setting is correct. What am I missing?

Thanks!!!
 
For a totally anonymized worksheet ... just delete everything but the cells required to solve your problem ... :wink:
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hello, here's another way to describe the situation:

Column C = Equipment (Workstation ID)
Column D = Duration of Task
Column E = Clock Start (Setup/Run of workstation)
Column F = Start Date (Date the workstation is to start)
Column G = Clock End (Workstation finishes task)
Column H = End Date (Date the workstation is to complete process)

Start Date is calculated using: Completion Date - Duration time
End Date is calculated using: Start date from previous task

The data is used to create a Gantt chart that is based on the End Completion Date and calculates hours/minutes back to first start date and time.

Column F and G are formatted as "Sunday, October 7, 2018".

When Columns F and G have different dates is the same row, all is good. When dates are the same in the row, the worksheets does not enter the "X" in to the cell from formula listed at the beginning of this post. I have checked by simply entering this formula: F31 = G31. This should return a TRUE but returns a FALSE.

Hopefully, this will help explain the situation clearly and someone can point me in the direction to correct the formula.

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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