How do I Clean up this formula?

  • Thread starter Thread starter Billy Two Hats
  • Start date Start date
B

Billy Two Hats

SUMIF(J7:J18,Sheets1!E4,G7:G18)*Sheets1!H4%+SUMIF(J7:J18,Sheets1!E4,H7:H18)*
Sheets1!H4%+ etc

The "etc" is the formula repeated over with the only change being to the row
number i.e. in E&H, 4.
The 4 become 29 and then 56.

Thanks
Dave
 
One way, though I suspect it's not optimal:

=SUMPRODUCT(((J7:J18=Sheets1!E4)*Sheets1!H4+(J7:J18=Sheets1!E29) *
Sheets1!H29+(J7:J18=Sheets1!E56)*Sheets1!H56)%*(G7:H18))
 
Back
Top