Weekday marking based on a date in during current week

Deepakchoudhary

New Member
Joined
Dec 20, 2010
Messages
43
Office Version
  1. 2016
Platform
  1. Windows
Hi Friends,
I need help in attached sheet, where A1 is current date by =today(), B6 to P6 are dates of current month & B3 to P3 WEEKDAYS by =text(B6,"DDDDDD"), formula in B4 to P4 for marking "1" for the dates till yesterday by =IF(B6<$A$1,1,"") as month till date (MTD).
Need help in formula to put in cells from B5 to P5, to get mark as "1" from last Monday till Yesterday as week till date (WTD), rest will "blank".

1709711214527.png
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi, here's one option you can try:
Book1
ABCDEFGHIJKLMNOP
106/03/2024
2
3
4
5WTD   11          
601/03/202402/03/202403/03/202404/03/202405/03/202406/03/202407/03/202408/03/202409/03/202410/03/202411/03/202412/03/202413/03/202414/03/202415/03/2024
Sheet1
Cell Formulas
RangeFormula
B5:P5B5=IF(AND(B6>=WORKDAY.INTL($A$1,-1,"0111111"),B6<$A$1),1,"")
 
Upvote 1
Solution
Hi, here's one option you can try:
Book1
ABCDEFGHIJKLMNOP
106/03/2024
2
3
4
5WTD   11          
601/03/202402/03/202403/03/202404/03/202405/03/202406/03/202407/03/202408/03/202409/03/202410/03/202411/03/202412/03/202413/03/202414/03/202415/03/2024
Sheet1
Cell Formulas
RangeFormula
B5:P5B5=IF(AND(B6>=WORKDAY.INTL($A$1,-1,"0111111"),B6<$A$1),1,"")
Sir, Thanking you. Great help for me, it's working fine.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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