Days of the week based on Today()

Akashwani

Well-known Member
Joined
Mar 14, 2009
Messages
2,911
Hi,

I'm trying to work out how to have the dates of the week listed based on the current date. So in A1 I will have =today() in B1:B5 I would like to have the dates of this week, monday-friday.

A1 31/01/11

B1 28/03/11
B2 29/03/11
B3 30/03/11
B4 31/03/11
B5 01/04/11

I have played around with WEEKNUM, WORKDAY and WEEKDAY but I'm tying myself up in knots as usual. :confused:

Thanks

Ak
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If A1 has the date:

Code:
A2: =A1-WEEKDAY(A1)+2
A3: =A1-WEEKDAY(A1)+3
A4: =A1-WEEKDAY(A1)+4
A5: =A1-WEEKDAY(A1)+5
A6: =A1-WEEKDAY(A1)+6
 
Upvote 0
B1 =A1-WEEKDAY(A1,1)+2

This will return the Saturday of the 'current' week (assuming saturday is the start of your week)

B2 = B1+1 or = A1-WEEKDAY(A1,1)+3
etc

[Edit] Didnt' read the bit that you wanted it Mon-Fri so changed code slightly, but looks like already solved anyway!
 
Last edited:
Upvote 0
Hi,

I'm trying to work out how to have the dates of the week listed based on the current date. So in A1 I will have =today() in B1:B5 I would like to have the dates of this week, monday-friday.

A1 31/01/11

B1 28/03/11
B2 29/03/11
B3 30/03/11
B4 31/03/11
B5 01/04/11

I have played around with WEEKNUM, WORKDAY and WEEKDAY but I'm tying myself up in knots as usual. :confused:

Thanks

Ak
Try this...

Entered in B1 and copied down to B5:

=A$1-WEEKDAY(NOW(),3)+ROWS(B$1:B1)-1
 
Upvote 0
Hi,

WOW.

What can I say?

Thank you all so very much for your solutions, all do exactly as required and as I expected, multiple answers to what I initially thought was going to be an easy problem for me to solve, I still have so much to learn.

Thanks again.

Ak

Why do I spend hours banging my head and then decide to come here for the solution? :rofl
 
Upvote 0
Banging your head against the wall is a useful learning technique.. I know I learned a lot that way :)
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,673
Members
452,937
Latest member
Bhg1984

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