Sum based off variable

GordonLS

Board Regular
Joined
May 28, 2021
Messages
89
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Good morning. I need Column C be populated based off the following:

The sum of Column A and B need to be to populated in the last row of column C for the total of each Order Number in Column D.

In other words C6 will be the total of A2:B6. C7-C9 needs to be blank, so I'm thinking (iferror then blank). C10 will equal the sum of A10:B10. C11 will be blank and C17 should be the sum of A12:B17, etc.

1647211023604.png
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
How about
Excel Formula:
=IF(COUNTIFS(D$2:D2,D2)=COUNTIFS($D$2:$D$1000,D2),SUMPRODUCT(($D$2:$D$1000=D2)*($A$2:$B$1000)),"")
 
Upvote 0
If your orders are grouped like your example, then this should work:

Excel Formula:
=IF(D2<>D3,SUMIF(D$2:D2,D2,B$2:B2),"")

This also assumes you have column C formatted with Accounting format, which also seems to be the case.
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,234
Members
449,092
Latest member
SCleaveland

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