simple reference changing weekly?

WadeWatts

New Member
Joined
Oct 12, 2023
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to pull a week data through from one worksheet to another based on current work week.
1697492075854.png


example of what im trying to do.
range C5:Q8 is manual input,
range C15:G18 is auto pulled through based on this week number.

this week is week 42, so today() falls within the week, so range C15:G18 shows the data from the input range,
next week when i opened the sheet, today() will be in week 43, i want the weeks data to be pulled through

initially i wrote =if(and(b5=b15,$c$13=weeknum(today())),c5)
seemed to work to pull through but i cant figure out the date to move


any ideas?

thanks
 
Ok, how about
Fluff.xlsm
ABCDEFGHIJKLMNOPQ
1
2
3Week Nbr424242424243434343434444444444
416/10/202317/10/202318/10/202319/10/202320/10/202323/10/202324/10/202325/10/202326/10/202327/10/202330/10/202331/10/202301/11/202302/11/202303/11/2023
5daveLL
6tonyLLL
7mattLLL
8pabloL
9
10
11
12
13week nbr42
14This weekMonTuesWedThuFri
15dave00000
16tonyL0000
17matt0L0L0
18pablo00000
Sheet5
Cell Formulas
RangeFormula
C13C13=WEEKNUM(TODAY())
C15:G18C15=INDEX(INDEX($C$5:$Q$8,MATCH($B15,$B$5:$B$8,0),0),MATCH($C$13,$C$3:$Q$3,0)+COLUMNS($C15:C15)-1)
 
Upvote 0
Solution
Wow, that worked, thank you for that.
as i was replicating it i was able to follow along and see what it was doing,

amazing, i really did try to work it out myself but it was beyond me.

thanks again
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try
In C15 copy to full range
Excel Formula:
=IF(INDEX($C$5:$Q$8,MATCH($B15,$B$5:$B$8,0),MATCH($C$13,$C$3:$Q$3,0)+COLUMNS($C15:C15)-1)="","",INDEX($C$5:$Q$8,MATCH($B15,$B$5:$B$8,0),MATCH($C$13,$C$3:$Q$3,0)+COLUMNS($C15:C15)-1))
 
Upvote 0

Forum statistics

Threads
1,216,129
Messages
6,129,055
Members
449,484
Latest member
khairianr

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