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
 

Some videos you may like

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

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.
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,859
Messages
5,513,827
Members
408,972
Latest member
TDotHanny

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top