Automating a sum divided by another sum

whippler

New Member
Joined
Dec 13, 2002
Messages
15
First time using Colo's utility, may have messed up. Anyway, each week, this sheet is populated with new data, it is a rolling 13 week set, so next week it will start with week of 9/13, and a new week - 12/6 will appear. I would like to automate the formula in R11 such that it builds back one week with each new week of data, e.g. right now it sums up rows M11 to Q11, and divides by M14 to Q14.Next week, I would like it to sum up L11 to Q11 and divide by L14 to Q14...and the next week K11 to Q11 etc. Ultimately, once all 13 weeks of row 11 have data in them (~8 weeks) this process would stop. But, this would be a weekly macro, when it gets there, I would just stop running the macro - if I even need a macro here. Any thoughts, very stuck on this one!

Thanks.
Book3
ABCDEFGHIJKLMNOPQR
9Sep`02Sep`02Sep`02Sep`02Oct`02Oct`02Oct`02Oct`02Nov`02Nov`02Nov`02Nov`02Nov`02
10ProductTrendVOL09/0609/1309/2009/2710/0410/1110/1810/2511/0111/0811/1511/2211/29Rolling5WeekShare
11U146560000000032101876553670310.33%
12N7.93M575718611803605397598603639040618913597595602811630605652478626624637808536173
13N1.46M10243611303011176311105911594511253111119711212811780111928811683011813197505
149.41M678153724833717160709662754985731443708792714939748409771975745329761475640710
EarlyView Report Sheet
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Not sure I understood your correctly, but...

In R9 enter:

=MATCH(1,INDEX((E11:P11<>0)+0,1,0),0)

In R11 enter:

=SUM(INDEX($E$11:$Q$11,1,R9):INDEX($E$11:$Q$11,1,13))/SUM(INDEX($E$14:$Q$14,1,R9):INDEX($E$14:$Q$14,1,13))
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,998
Members
448,539
Latest member
alex78

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