I have lists of investments categorized by years (e.g.: 2001.xls, 2002.xls, 2003.xls, etc). I need to pull certain data from those files to create the reports I need. Pivot Tables and the Consolidate function might be answer to my needs. Besides those functions, I think Array Formulas might also help me isolate the information I need. The final product, I think, would be a combination of Array Formulas, Pivot Tables, and the Consolidate function. Anyway, I wrote my first array formula but it didn't work. I hope someone here can help me.
This is my formula:
{=SUM(IF((B2:B57="Buy"),(C2:C57="XY")))*((F2:F57),(I2:I57))}
What I want it to say (or do) is that if column B says "Buy" and column C says "XY" [that's the condition], then add the amounts in columns F and I that meet that condition. (In other words, if I bought [Buy] shares in a specific company [in this case, XY], how much did I pay for them [column F, price, + column I, commission].)
Can someone please help? Thanks.
This is my formula:
{=SUM(IF((B2:B57="Buy"),(C2:C57="XY")))*((F2:F57),(I2:I57))}
What I want it to say (or do) is that if column B says "Buy" and column C says "XY" [that's the condition], then add the amounts in columns F and I that meet that condition. (In other words, if I bought [Buy] shares in a specific company [in this case, XY], how much did I pay for them [column F, price, + column I, commission].)
Can someone please help? Thanks.