Change monthly formulas to get weekly data, heeelp

Jarke

Board Regular
Joined
Aug 13, 2016
Messages
95
Hello!

I have made alot of formulas that gives me some valuable data in months from daily transactions, and i also want these formulsas to summarize in weekly data. Some exemples on some of my formulas is;

Result on month =SUMPRODUCT((MONTH(Logg!$C$24:$BN$24)=C75)*(YEAR(Logg!$C$24:$BN$24)=2016)*(Logg!$C$60:$BN$60))

Ave gain on capital =SUMPRODUCT((MONTH(Logg!$C$24:$BN$24)=C75)*(YEAR(Logg!$C$24:$BN$24)=2016)*(Logg!$C$61:$BN$61>0)*Logg!$C$61:$BN$61)/SUMPRODUCT((MONTH(Logg!$C$24:$BN$24)=C75)*(YEAR(Logg!$C$24:$BN$24)=2016)*(Logg!$C$61:$BN$61>0))


So, how will i retype the formulas to only take data from weeks? Can i just change the MONTH in each to something? And then also change =C75 to instead a cell that says for example 32 (for week 32)?

I hope you have som great solution to this, looking forward to it!

Thanks and best regards
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
More info;


2016 xy zu
Augusti00%00
September00%00
Oktober00%00
November00%00
December00%00

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
Here is how my monthly tabel is layed up, and each cell is filled with a formula, i also want to create a weekly tabel. And as i have the formulas, can i rewrite these as mentioned above? On another sheet i have my information, transactions, date, result, capital after result etc.. The monthly columms work. And for example August i want my dates to categorieze into weeks 31,32,33,34,35 depending on when the transaction happened, automatically.

<colgroup><col><col><col><col><col><col><col><col><col><col span="2"><col><col><col></colgroup><tbody>
</tbody>

Like if i had transactions at, 2/8, 2/8, 4/8, 5/8, 5/8 i want all these to go into week 31, just as they now do into months.

How do i do this?

Any help is most welcomed!

First step would be, how to sum dates in weeks! The formula criteria i could probably add later.

If you need more info, tell me!

Thanks
 
Upvote 0
See if this example helps.
You would need to add a row for week number.
There are 2 average formulas below. If you have Excel 2010 or later you could use the AVERAGEIFS function.
The formula in E65 below can be used in any ver. However it is an array function and must be entered with
Excel Workbook
ABCDEFGHIJKLMN
23Week #495312666810101111
24Date12/3/201512/31/20151/1/20161/5/20162/2/20162/3/20162/5/20162/16/20163/2/20163/5/20163/6/20163/7/2016
25
6012345-67159122011
61
62
63Week #6
64Sum>012
65Average66
CTRL-SHIFT-ENTER.
 
Upvote 0
Saving me again friend! Thanks alot! Guess i haft to live with an extra row with information about which week.. But it does the trick! Notes; when making the C23, i had to add -1 to get the right week, it showed one week +1... Weird..

Don't understand how you got average 6 tho.. Should be 2? "(5-6+7=6) / 3 = 2" or you mean average on 2016?

Still working to get C65 working, gotta recode some, but will probably eventually work. Got excel 2010 btw

Got alot of work to do now, changing monthly formulas to weekly, yikes :D

Thanks again, best regards
 
Upvote 0
I got the average of 6 since before you only wanted values greater than 0.
Change formula in C65 to
Code:
=AVERAGEIFS($C$60:$N$60,$C$24:$N$24,">="&DATE(2016,1,1),$C$24:$N$24,"<="&DATE(2016,12,31),$C$23:$N$23,$C$63)
to get 2.
The WEEKNUM() function will not take a range, so that is why I added the helper column of week numbers.
 
Upvote 0

Forum statistics

Threads
1,216,731
Messages
6,132,389
Members
449,725
Latest member
Enero1

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