Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum up all line items with the same reference

Status
Not open for further replies.

egmax5

Programmer
Mar 2, 2007
1
US
Hi,
Im doing a bank recon macro and it needs summing up of line items with the same reference.
How do I sum up line items that has teh same reference, below is my sample

Col A Col B Col C Col D
20060906 AB (3,651.43) (4,513.03)
20060906 AB (861.60) (4,513.03)
20060906 ZP (634.00) (634.00)
20060906 ZP (28,500.00) (28,500.00)
20060906 YY (13,899.64) (14,899.64)
20060906 YY (1,000.00) (14,899.64)

My reference are Col A and Col B, line items should have the same colA and colB before i sum up their amount and put it in colD.

Thanks you.
egmax
 
assumes row 2:

[tt]=SUMIF($B$2:$B$7, "="&B2, $C$2:$C$7)[/tt]

hth,

mr s. <;)

 




How about Data/Subtotals...


This is not a VBA question, it seems.

Skip,

[glasses] [red][/red]
[tongue]
 
Hi, You need to use a SumProduct function. You do not need to use VBA code for this. I have done similar analysis using a SumProduct and it works. Try it out and let me know if this works for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top