Auto Update data weekly help

gillmit

New Member
Joined
May 17, 2024
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi

I am stuck and need some help please. I have attached a picture of the issue i am having. Basically i have 7.5% in the red box (Cell B2) that i have to update manually. I would like it to auto update each Tuesday of the month with the same % as the week before (orange box's) but if say on the 31/05/2024 i have to change the red box (Cell B2) to say 8% the previous weeks remain the same(7.5)% and the following weeks after carry on auto updating on the new 8%.

Any help would be much appreciated
 

Attachments

  • excel 1.PNG
    excel 1.PNG
    12.6 KB · Views: 15

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi

I am stuck and need some help please. I have attached a picture of the issue i am having. Basically i have 7.5% in the red box (Cell B2) that i have to update manually. I would like it to auto update each Tuesday of the month with the same % as the week before (orange box's) but if say on the 31/05/2024 i have to change the red box (Cell B2) to say 8% the previous weeks remain the same(7.5)% and the following weeks after carry on auto updating on the new 8%.

Any help would be much appreciated
Insert this code to worksheet module that include your data:
VBA Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Dim i As Long
    Dim cll As Range
    i = Range("B" & Rows.Count).End(xlUp).Row
    If i < 7 Then Exit Sub
    For Each cll In Range("B7:B" & i)
        If IsEmpty(cll.Offset(, 1)) Then
            With WorksheetFunction
                If .Weekday(Date) = 7 And .WeekNum(Date) = .WeekNum(cll.Value) Then
                    cll.Offset(, 1).Value = Range("B2").Value
                End If
            End With
        End If
    Next cll
End Sub
 
Upvote 0
Thank you so much for the info. I am still struggling though. I need to make it happen for multiple cells

I have attached a screenshot of what i am looking to do.

cell C3 for example needs to update C95 then C96 and so one. 1 updates 1.. 2 updates 2. Can you help please
 

Attachments

  • excel3.PNG
    excel3.PNG
    46.9 KB · Views: 10
Upvote 0
Thank you so much for the info. I am still struggling though. I need to make it happen for multiple cells

I have attached a screenshot of what i am looking to do.

cell C3 for example needs to update C95 then C96 and so one. 1 updates 1.. 2 updates 2. Can you help please
i saw that new value need to update in range E4:E12, but i don't think we need that column, why just use column C for update value?
 
Upvote 0
i saw that new value need to update in range E4:E12, but i don't think we need that column, why just use column C for update value?
Apologies there is another 1-9 below

so C4:C12 updates the data underneath as pictured. E4-E12 Updates another row of 1-9 data not pictured if that makes sense. will send a new picture
 
Upvote 0
Apologies there is another 1-9 below

so C4:C12 updates the data underneath as pictured. E4-E12 Updates another row of 1-9 data not pictured if that makes sense. will send a new picture
 

Attachments

  • excel 4.PNG
    excel 4.PNG
    67.1 KB · Views: 9
  • excel 5.PNG
    excel 5.PNG
    83.3 KB · Views: 8
Upvote 0

Forum statistics

Threads
1,223,155
Messages
6,170,405
Members
452,325
Latest member
BlahQz

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