Greetings again, good folk of Chandoo.org! Saviour-V reporting in.
SirJB7, remember my first question here, and what I said about tackling a certain beast? Well, here comes a small part of that particular beast. For reference, the original spreadsheet's featured at the following URL:
http://www.investmentmoats.com/portfolio/how-to-track-your-stock-transactions-with-google-spreadsheet/
*grins nervously...* Anyway:
To explain the formulae briefly, the formulae are supposed to calculate a cumulative amount of the stocks purchased. Only thing is I'm not sure if both formulae are one and the same, since the Google one has FILTER (which I'm sure is NOT part of Excel), and the Excel formula seems to be missing the part after
=max(if($C1:$C$2=C2,row($C1:$C$2),0))[/code]
Since I'm still a rookie here, does LOOKUP accomplish the same thing done by the Google formula? Also, what alternatives does Excel have against Google's FILTER? I'm guessing that maybe SUMPRODUCT is one of them, but what else could I use that doesn't involve a whole host of IF statements?
And out of curiosity, has anyone tried to create an Excel alternative to FILTER, either through formulae or VBA? This is an optional question, but I'd like to know if anyone has tried it.
SirJB7, remember my first question here, and what I said about tackling a certain beast? Well, here comes a small part of that particular beast. For reference, the original spreadsheet's featured at the following URL:
http://www.investmentmoats.com/portfolio/how-to-track-your-stock-transactions-with-google-spreadsheet/
*grins nervously...* Anyway:
Code:
=iferror(if(row()<>2,INDEX(arrayformula(filter($I1:$I$2,$C1:$C$2<>"",row($C1:$C$2)=max(if($C1:$C$2=C2,row($C1:$C$2),0)))) ;1),0),0)
...is one of the formulae I encountered in the spreadsheet from InvestmentMoats.com . I puzzled over this one for a bit, until I came across another post from the same site, showing an Excel equivalent in-progress:
[code]=IF(ROW()=2,0,IFERROR(LOOKUP(2,1/($C1:$C$2=C2),$I1:I$2),0))
To explain the formulae briefly, the formulae are supposed to calculate a cumulative amount of the stocks purchased. Only thing is I'm not sure if both formulae are one and the same, since the Google one has FILTER (which I'm sure is NOT part of Excel), and the Excel formula seems to be missing the part after
=max(if($C1:$C$2=C2,row($C1:$C$2),0))[/code]
Since I'm still a rookie here, does LOOKUP accomplish the same thing done by the Google formula? Also, what alternatives does Excel have against Google's FILTER? I'm guessing that maybe SUMPRODUCT is one of them, but what else could I use that doesn't involve a whole host of IF statements?
And out of curiosity, has anyone tried to create an Excel alternative to FILTER, either through formulae or VBA? This is an optional question, but I'd like to know if anyone has tried it.