Hi,
I currently have a formula "=VLOOKUP(B2,0410!B:C,2,FALSE)"
0410 = Todays date in DDMM format
Each day a new sheet is created and the formula looks at the previous day.
EG
0410 = 4th October and the formula within this sheet will be "=VLOOKUP(B2,0310!B:C,2,FALSE)"
0510 = 5th October and the formula within this sheet will be "=VLOOKUP(B2,0410!B:C,2,FALSE)"
The tricky part is when it is a Monday i want the formula to look 3days back.
So for this week it looks like this:
0310 = and the formula within this sheet will be 3rd October (But looking at data for 30th September) "=VLOOKUP(B2,3009!B:C,2,FALSE)"
I have created a templated and replaced the date needed with "template". What i am wanting is a vb code that will change "template in the formula below with the required date".
"=VLOOKUP(B2,template!B:C,2,FALSE)"
Any suggestions?
Bookmarks