Adding up column based on value of different column??

tombe

New Member
Joined
Oct 27, 2008
Messages
29
Hi,

am pretty new to this and was wondering if someone can help me with this please. Basically i have i get a list of numbers, different everyday, and i must go through and match numbers i col A and adding with what it corresponds with in col B, for example:

AT006462 34
AT006461 32
AT006457 21
AT006463 6
AT006458 7
AT006463 4
AT006460 23
AT006457 234
AT006462 87
AT006459 213
AT006459 12
AT006460 56
AT006461 345
AT006458 78


So AT006462 appears twice and its total is (34+87) 121. Is there any way i can add up col B for each number in col A. If that makes sense.

It's really been bugging me and currently i can get upto 1000 numbers i have to add up manually.

Thanks

Tom
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Try the SUMIF function

=SUMIF(A1:A1000,"AT006462",B1:B1000)


You can use a cell reference for the "AT006462" part

=SUMIF(A1:A1000,C1,B1:B1000)

C1 = AT006462


Hope that helps.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,111
Messages
5,857,448
Members
431,880
Latest member
kar2rost

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
Top