SumIfs type of formula needed

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,341
Office Version
  1. 365
Platform
  1. Windows
TypePartQuantityUnit Price
OnHand1257107810.2318.86
OnHand125710798.85.09
OnHand1257107811.8315.25
ScheduledReceipt125710782.3325.85
ScheduledReceipt125710791.56.89
ScheduledReceipt125710792.86.82

Here is the table of how the data typically comes.

I need a formula that will calculate the total quantity by Part/Type and I need to have the average unit price

I know I can add a column and calculate extended price and then use that to calculate an average but I really was looking to see if there was a way without doing that extra step

Example for OnHand/12571078
10.2 X 318.86 = 3252.33
11.8 X 315.25 = 3719.95

Sum of Total Pricer 6972.32 / sum of quantity 22 = average unit price of $316.92


Thanks
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Does this work for you?

mr excel questions 15.xlsm
ABCDEFGHIJ
1TypePartQuantityUnit PriceTypePartSumAvg Price
2OnHand1257107810.2318.86OnHand125710786972.32316.9236
3OnHand125710798.85.09OnHand1257107944.795.089773
4OnHand1257107811.8315.25ScheduledReceipt12571078749.46325.8522
5ScheduledReceipt125710782.3325.85ScheduledReceipt1257107929.446.846512
6ScheduledReceipt125710791.56.89
7ScheduledReceipt125710792.86.82
8
Sheet19
Cell Formulas
RangeFormula
I2:I5I2=SUM((--($A$2:$A$7=G2))*(--(H2=$B$2:$B$7))*ROUND($C$2:$C$7*$D$2:$D$7,2))
J2:J5J2=SUM((--($A$2:$A$7=G2))*(--(H2=$B$2:$B$7))*ROUND($C$2:$C$7*$D$2:$D$7,2))/SUM((--($A$2:$A$7=G2))*(--($B$2:$B$7=H2))*$C$2:$C$7)
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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