Hi all--
I have an extensive formula that works well, until I filter the results. Hope someone can give me some assistance in shortening the formula (if possible) as well as getting the filtered results.
Here is a sample of the formula that I am currently using:
=IF($A2="",0,SUM(SUMPRODUCT(--(Sheet 1[Company]=$A2),Sheet 1[Income]),SUMPRODUCT(--(Sheet 1[Company]=$A2),Sheet 1[Wages]),SUMPRODUCT(--(Sheet 1[Company]=$A2),Sheet 1[Merchandise]),SUMPRODUCT(--(Sheet 1[Company]=$A2),Sheet 1[Rent]),SUMPRODUCT(--(Sheet 2[Company]=$A2),Sheet 2[Income]),SUMPRODUCT(--(Sheet 2[Company]=$A2),Sheet 2[Wages]),SUMPRODUCT(--(Sheet 2[Company]=$A2),Sheet 2[Merchandise]),SUMPRODUCT(--(Sheet 2[Company]=$A2),Sheet 2[Merchandise]),SUMPRODUCT(--(Sheet 2[Company]=$A2),Sheet 2[Rent]),SUMPRODUCT(--(Sheet 3[Company]=$A2),Sheet 3[Income]),SUMPRODUCT(--(Sheet 3[Company]=$A2),Sheet 3[Wages]),SUMPRODUCT(--(Sheet 3[Company]=$A2),Sheet 3[Merchandise]),
Please note that this is a small portion of the formula.
Any help would be greatly appreciated.
Thank you in advance.
I have an extensive formula that works well, until I filter the results. Hope someone can give me some assistance in shortening the formula (if possible) as well as getting the filtered results.
Here is a sample of the formula that I am currently using:
=IF($A2="",0,SUM(SUMPRODUCT(--(Sheet 1[Company]=$A2),Sheet 1[Income]),SUMPRODUCT(--(Sheet 1[Company]=$A2),Sheet 1[Wages]),SUMPRODUCT(--(Sheet 1[Company]=$A2),Sheet 1[Merchandise]),SUMPRODUCT(--(Sheet 1[Company]=$A2),Sheet 1[Rent]),SUMPRODUCT(--(Sheet 2[Company]=$A2),Sheet 2[Income]),SUMPRODUCT(--(Sheet 2[Company]=$A2),Sheet 2[Wages]),SUMPRODUCT(--(Sheet 2[Company]=$A2),Sheet 2[Merchandise]),SUMPRODUCT(--(Sheet 2[Company]=$A2),Sheet 2[Merchandise]),SUMPRODUCT(--(Sheet 2[Company]=$A2),Sheet 2[Rent]),SUMPRODUCT(--(Sheet 3[Company]=$A2),Sheet 3[Income]),SUMPRODUCT(--(Sheet 3[Company]=$A2),Sheet 3[Wages]),SUMPRODUCT(--(Sheet 3[Company]=$A2),Sheet 3[Merchandise]),
Please note that this is a small portion of the formula.
Any help would be greatly appreciated.
Thank you in advance.