Mohammed Masood
New Member
- Joined
- Jul 28, 2017
- Messages
- 5
Hi Forum,
I am trying to create a formula which will calculate the working days date. If column A is having today's date and yesterday's date then result should be same and If column A is having prior to yesterday's date it should show today's date. Below formula is working correct with weekdays but in case if today is Monday it should show Friday to Monday(including Saturday and Sunday) as same date and prior to Friday Today's date.
I have used =IF(OR(A1=($B$1-1),A1=$B$1),A1,$B$1)
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 314"]
<tbody>[TR]
[TD="align: right"]30-Jul-17[/TD]
[TD="align: right"]05-Aug-17[/TD]
[TD="align: right"]05-Aug-17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]01-Aug-17[/TD]
[TD][/TD]
[TD="align: right"]05-Aug-17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]02-Aug-17[/TD]
[TD][/TD]
[TD="align: right"]05-Aug-17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]03-Aug-17[/TD]
[TD][/TD]
[TD="align: right"]05-Aug-17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]04-Aug-17[/TD]
[TD][/TD]
[TD="align: right"]04-Aug-17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]05-Aug-17[/TD]
[TD][/TD]
[TD="align: right"]05-Aug-17[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Can you help?
I am trying to create a formula which will calculate the working days date. If column A is having today's date and yesterday's date then result should be same and If column A is having prior to yesterday's date it should show today's date. Below formula is working correct with weekdays but in case if today is Monday it should show Friday to Monday(including Saturday and Sunday) as same date and prior to Friday Today's date.
I have used =IF(OR(A1=($B$1-1),A1=$B$1),A1,$B$1)
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 314"]
<tbody>[TR]
[TD="align: right"]30-Jul-17[/TD]
[TD="align: right"]05-Aug-17[/TD]
[TD="align: right"]05-Aug-17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]01-Aug-17[/TD]
[TD][/TD]
[TD="align: right"]05-Aug-17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]02-Aug-17[/TD]
[TD][/TD]
[TD="align: right"]05-Aug-17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]03-Aug-17[/TD]
[TD][/TD]
[TD="align: right"]05-Aug-17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]04-Aug-17[/TD]
[TD][/TD]
[TD="align: right"]04-Aug-17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]05-Aug-17[/TD]
[TD][/TD]
[TD="align: right"]05-Aug-17[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Can you help?