Can A Code Do This

rockyw

Well-known Member
Joined
Dec 26, 2010
Messages
1,196
Office Version
  1. 2010
Platform
  1. Windows
Can a code look in say column D, and look for a item number like, 100012, then add all of the amounts that are for that item that are in the same rows but in column C, and put that total in a cell like sheet 2 B2? Sounds hard but Excel does some great things when one knows how. 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)
Can a code look in say column D, and look for a item number like, 100012, then add all of the amounts that are for that item that are in the same rows but in column C, and put that total in a cell like sheet 2 B2? Sounds hard but Excel does some great things when one knows how. Thanks

have you tried using sumif?

=sumif(D:D,"100012",C:C)

specify the sheet names if you want the total on one page and the data is on another
 
Upvote 0
WOW, I can't beleive a formula can do this! I am always impressed with Excel and the people that know it so well. Thanks, I think I can make this work. Many Thanks
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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