Changing Cell Formula Each Week

KyleG

Well-known Member
Joined
Jun 12, 2004
Messages
623
I have a sheet (sheet2) that this week has the formula
Cell B2
=Sheet1!D2
Cell B3
=Sheet1!B2

Next week I want the formula to be
Cell B2
=Sheet1!F2
Cell B3
=Sheet1!D2

And so forth.

Each Column has the Week ending date (a sunday) in Row 1. So D2 represents this week and B2 Last week, until next week when D2 becomes the 'last week' and F2 becomes the this week.

The inbetween letters contain another set of data for those weeks so i will apply the same formula to these.

Is it possible to have the cells formula change each week?
 
So, you want the last 2 columns of data even if the dates do not match?
My last formula was based on matching the dates.
My first formula was based on the last column used although the match range in your version of it should be $1:$1 to avoid a problem with cells without data (assuming there is always a date in the header row when there is data in the column)
How can I, specifically, help you further?
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
help still needed.

The formulas work great save for the fact that i need to be able to differentiate between a score of 0 and a did not work to generate a score eg. the bolded 0's. Ideally i would replace the bolded 0's with N/A but they dont carry over with the formulas.
Daily Und-Ovr.xls
ABCD
1NameDraw17/12/0618/12/06
2Mathew S1$0.00-$2.20
3Rebecca S2$0.00$0.00
4Jacob S3$0.00$0.00
5Kieran B4$0.40$1.80
6Ben L5$0.00$0.00
7KatyW6$0.00$0.00
Overs-Unders (2)
 
Upvote 0
If you use N/A in place of the bolded zeros, the mixture of text and numbers in the matching array causes problems. I'm sure there is a way around this, but I took a slightly different approach, that being determining the column by matching the date. this also eliminates the need for subtracting 1 from the column for the first date. Try in B11 the following: =INDEX('Overs-Unders'!$2:$2,MATCH(B10,'Overs-Unders'!$1:$1,0))
 
Upvote 0
I could kiss you!

Ok maybe not that far, but i would so shake your hand for that one.
Thanks for all your help. I can finally finish this spreadsheet and put it in the hands of the user and forget about it.

Thanks again

Kyle
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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