using weeknum to correct dates into a different worksheet.

Godders199

Active Member
Joined
Mar 2, 2017
Messages
313
Office Version
  1. 2013
Hello, I need some help, I have a workbook, with Sheet A andSheet B . Sheet A is a summary andSheet B does all the calculations based on a date range given in cells A1 andB1 if that sheet.

I am trying to find an example of code for the following whichgoes down to week 52

11/12/2018
Year
2018
current week number
50
Total
Week Number
1
01/01/2018
07/01/2018

2
08/01/2018
14/01/2018

3
15/01/2018
21/01/2018

4
22/01/2018
28/01/2018
<tbody> </tbody>

Current week number is b11
Effectively I need the code to basically start at week 1 andgo down until the week number equals the current week, insert the relevantdates in columns c and d into A1 and B1 on Sheet B. pause while it performs is calculations theninsert the value from A50 in therelevant row in Sheet A column F.
To be honest its mainly getting the correct dates inserted Ineed help on. So if anyone has an example or a link I would be grateful.

 
Godders199,
Thanks for the feedback. Glad to have helped. You too are welcome.
Perpa
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,216,084
Messages
6,128,722
Members
449,465
Latest member
TAKLAM

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