Returning the sum to a single row

Beachball21

New Member
Joined
Feb 2, 2021
Messages
6
Office Version
  1. 2016
Platform
  1. MacOS
Hi i have a sheet that contains 4 columns: Trans id, Trans #, Line Sale Amount and Total Amount.

How can I write a formula that will validate that if there are rows with the same trans id # then sum the Line cell amount range and assign the result ONLY to the FIRST cell in the total amount column that it finds with the trans id #.

Below is an image of how the data should appear in column d aka Total Amount. Thanks!

1612300371901.png
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Welcome to the forum!

Try:

Book1
ABCD
1Trans idTrans # Line Sale Amount Total Amount
2489664658R$ 48,545.00$ 49,129.00
3489664658R$ 584.00
4455468159R$ 185.00$ 385.00
5455468159R$ 200.00
6484556660R$ 895.00$ 1,162.00
7484556660R$ 50.00
8484556660R$ 217.00
9
Sheet4
Cell Formulas
RangeFormula
D2:D8D2=IF(COUNTIF(A$2:A2,A2)=1,SUMIF(A:A,A2,C:C),"")
 
Upvote 0
Solution
Welcome to the forum!

Try:

Book1
ABCD
1Trans idTrans # Line Sale Amount Total Amount
2489664658R$ 48,545.00$ 49,129.00
3489664658R$ 584.00
4455468159R$ 185.00$ 385.00
5455468159R$ 200.00
6484556660R$ 895.00$ 1,162.00
7484556660R$ 50.00
8484556660R$ 217.00
9
Sheet4
Cell Formulas
RangeFormula
D2:D8D2=IF(COUNTIF(A$2:A2,A2)=1,SUMIF(A:A,A2,C:C),"")
Works beautifully, thank you so much
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,612
Members
449,238
Latest member
wcbyers

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