sumproduct formula help

tmk0427

Board Regular
Joined
Dec 14, 2005
Messages
61
Office Version
  1. 365
Hi, I'm trying to find a simple formula that will sum all of the cells in this row where cell F2=A2*$A$1+B2*$B$1+C2*$C$1+D2*$A$1+E2*$B$1. I want to duplicate that formula for multiple rows so I can sum the total of that summed column. Hope that makes sense. Thanks.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I forgot to mention that in this example only A1, B1 and C1 have fixed data in it and the second row has different numbers but only those cells with numbers greater than zero or blank will be summed
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

I think a small set of sample dummy data and the expected results would also help. Provide any further clarification that you can in relation to the sample data.
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Is there more you're not sharing? Otherwise, why not do this:
Code:
=SUM(A1:C1*(A3:C3+D3:F3))
 
Upvote 0
The third row runs all the way to AG3. Anything a little more easier to use to cover a lot of cells same pattern?
 
Upvote 0
How about
Excel Formula:
=SUM(MMULT(--WRAPROWS(A3:AG3,3),TOCOL(A1:C1)))
 
Upvote 0
Does this do what you want?

23 05 26.xlsm
ABCDEFG
1101010
2123123
311111160
SP
Cell Formulas
RangeFormula
G3G3=SUMPRODUCT(INDEX(A1:C1,A2:F2),FILTER(A3:F3,A2:F2=A2:F2))
 
Upvote 0
@tmk0427
In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.
On this occasion I have merged both threads.
 
Upvote 0

Forum statistics

Threads
1,215,172
Messages
6,123,428
Members
449,099
Latest member
COOT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top