Harry12345
New Member
- Joined
- May 21, 2014
- Messages
- 5
I'm trying to write a formula that will count all dates between Monday and Friday of this week and the value in the adjacent column in not equal to "Fully Received". I know what I want to do and a general idea of the formula I need to use, but I can't seem to get the syntax right to get it to work. The below formula achieves what I want.
The problem is that I need to replace the date strings with a formula that automatically works out the date of Monday and Friday of the current week, I have this working but when I insert into the above formula I get a formula error, below is what I want to achieve, but it give me a formula error.
I also tried replacing the TODAY formula bit with a reference to a cell with the same formula but I still get a formula error, I have tried various combinations of using and not using '' and "" and () but I just can't seem to get it to work.
Code:
=COUNTIFS('Purchase Orders'!D:D,">=19/05/2014",'Purchase Orders'!D:D,"<=23/05/2014",'Purchase Orders'!E:E,"<> Fully Received")
The problem is that I need to replace the date strings with a formula that automatically works out the date of Monday and Friday of the current week, I have this working but when I insert into the above formula I get a formula error, below is what I want to achieve, but it give me a formula error.
Code:
=COUNTIFS('Purchase Orders'!D:D,>=(=TODAY()-WEEKDAY(TODAY()) + 2),'Purchase Orders'!D:D,<=(=TODAY() - WEEKDAY(TODAY()) + 6),'Purchase Orders'!E:E,"<> Fully Received")
I also tried replacing the TODAY formula bit with a reference to a cell with the same formula but I still get a formula error, I have tried various combinations of using and not using '' and "" and () but I just can't seem to get it to work.