Multiplying two cells together then summing them together if three criteria are met.

msheofsky

New Member
Joined
Jan 29, 2019
Messages
9
Office Version
  1. 2016
Platform
  1. Windows
I have a database with auto generated data. On a separate sheet in the same workbook I can pull the information I need with SUMIFS but in a certain situation I need to multiply two cells first then sum the answers together without adding another column and divide by 12 to get Feet.
Capture.JPG
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
It is hard to work with pictures. It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach screenshots (not pictures) of your two sheets. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary). Also, show the expected results in the second sheet.
 
Upvote 0
Mr Excel Help.xlsx
ABCDEFGHIJKLMNOPQRST
1Print NameSystemTypeQtyCL Inches per Item
2M101MP SupplyRect.1125
3M101LP SupplyRect.1325
4M101MP SupplyRnd.1125
5M101MP SupplyRect.5325Items in the box to the left are auto generated by a program (Database)
6M201MP SupplyRect.133
7M201MP SupplyRect.1150
8M201MP SupplyRect.11554These must be multiplied together before summing together.
9M201MP SupplyRect.132
10M201MP SupplyRect.166
11M201MP SupplyRnd.1964
12M201MP ReturnRnd.212559
13M201MP ExhaustRnd.2255
14M201MP SupplyRnd.128866Answer should be 145.8333333333
15
16Total Feet
17M101
18MP Supply Rect.37.5
19MP Supply Rnd10.41667The Error with my formula is there is a quanity in column D that is not represented in column E.
20M201
21MP Supply Rect.69.58333
22MP Supply Rnd2485.833
23Answer should be 528.5
24
25
26
27
28
29
30
31
32
Sheet1
Cell Formulas
RangeFormula
H18H18=SUMIFS(E2:E14,A2:A14,F17,B2:B14,"MP Supply",C2:C14,"Rect.")/12
H19H19=SUMIFS(E2:E14,A2:A14,F17,B2:B14,"MP Supply",C2:C14,"Rnd.")/12
H21H21=SUMIFS(E2:E14,A2:A14,F20,B2:B14,"MP Supply",C2:C14,"Rect.")/12
H22H22=SUMIFS(E2:E14,A2:A14,F20,B2:B14,"MP Supply",C2:C14,"Rnd.")/12
 
Upvote 0
The problem with my formula is that there is a quantity of (5) items on D5 but the amount on E5 accounts for only (1) of them. Therefore, I need D5 multiplied by E5 before it is summed up if all the criteria are met.
 
Upvote 0
How about
Excel Formula:
=SUMPRODUCT((A2:A14=F17)*(B2:B14="MP Supply")*(C2:C14="Rect."),D2:D14,E2:E14)/12
 
Upvote 0
Solution
You're welcome & thanks for the feedback.


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’)
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,772
Members
449,049
Latest member
greyangel23

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