Hi,
I have two spreadsheets, each containing two columns - ID and Profit (Sheet1), the other one contains ID and Sector(Sheet2).
I am building third sheet which will contain calculation. Let's say I'll put a drop down menu in A1 which will allow user to choose Sector. Then, I want in A2 a formula which would sum all profits from sheet1 - for all IDs which meet Sector criteria.
Any thoughts? I prefer solving it without importing Sector data to the second sheet and then doing simple sumif.
I have tried with an array function (descriptive form of function, not using valid references as I am in a kind of a rush):
{=sumif(Sheet1!A:A,if(Sheet2!B:B=A1,Sheet2!A:A),Sheet1!B:B)}
But it didn't seem like it worked
Thanks in advance
I have two spreadsheets, each containing two columns - ID and Profit (Sheet1), the other one contains ID and Sector(Sheet2).
I am building third sheet which will contain calculation. Let's say I'll put a drop down menu in A1 which will allow user to choose Sector. Then, I want in A2 a formula which would sum all profits from sheet1 - for all IDs which meet Sector criteria.
Any thoughts? I prefer solving it without importing Sector data to the second sheet and then doing simple sumif.
I have tried with an array function (descriptive form of function, not using valid references as I am in a kind of a rush):
{=sumif(Sheet1!A:A,if(Sheet2!B:B=A1,Sheet2!A:A),Sheet1!B:B)}
But it didn't seem like it worked
Thanks in advance