how to calculate sumproduct if row below is different than current row

LIC_xls

New Member
Joined
Mar 31, 2022
Messages
4
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I've attached a link to a data table. Here's what I'm trying to do. For each cell in column G, I need to calculate the revenue-weighted average price of the product lines EXCLUDING the product line associated with the row of the cell that I am calculating in column G. Cell G2 is a manual example of what I need to calculate in an automated way. For example, in G4 I need to calculate the weighted average price for product lines C and D--so the Revenue % needs to only capture E7:E11. Can you please help me create a formula for this?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I've attached a link to a data table. Here's what I'm trying to do. For each cell in column G, I need to calculate the revenue-weighted average price of the product lines EXCLUDING the product line associated with the row of the cell that I am calculating in column G. Cell G2 is a manual example of what I need to calculate in an automated way. For example, in G4 I need to calculate the weighted average price for product lines C and D--so the Revenue % needs to only capture E7:E11. Can you please help me create a formula for this?

Here is the link: Average Price
 
Upvote 0
I've attached a link to a data table. Here's what I'm trying to do. For each cell in column G, I need to calculate the revenue-weighted average price of the product lines EXCLUDING the product line associated with the row of the cell that I am calculating in column G. Cell G2 is a manual example of what I need to calculate in an automated way. For example, in G4 I need to calculate the weighted average price for product lines C and D--so the Revenue % needs to only capture E7:E11. Can you please help me create a formula for this?
Screenshot

1648727132471.png
 
Upvote 0
Is this what you want
Excel Formula:
=SUMPRODUCT(($A$2:$A$11<>A2)*($C$2:$C$11)*($E$2:$E$11))/SUMIFS($E$2:$E$11,$A$2:$A$11,"<>"&A2)
 
Upvote 0

Forum statistics

Threads
1,223,723
Messages
6,174,122
Members
452,545
Latest member
boybenqn

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