Kryzz
shaun
- Joined
- 12 May 2008
- Posts
- 491
- Reactions
- 92
Help needed people please!!
I have a series of monthly returns going back 20 odd years, what I would like to do is extract single months out of that 20 years worth of data, with the end goal trying find what the returns are for a particular month (I'm trying to guage particularly strong months), without doing it manually/filters etc, ie:
September 2012 - 5%
September 2011 - 3%
Average September return...x%
I've been mucking around with pivot tables and histograms, but cannot seem to crack it, any ideas?? Hopefully this can assist everyone. Spreadsheet attached.
Thanks!
Help needed people please!!
I have a series of monthly returns going back 20 odd years, what I would like to do is extract single months out of that 20 years worth of data, with the end goal trying find what the returns are for a particular month (I'm trying to guage particularly strong months), without doing it manually/filters etc, ie:
September 2012 - 5%
September 2011 - 3%
Average September return...x%
I've been mucking around with pivot tables and histograms, but cannot seem to crack it, any ideas?? Hopefully this can assist everyone. Spreadsheet attached.
Thanks!
and the spreadsheet itself (I changed addressing to R1C1 format for easier programming)
Ever tried conditional array formulas? You type the formula as shown, then use Ctrl-Shift-Enter instead of Enter alone:
View attachment 54170
Results:
View attachment 54169
and the spreadsheet itself (I changed addressing to R1C1 format for easier programming)
View attachment 54171
Thanks guys, useful info here.
Will have to try and source some free online excel resources I think to cover the above.
I have 2 tables
- 1st table (t1) contains 2 columns, item code and description, item code is unique
- 2nd table (t2) also has 2 columns as t1 - it has multiple non unique item codes but description is blank
For each row in (t2) I need to first match the item code from (t2) with item code from (t1) then fill (t2) description with the (t1) description
essentially updating (t2) description with values from (t1) based on item code
I've tried vlookup but the result is wrong....
check that t1 is sorted by code ascending.
otherwise, vlookup won't work.
Thanks Pixel. Did that and changed absolute reference - =VLOOKUP(C2,t1!$A$1:$B$479,2,FALSE)
Hello excel guru's, I am in need of some help!
I have a formula which I use to find the SUMPRODUCT of of two ranges, however I would like to know if it is possible to employ this formula with a condition that it auto updates as I fill in the ranges to show only the LAST 30 DAYS.
I.e. SUMPRODUCT of the ranges for last 30 days.
Thanks.
Hi VS;
Have you tried comparing the date column to "today()-30"?
e.g. {=sum(if(daterange>today()-30,valuerange,0))}
Attach an example and I'll amend your formula.
Hi Pixel, thanks for the reply.
So I think what your suggesting will, work I am just having a bit of trouble implementing.
My formula for the Total calculation is: =SUMPRODUCT(F21:F69,E21:E69)+SUMPRODUCT(F21:F69,L21:L69)+SUMPRODUCT(J21:J69,I21:I69)+SUMPRODUCT(J21:J69,M21:M69)
The formula in question must do the same thing, but only for the last 30 days from todays date...given the date range of K21:K69
Hi Pixel, thanks for the reply.
So I think what your suggesting will, work I am just having a bit of trouble implementing.
My formula for the Total calculation is: =SUMPRODUCT(F21:F69,E21:E69)+SUMPRODUCT(F21:F69,L21:L69)+SUMPRODUCT(J21:J69,I21:I69)+SUMPRODUCT(J21:J69,M21:M69)
The formula in question must do the same thing, but only for the last 30 days from todays date...given the date range of K21:K69
With small amount of data it's often easier to add additional columns as intermediate calculation step. For example, you can add a column that "date within 30 days" and simply has it as 1 or 0. The formula would be something like =IF(daterange>today()-30,1,0) and just fill it down. You can then sumproduct this column in addition to your other data, and you will get just the sumproduct for the last 30 days.
Having additional columns is often the dumb way of doing things but it allows better detection of gross error, as you can check the calculation at each step. You can always hide these intermediate step columns for display purpose as well.
Something else to think about:
Do you want to sum the last 30 rows? Or do you want to sum today's date - 30 which may have anywhere between 22-25 entries (depending on weekend etc)? Or do you actually wanted to sum calendar month's data?
I actually thought about your first suggestion SKC, and have used that method with some of my other metrics in the spreadsheet. If I can't follow Pixels instructions I will revert to that.
And what I am trying to achieve is total turnover for last 30 days, so that I get a rolling 30 days figure...my provider gives a rebate over a certain transaction level per month so I want to see when I am hitting that level so I can demand the money!
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?